LPIC-2 QUESTIONS AND ANSWERS | VERIFIED AND
WELL DETAILED ANSWERS | PLUS RATIONALES |
GUARANTEED PASS | LATEST EXAM UPDATE | EXAM
PREP | STUDY GUIDE | PRACTICE TEST
,Topic 201: Capacity Planning & System Startup
1. What is the primary purpose of the `initrd`/`initramfs` image?
A) Store kernel modules permanently
B) Provide temporary root filesystem to load modules needed for mounting the real root
C) Replace the kernel
D) Store GRUB configuration
Answer: B
Rationale: initramfs provides the drivers/modules needed to mount the real root filesystem (e.g., RAID, LVM,
encrypted root).
2. Which command displays kernel ring buffer messages?
A) `dmesg`
B) `lsmod`
C) `lspci`
D) `modinfo`
,Answer: A
Rationale: `dmesg` prints kernel messages from the ring buffer, useful for boot diagnostics.
3. What does `mkinitramfs` do on Debian systems?
A) Compiles the kernel
B) Creates an initramfs image
C) Installs GRUB
D) Mounts root
Answer: B
Rationale: `mkinitramfs` generates the initramfs archive used at boot.
4. Which runlevel is typically multi-user with networking but no GUI on SysV?
A) 1
B) 3
C) 5
D) 6
, Answer: B
Rationale: Runlevel 3 is multi-user text mode with networking; 5 adds GUI; 6 is reboot.
5. In systemd, what is the equivalent of SysV runlevel 3?
A) `rescue.target`
B) `multi-user.target`
C) `graphical.target`
D) `basic.target`
Answer: B
Rationale: `multi-user.target` maps to runlevel 3.
6. Which file defines the default systemd target?
A) `/etc/inittab`
B) `/etc/systemd/system/default.target`
C) `/etc/default/grub`
D) `/etc/fstab`
WELL DETAILED ANSWERS | PLUS RATIONALES |
GUARANTEED PASS | LATEST EXAM UPDATE | EXAM
PREP | STUDY GUIDE | PRACTICE TEST
,Topic 201: Capacity Planning & System Startup
1. What is the primary purpose of the `initrd`/`initramfs` image?
A) Store kernel modules permanently
B) Provide temporary root filesystem to load modules needed for mounting the real root
C) Replace the kernel
D) Store GRUB configuration
Answer: B
Rationale: initramfs provides the drivers/modules needed to mount the real root filesystem (e.g., RAID, LVM,
encrypted root).
2. Which command displays kernel ring buffer messages?
A) `dmesg`
B) `lsmod`
C) `lspci`
D) `modinfo`
,Answer: A
Rationale: `dmesg` prints kernel messages from the ring buffer, useful for boot diagnostics.
3. What does `mkinitramfs` do on Debian systems?
A) Compiles the kernel
B) Creates an initramfs image
C) Installs GRUB
D) Mounts root
Answer: B
Rationale: `mkinitramfs` generates the initramfs archive used at boot.
4. Which runlevel is typically multi-user with networking but no GUI on SysV?
A) 1
B) 3
C) 5
D) 6
, Answer: B
Rationale: Runlevel 3 is multi-user text mode with networking; 5 adds GUI; 6 is reboot.
5. In systemd, what is the equivalent of SysV runlevel 3?
A) `rescue.target`
B) `multi-user.target`
C) `graphical.target`
D) `basic.target`
Answer: B
Rationale: `multi-user.target` maps to runlevel 3.
6. Which file defines the default systemd target?
A) `/etc/inittab`
B) `/etc/systemd/system/default.target`
C) `/etc/default/grub`
D) `/etc/fstab`