View Full LPI 202-450 Exam Dumps and Practice Test Dumps
Question 1. Which file is the primary configuration file for the BIND DNS server?
- /etc/resolv.conf
- /etc/named.conf
- /etc/hosts
- /etc/dns.conf
Correct Answer: 2. /etc/named.conf
Explanation :-
The /etc/named.conf file is the primary configuration file for BIND, one of the most widely used DNS server implementations covered by the LPIC-2 202-450 objectives. It defines global server behavior and can contain zone declarations, options, logging configuration, and other settings. The /etc/resolv.conf file is used by DNS clients to specify resolver configuration, rather than configuring the BIND server itself. The /etc/hosts file provides local hostname-to-address mappings. Administrators should distinguish between DNS server configuration and client-side resolver configuration when troubleshooting name resolution.
Question 2. Which command is commonly used to test DNS queries and inspect DNS server responses in detail?
- traceroute
- hostname
- ip route
- dig
Correct Answer: 4. dig
Explanation :-
The dig command is a powerful DNS troubleshooting utility that allows administrators to query DNS servers and inspect detailed responses. It can be used to examine specific record types, query particular DNS servers, and troubleshoot forward and reverse lookups. For example, an administrator can use dig to determine whether an A, AAAA, MX, or other record is being returned correctly. host is another DNS query utility, but dig generally provides more detailed diagnostic information. Commands such as traceroute and ip route are intended for network-path and routing tasks rather than detailed DNS analysis.
Question 3. Which DNS record type maps a hostname to an IPv4 address?
- A
- MX
- PTR
- CNAME
Correct Answer: 1. A
Explanation :-
An A record maps a DNS hostname to an IPv4 address. For example, an A record can associate server.example.com with an IPv4 address used by clients to reach that server. An AAAA record serves a similar purpose for IPv6 addresses. An MX record identifies mail servers responsible for a domain, while a PTR record is commonly used for reverse DNS lookups. A CNAME record creates an alias for another DNS name. Understanding these record types is essential when configuring and troubleshooting authoritative DNS zones under the LPIC-2 202-450 objectives.
Question 4. Which DNS record is primarily used for reverse DNS mapping from an IP address to a hostname?
- MX
- NS
- PTR
- TXT
Correct Answer: 3. PTR
Explanation :-
A PTR record is used for reverse DNS resolution, where an IP address is mapped back to a hostname. IPv4 reverse DNS zones are commonly located under the in-addr.arpa domain, while IPv6 reverse DNS uses ip6.arpa. PTR records are frequently used for troubleshooting, logging, and services that perform reverse lookups. An MX record identifies mail exchange servers, NS identifies authoritative name servers, and TXT stores textual information associated with a domain. Correctly configuring reverse DNS requires an appropriate reverse zone and PTR records that correspond to the relevant IP addresses.
Question 5. Which directive in an Apache HTTP Server virtual host configuration specifies the hostname and port to which a virtual host responds?
- ServerName
- DocumentRoot
- DirectoryIndex
- ErrorLog
Correct Answer: 1. ServerName
Explanation :-
The ServerName directive identifies the hostname and, when applicable, port associated with an Apache virtual host. Apache can use this information when determining which virtual host should handle an incoming request. DocumentRoot specifies the directory containing website files, DirectoryIndex defines default files served for directory requests, and ErrorLog specifies where error messages are recorded. Proper virtual host configuration allows a single web server to host multiple websites or domains. Understanding these directives is important for configuring and troubleshooting Apache-based web services.
Question 6. Which Apache directive specifies the directory from which website files are served?
- ServerAlias
- Listen
- ErrorDocument
- DocumentRoot
Correct Answer: 4. DocumentRoot
Explanation :-
The Apache DocumentRoot directive specifies the directory containing the files that Apache serves for a particular virtual host or server configuration. When a client requests a resource, Apache uses the configured document root as the starting point for locating the requested content. ServerAlias defines additional hostnames, Listen specifies the network address and port Apache listens on, and ErrorDocument defines responses for certain HTTP errors. Correctly setting DocumentRoot is therefore essential when configuring websites and virtual hosts.
Question 7. Which protocol is commonly used by Samba to provide file and printer sharing with Windows clients?
- SMB
- NFS
- FTP
- LDAP
Correct Answer: 1. SMB
Explanation :-
Samba implements the SMB/CIFS family of protocols and allows Linux systems to provide file and printer sharing services to Windows and other compatible clients. Samba can integrate with mixed Linux and Windows environments and can provide shared directories with configurable access controls. NFS is commonly used for file sharing between Unix-like systems, while FTP is designed for file transfer and LDAP provides directory services. Understanding SMB and Samba configuration is an important part of the LPIC-2 202-450 file-sharing objectives.
Question 8. Which configuration file commonly defines Samba shares and global server settings?
- /etc/exports
- /etc/samba/smb.conf
- /etc/named.conf
- /etc/vsftpd.conf
Correct Answer: 2. /etc/samba/smb.conf
Explanation :-
The /etc/samba/smb.conf file is the primary configuration file traditionally used by Samba. It contains global settings and definitions for shared resources, including parameters that control how clients access individual shares. The /etc/exports file serves a different purpose and is associated with NFS exports. /etc/named.conf is used for BIND DNS configuration, while /etc/vsftpd.conf is commonly associated with the Very Secure FTP daemon. Administrators configuring Samba should understand the distinction between global Samba settings and individual share definitions within this configuration file.
Question 9. Which file is commonly used to define directories exported by an NFS server?
- /etc/exports
- /etc/fstab
- /etc/samba/smb.conf
- /etc/named.conf
Correct Answer: 1. /etc/exports
Explanation :-
The /etc/exports file contains definitions of directories that an NFS server makes available to remote clients. Each export can include client specifications and export options that control how the shared filesystem is accessed. After modifying exports, administrators can use appropriate NFS utilities to reload or update the active export configuration. /etc/fstab is primarily used for filesystem mount configuration, while Samba and BIND use their own configuration files. Understanding /etc/exports is fundamental to configuring NFS file sharing in a Linux server environment.
Question 10. Which NFS utility can display the filesystems exported by an NFS server?
- smbclient
- ftp
- dig
- showmount
Correct Answer: 4. showmount
Explanation :-
The showmount utility can query an NFS server and display information about its exported filesystems. It is useful when verifying whether an NFS server is making the expected directories available to clients. For example, administrators can use showmount -e to display the exports known to the queried server. smbclient is associated with SMB/Samba services, ftp is used for FTP connections, and dig is a DNS troubleshooting utility. Understanding NFS diagnostic commands helps administrators verify file-sharing configurations and troubleshoot client-server connectivity.
Question 11. Which protocol is primarily used to securely transfer files over an SSH connection?
- FTP
- SFTP
- TFTP
- SMTP
Correct Answer: 2. SFTP
Explanation :-
SFTP, or SSH File Transfer Protocol, provides secure file transfer functionality through the SSH protocol. It encrypts authentication credentials and transferred data, making it appropriate for secure administrative file transfers. FTP normally does not provide encryption by itself, while TFTP is a lightweight file-transfer protocol with very limited functionality and no built-in security comparable to SSH. SMTP is used for mail transfer. Administrators should distinguish SFTP from FTPS: although both can provide encrypted file transfers, they use different underlying technologies and configuration mechanisms.
Question 12. Which protocol is commonly used by an SMTP server to relay outgoing email between mail servers?
- DNS
- IMAP
- SMTP
- NFS
Correct Answer: 3. SMTP
Explanation :-
SMTP, the Simple Mail Transfer Protocol, is used for sending and relaying email messages. Mail servers use SMTP to transfer messages between systems, and mail clients may also use SMTP to submit outgoing messages to a mail server. IMAP is primarily used by clients to access and manage mail stored on a server. DNS provides name resolution, and NFS provides network filesystem sharing. Understanding the distinction between mail transfer and mail retrieval protocols is important for configuring and troubleshooting email services covered by the 202-450 objectives.
Question 13. Which protocol allows a mail client to access messages while keeping them stored on the mail server?
- FTP
- SMTP
- DHCP
- IMAP
Correct Answer: 4. IMAP
Explanation :-
IMAP allows mail clients to access messages stored on a mail server while maintaining the mailbox on the server. This makes it suitable for users who access the same mailbox from multiple devices because message state and folders can be synchronized with the server. SMTP is primarily used for sending and relaying email, while FTP handles file transfer and DHCP provides network configuration information. POP3 is another mail-retrieval protocol, but its traditional behavior differs from IMAP because it is commonly associated with downloading messages to the client.
Question 14. Which DHCP message is sent by a client to locate available DHCP servers after it needs network configuration?
- DHCPDISCOVER
- DHCPACK
- DHCPRELEASE
- DHCPDECLINE
Correct Answer: 1. DHCPDISCOVER
Explanation :-
DHCPDISCOVER is the initial broadcast message a DHCP client uses to locate available DHCP servers. A typical DHCP exchange follows the DORA sequence: Discover, Offer, Request, and Acknowledgment. The server responds with DHCPOFFER, the client sends DHCPREQUEST, and the server completes the process with DHCPACK. DHCPRELEASE is used when a client gives up its lease, while DHCPDECLINE indicates that an offered address appears to be in use. Understanding this exchange is important for troubleshooting automatic network configuration and DHCP client-server communication.
Question 15. Which DNS record identifies the authoritative name servers for a DNS zone?
- A
- PTR
- NS
- MX
Correct Answer: 3. NS
Explanation :-
An NS record identifies the authoritative name servers responsible for a DNS zone. These records help DNS resolvers determine which servers are authoritative for information belonging to the relevant domain. A records map names to IPv4 addresses, PTR records provide reverse mappings from addresses to names, and MX records identify mail exchange servers for a domain. Correct NS configuration is important for delegation and authoritative DNS operation. Administrators troubleshooting DNS delegation should therefore examine NS records along with related glue records and registrar or parent-zone configuration where applicable.
Question 16. Which command can be used to validate the syntax of a BIND configuration file?
- named-checkzone
- named-checkconf
- rndc-query
- dnscheck
Correct Answer: 2. named-checkconf
Explanation :-
The named-checkconf utility checks the syntax of BIND configuration files and can help identify configuration errors before a server is restarted or reloaded. This is especially useful after modifying /etc/named.conf or related included configuration files. named-checkzone serves a different purpose by checking DNS zone-file syntax and consistency for a specified zone. Using these validation utilities before applying configuration changes can reduce service interruptions caused by syntax errors. Administrators should validate both the main configuration and relevant zone files when troubleshooting BIND.
Question 17. Which Apache directive defines the network address and port on which the server listens for connections?
- DirectoryIndex
- ServerName
- Listen
- DocumentRoot
Correct Answer: 3. Listen
Explanation :-
The Apache Listen directive specifies the IP address and port on which the HTTP server accepts incoming connections. For example, an administrator can configure Apache to listen on a specific address and TCP port rather than all available interfaces. ServerName identifies the server or virtual host name, DocumentRoot identifies the directory containing website content, and DirectoryIndex controls default files served for directory requests. Incorrect Listen configuration can prevent Apache from accepting connections on the expected address or port, making it an important troubleshooting area for web-server administrators.
Question 18. Which Linux mechanism is commonly used to securely authenticate remote administrative sessions?
- SSH
- Telnet
- TFTP
- FTP
Correct Answer: 1. SSH
Explanation :-
SSH, the Secure Shell protocol, provides encrypted remote access and is widely used for secure Linux administration. It protects authentication credentials and session data against network interception when properly configured. SSH can also provide secure file transfer through SFTP and secure copying through related tools. Telnet transmits sessions without the same level of encryption and is generally unsuitable for secure administration across untrusted networks. FTP and TFTP are primarily file-transfer protocols rather than interactive remote administration mechanisms. SSH configuration and security are important components of the LPIC-2 202-450 system-security objectives.
Question 19. Which file can provide local hostname-to-IP address mappings before or alongside DNS resolution, depending on resolver configuration?
- /etc/hosts
- /etc/exports
- /etc/named.conf
- /etc/smb.conf
Correct Answer: 1. /etc/hosts
Explanation :-
The /etc/hosts file contains static local mappings between hostnames and IP addresses. Depending on the system’s name-service configuration, these mappings may be consulted before DNS or according to the configured lookup order. This makes /etc/hosts useful for local overrides, small environments, testing, and troubleshooting. It is not a replacement for an authoritative DNS server in larger environments. /etc/named.conf configures BIND, /etc/exports configures NFS exports, and Samba uses its own configuration files. Understanding local name resolution is important when diagnosing unexpected hostname-to-address results.
Question 20. Which command is commonly used to test whether a DNS name resolves to an IP address without requiring detailed DNS packet information?
- mount
- smbclient
- host
- iptables
Correct Answer: 3. host
Explanation :-
The host command is a straightforward DNS lookup utility that can be used to query a hostname or IP address and display the resulting DNS information. It is useful for quickly verifying whether a name resolves correctly and can also perform reverse lookups. The dig command provides more detailed DNS diagnostic output and is often preferred when deeper troubleshooting is required. Commands such as mount, smbclient, and iptables serve different purposes related to filesystems, SMB access, and firewall configuration. Both host and dig are relevant tools for DNS administration under the 202-450 objectives.