102-400 Premium Bundle

102-400 Premium Bundle

LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2. Certification Exam

4.5 
(31140 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
September 29, 2024Last update

LPI 102-400 Free Practice Questions

Q1. CORRECT TEXT - (Topic 2) 

What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.) 

Answer: xorg.conf 

Q2. CORRECT TEXT - (Topic 6) 

Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.) 

Answer: /etc/sudoers 

Q3. - (Topic 5) 

Which of the following is a valid IPv6 address? 

A. 2001:db8:3241::1 B. 2001::db8:4581::1 

C. 2001:db8:0g41::1 

D. 2001%db8%9990%%1 

E. 2001.db8.819f..1 

Answer:

Topic 6, Security 

Q4. - (Topic 4) 

Which of the following are syslog facilities? (Choose TWO correct answers.) 

A. local7 

B. mail 

C. advanced 

D. postmaster 

E. remote 

Answer: A,B 

Q5. CORRECT TEXT - (Topic 6) 

With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.) 

Answer: DISPLAY, $DISPLAY 

Q6. - (Topic 5) 

What is the purpose of the nsswitch.conf file? 

A. It is used to configure where the C library looks for system information such as host names and user passwords. 

B. It is used to configure network protocol port numbers such as for HTTP or SMTP. 

C. It is used to configure LDAP authentication services for the local system. 

D. It is used to configure which network services will be turned on during the next system boot. 

Answer:

Q7. CORRECT TEXT - (Topic 5) 

What is the lowest numbered unprivileged TCP port? (Specify the number in digits only.) 

Answer: 1024 

Q8. - (Topic 5) 

Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.) 

A. resolv 

B. dns 

C. remote 

D. files 

E. hosts 

Answer: B,D 

Q9. CORRECT TEXT - (Topic 6) 

The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.) 

Answer: /etc/nologin 

Q10. - (Topic 3) 

Where are user specific crontabs stored? 

A. In the database file /etc/crontab.db which is shared by all users. 

B. As individual per-user files within /var/spool/cron. 

C. As individual per-user files in /etc/cron.user.d. 

D. In the .crontab file in the user's home directory. 

E. In the file /var/cron/user-crontab which is shared by all users. 

Answer:

Q11. - (Topic 5) 

Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.) 

A. ifconfig 

B. dig 

C. netstat 

D. route 

E. trackroute 

Answer: C,D 

Q12. - (Topic 2) 

How is a display manager started? 

A. It is started by a user using the command startx. 

B. It is started like any other system service by the init system. 

C. It is started by inetd when a remote hosts connects to the X11 port. 

D. It is started automatically when a X11 user logs in to the system console. 

Answer:

Q13. - (Topic 5) 

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.) 

A. route del default 

B. ifconfig unset default 

C. netstat -r default 

D. ip route del default 

E. sysctl ipv4.default_gw=0 

Answer: A,D 

Q14. CORRECT TEXT - (Topic 5) 

How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.) 

Answer: 14 

Q15. CORRECT TEXT - (Topic 5) 

Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file? 

Answer: files 

Q16. - (Topic 6) 

Which configuration file would be edited to change the default options for outbound SSH sessions? 

A. /etc/ssh/sshd_config 

B. /etc/ssh/ssh 

C. /etc/ssh/client 

D. /etc/ssh/ssh_config 

E. /etc/ssh/ssh_client 

Answer:

Q17. - (Topic 2) 

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.) 

A. Start and prepare the desktop environment for the user. 

B. Configure additional devices like new monitors or projectors when they are attached. 

C. Handle the login of a user. 

D. Lock the screen when the user was inactive for a configurable amount of time. 

E. Create an X11 configuration file for the current graphic devices and monitors. 

Answer: A,C 

Topic 3, Administrative Tasks 

START 102-400 EXAM