Docsity

Certified Linux Engineer Practice Exam, Exams of Technology

Toggle sidebar
bg1
Certified Linux Engineer Practice Exam
**Question 1.** Which file is primarily used by the Kickstart installer to automate
a RHEL/CentOS deployment?
A) /etc/kickstart.conf
B) /root/ks.cfg
C) /var/log/kickstart.log
D) /etc/sysconfig/kickstart
Answer: B
Explanation: The Kickstart file (commonly /root/ks.cfg) contains all the answers to
installer prompts, enabling unattended installations.
**Question 2.** In a preseed configuration for Debian/Ubuntu, which directive
sets the root password?
A) d-i passwd/root-password password
B) d-i passwd/user-password password
C) d-i netcfg/choose_interface select
D) d-i partman-auto/method string
Answer: A
Explanation: The “passwd/root-password” directive defines the encrypted root
password during automated installations.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Certified Linux Engineer Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which file is primarily used by the Kickstart installer to automate a RHEL/CentOS deployment? A) /etc/kickstart.conf B) /root/ks.cfg C) /var/log/kickstart.log D) /etc/sysconfig/kickstart Answer: B Explanation: The Kickstart file (commonly /root/ks.cfg) contains all the answers to installer prompts, enabling unattended installations. Question 2. In a preseed configuration for Debian/Ubuntu, which directive sets the root password? A) d-i passwd/root-password password B) d-i passwd/user-password password C) d-i netcfg/choose_interface select D) d-i partman-auto/method string Answer: A Explanation: The “passwd/root-password” directive defines the encrypted root password during automated installations.

Question 3. When using PXE boot, which protocol supplies the bootloader configuration to the client? A) TFTP B) FTP C) NFS D) HTTP Answer: A Explanation: PXE clients retrieve the bootloader (e.g., pxelinux.0) and its configuration files via TFTP. Question 4. Which LVM command creates a snapshot of an existing logical volume named lv_data? A) lvcreate - L 1G - s - n snap_lv /dev/vg0/lv_data B) lvconvert --snapshot /dev/vg0/lv_data C) lvextend - L +1G /dev/vg0/lv_data D) lvremove /dev/vg0/lv_data Answer: A Explanation: lvcreate - s creates a snapshot; -L sets its size and -n names it. Question 5. To extend a logical volume lv_home by 5 GB and then resize the ext4 filesystem, which sequence is correct?

B) uqnoenforce C) quota=on D) prjquota Answer: A Explanation: The usrquota option enables user quota accounting on XFS; prjquota is for project quotas. Question 8. Which command displays Access Control List (ACL) entries for a file named report.txt? A) getfacl report.txt B) lsattr report.txt C) setfacl - l report.txt D) aclshow report.txt Answer: A Explanation: getfacl reads and prints the ACLs associated with a file. Question 9. In GRUB2, what is the purpose of the GRUB_TIMEOUT variable in /etc/default/grub? A) Number of seconds to wait before automatically booting the default entry B) Maximum time allowed for kernel loading

C) Time limit for the GRUB command line D) Interval between menu refreshes Answer: A Explanation: GRUB_TIMEOUT defines how long the GRUB menu is displayed before the default entry boots. Question 10. To add a custom kernel parameter net.ipv4.ip_forward=1 permanently via GRUB, which line should be edited? A) GRUB_CMDLINE_LINUX="net.ipv4.ip_forward=1" B) GRUB_DEFAULT= C) GRUB_DISABLE_RECOVERY="true" D) GRUB_THEME="/boot/grub2/theme.txt" Answer: A Explanation: GRUB_CMDLINE_LINUX appends kernel command‑line parameters; adding net.ipv4.ip_forward=1 enables IP forwarding at boot. Question 11. After modifying /etc/default/grub, which command regenerates the GRUB configuration on a BIOS‑based system? A) grub2-mkconfig - o /boot/grub2/grub.cfg B) grub2-install /dev/sda C) update-grub

D) ExecCondition=/usr/local/bin/backup.sh Answer: A Explanation: ExecStart defines the command executed when the service starts; for a one‑time boot task, it runs at boot. Question 14. Which command lists all enabled systemd timers on the host? A) systemctl list-timers --all B) timerctl --list-enabled C) systemd-analyze show-timers D) chronos list Answer: A Explanation: systemctl list-timers displays timers, and --all includes inactive ones; enabled timers are shown with their next activation times. Question 15. When compiling a custom kernel, which make target installs the modules into /lib/modules/<version>? A) make modules_install B) make install_modules C) make install_kernel D) make depmod

Answer: A Explanation: make modules_install copies compiled kernel modules to the appropriate directory. Question 16. To load a kernel module named dm_crypt temporarily, which command is used? A) modprobe dm_crypt B) insmod dm_crypt.ko C) kmod load dm_crypt D) echo dm_crypt > /proc/modules Answer: A Explanation: modprobe resolves dependencies and loads the module; insmod requires the full path and no dependency handling. Question 17. Which log file typically contains messages from the kernel ring buffer after a system crash? A) /var/log/kern.log B) /var/log/messages C) /var/log/dmesg D) /var/log/syslog

Explanation: apt-get update downloads the latest package lists; it does not modify installed packages. Question 20. When compiling software from source, which command typically runs the test suite after building but before installation? A) make check B) make verify C) make testall D) make inspect Answer: A Explanation: The conventional target for running tests is make check. Question 21. Which Git command creates a new branch named featureX and switches to it in one step? A) git checkout - b featureX B) git branch featureX && git checkout featureX C) git switch featureX D) git create branch featureX Answer: A Explanation: git checkout - b creates and checks out the new branch simultaneously.

Question 22. To configure a static IP address on eth0 using the legacy /etc/network/interfaces file on Ubuntu, which line is required? A) address 192.168.10.20/ B) iface eth0 inet static C) static ip_address=192.168.10.20/ D) DHCP=no Answer: B Explanation: The iface eth0 inet static stanza declares that eth0 will use a static configuration; subsequent address, netmask, etc., are defined within the stanza. Question 23. Which NetworkManager command displays the current active connections in a concise format? A) nmcli con show --active B) nmcli dev status C) nmtui status D) networkctl list Answer: A Explanation: nmcli con show --active lists only the connections that are currently active.

Question 26. In ISC DHCPD, which statement defines a range of dynamic addresses for the subnet 10.0.0.0/24? A) range 10.0.0.100 10.0.0.200; B) pool { 10.0.0.100 10.0.0.200; } C) address-range 10.0.0.100-10.0.0.200; D) lease-range 10.0.0.100 10.0.0.200; Answer: A Explanation: The range directive inside a subnet block specifies the start and end of the dynamic address pool. Question 27. Which BIND configuration option enables DNSSEC validation on a recursive server? A) dnssec-validation auto; B) dnssec-enable yes; C) dnssec-signing on; D) dnssec-trust-anchor "."; Answer: A Explanation: dnssec-validation auto; tells BIND to automatically fetch trust anchors and validate signed responses.

Question 28. To create a NAT rule that masquerades traffic from the internal network 192.168.1.0/24 to the external interface eth0 using iptables, which command is correct? A) iptables - t nat - A POSTROUTING - s 192.168.1.0/24 - o eth0 - j MASQUERADE B) iptables - A FORWARD - s 192.168.1.0/24 - j SNAT --to-source eth C) iptables - t filter - A INPUT - d 192.168.1.0/24 - j ACCEPT D) iptables - t nat - A PREROUTING - i eth0 - j DNAT --to-destination 192.168.1.0/ Answer: A Explanation: The POSTROUTING chain in the nat table with MASQUERADE rewrites source addresses for outbound traffic. Question 29. Which tcpdump filter captures only DNS queries (UDP port 53) destined for the local machine? A) udp port 53 and dst host <local_ip> B) src port 53 and host <local_ip> C) icmp and host <local_ip> D) tcp port 53 and dst host <local_ip> Answer: A Explanation: DNS uses UDP port 53; filtering on destination port 53 and the local IP selects inbound queries.

A) proxy_pass http://app_backend; B) upstream_pass app_backend; C) backend_proxy app_backend; D) location / { proxy_to app_backend; } Answer: A Explanation: proxy_pass forwards client requests to the specified upstream group. Question 33. In Samba, which parameter in smb.conf controls the maximum number of simultaneous connections to a share? A) max connections = 50 B) max users = 50 C) max share = 50 D) max connections = yes Answer: A Explanation: The max connections option limits concurrent connections to a particular share. Question 34. To export an NFSv4 filesystem at /srv/nfs4 with read‑only access for the network 10.0.0.0/24, which line belongs in /etc/exports? A) /srv/nfs4 10.0.0.0/24(ro,sync,fsid=0)

B) /srv/nfs4 *(ro) C) /srv/nfs4 10.0.0.0/24(rw,no_root_squash) D) /srv/nfs4 10.0.0.0/24(async) Answer: A Explanation: The ro flag makes the export read‑only; fsid=0 designates the NFSv4 pseudo‑root. Question 35. Which Postfix parameter restricts mail relay to only authenticated users? A) smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination B) mydestination = localhost C) inet_interfaces = all D) myorigin = /etc/mailname Answer: A Explanation: permit_sasl_authenticated allows authenticated clients; reject_unauth_destination blocks unauthorized relaying. Question 36. In LDAP client configuration on Linux, which file typically contains the base DN and URI of the server? A) /etc/ldap.conf

C) RootLogin prohibit-password D) PasswordAuthentication no Answer: A Explanation: PermitRootLogin no disables any direct SSH login for the root account. Question 39. Which SELinux boolean permits Apache to read files in user home directories? A) httpd_enable_homedirs B) httpd_read_user_content C) httpd_can_network_connect D) httpd_run_suid Answer: A Explanation: Setting httpd_enable_homedirs to on allows httpd to access users' home directories. Question 40. In AppArmor, which profile mode logs violations but does not enforce them? A) complain B) enforce C) deny

D) audit Answer: A Explanation: The complain mode records policy breaches without blocking the action. Question 41. Which command initializes a new AIDE database based on the current filesystem state? A) aideinit B) aide --init C) aide - c /etc/aide.conf --check D) aide --update Answer: A Explanation: aideinit creates the baseline database used for future integrity checks. Question 42. To forward system logs to a remote rsyslog server at 192.168.5.10 over UDP, which line belongs in /etc/rsyslog.conf? A) . @192.168.5.10: B) . @@192.168.5.10: C) . udp://192.168.5.10: D) . tcp://192.168.5.10: