Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free LPI LPIC-2 - Exam 202 (part 2 of 2), version 4.5 202-450 Exam Questions

Last updated: · 10 practice questions with answers and explanations

Page: 1 / 12 Total 119 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Domain Name Server

Skill tested: Configures BIND as a caching-only resolver and restricts recursive queries.

A branch office needs a local BIND 9 resolver that can cache answers obtained from upstream DNS servers. It must not host authoritative data for the organization, and recursive service must be available only to clients on 10.24.8.0/24. The host has a working network route to the Internet, and the distribution's packaged root hints are already configured. Which configuration approach best meets these requirements?

Correct Answer: A. Enable recursion, set an access control list for 10.24.8.0/24, allow recursion only for that list, and avoid defining authoritative zones for the organization.
Explanation:

A caching-only BIND server performs recursive lookups for permitted clients and caches the results; it does not need to serve authoritative organizational zones. An ACL combined with a recursion restriction limits the service to the branch subnet and prevents an open resolver. Declaring a root master zone would incorrectly treat the server as authoritative, while disabling recursion defeats the requested caching resolver behavior. Forwarding can be used in a caching configuration, but it does not replace the required client access restriction; enabling recursion for everyone exposes the server to abuse.

Question 2

New Multiple answers

Topic: Domain Name Server

Skill tested: Maintains authoritative DNS zone serials and validates zone changes before reload.

An administrator is updating the primary forward zone for a production domain after adding two host records. A secondary server must receive the change through normal zone-transfer mechanisms, and the primary must continue serving the previous valid zone if the new file contains a syntax error. Which TWO actions provide the appropriate update and operational safeguards? Select TWO.

Correct Answer: D. Increment the zone's SOA serial number using the established serial convention.; E. Run a zone-file syntax and consistency check, such as named-checkzone, before activating the change.
Explanation:

Secondary servers determine whether a zone has changed by comparing the SOA serial, so the primary must increment it for the updated data to propagate through normal transfers. Checking the edited zone before activation catches syntax and consistency errors while the currently loaded zone remains in service. The refresh timer controls how often a secondary checks, not whether a change is identified. Copying SOA data from another server is not a substitute for maintaining the primary's serial, and an immediate restart is unnecessary and does not provide the safest validation workflow.

Question 3

New Single answer

Topic: Web Services

Skill tested: Configures Apache name-based virtual hosts and selects the matching host by request hostname.

A company hosts two HTTPS websites on one Apache 2.4 server using a single IP address. Both sites have valid certificates, and their TLS configuration is already working. After a configuration change, requests for either hostname display the first site's content. The administrator must keep the shared address and avoid adding another public IP. What should be checked first?

Correct Answer: B. That each virtual host has a distinct ServerName matching its requested hostname and is included in the active configuration.
Explanation:

With name-based virtual hosting, Apache selects the appropriate virtual host using the request hostname and the configured ServerName or ServerAlias values. If a name does not match an enabled virtual host, Apache can serve the first configured host as the default, which explains the symptom. Separate ports would change how clients connect and are unnecessary; an additional address contradicts the constraint. Identical document roots do not help Apache select a host, and host selection is not inferred from file contents.

Question 4

New Multiple answers

Topic: Web Services

Skill tested: Applies Apache 2.4 directory access controls and password-file authentication.

A maintenance portal runs under Apache 2.4. Only users in an approved local password file should access the application, and requests from outside the company's 192.0.2.0/24 management network must be denied even when the requester knows a valid username and password. The administrator wants to apply the controls to the portal's filesystem directory, not to every site on the server. Which TWO configuration elements satisfy the requirements? Select TWO.

Correct Answer: B. Place an authorization configuration in a Directory context for the portal's filesystem path.; D. Configure Basic authentication with an AuthUserFile and require a valid user.
Explanation:

A directory-scoped configuration confines the policy to the portal's filesystem path. Basic authentication backed by AuthUserFile verifies approved local credentials, while the configuration can combine that authentication requirement with an IP authorization condition so both criteria must be met. A network restriction alone does not authenticate users, and the old Allow syntax is not the appropriate Apache 2.4 authorization model. A server-wide password policy is not scoped as required, while Require all granted would not enforce the network restriction.

Question 5

New Single answer

Topic: File Sharing

Skill tested: Maps authenticated Samba users to Unix identities and diagnoses share access failures.

A standalone Samba server has a writable share whose directory is owned by Unix group projects. A user can authenticate through Samba and list the share, but receives a permission-denied error when creating files. The user's Unix account exists, the Samba password is valid, and other members of the projects group can write. The share is intended to apply Unix filesystem permissions rather than bypass them. What is the most appropriate next diagnostic step?

Correct Answer: B. Check the user's Unix group membership and the directory's effective group write and execute permissions.
Explanation:

Successful Samba authentication proves that the user passed the share's authentication check, but file operations still depend on the mapped Unix identity and filesystem permissions. Because other projects members can write, the next step is to verify that this user is actually a member of the effective Unix group and that the directory grants that group write and search permissions. Guest access changes the security model rather than diagnosing the issue. NetBIOS discovery does not control file permissions, and changing the Samba password does not grant Unix directory rights.

Question 6

New Multiple answers

Topic: File Sharing

Skill tested: Configures NFS exports with client restrictions and verifies effective export settings.

A Linux file server exports /srv/reports to clients on 10.40.5.0/24. Clients need to read and write reports, and the administrator must prevent remote root users from gaining root privileges on the server. A recent export edit appears not to have taken effect, but restarting unrelated network services is not acceptable. Which TWO actions are appropriate? Select TWO.

Correct Answer: B. Apply the export-table change with exportfs, then inspect the active exports with exportfs -v.; C. Use an export entry restricted to 10.40.5.0/24 with read-write access and root squashing enabled.
Explanation:

The export should limit access to the intended subnet, permit writes, and retain the default root-squashing protection so client root is mapped to an unprivileged identity rather than becoming server root. Applying the export change with exportfs and checking its verbose active view verifies what the server is actually exporting without restarting unrelated services. no_root_squash removes the key protection and subnet restriction does not make that equivalent. A read-only export cannot be made writable by client options, and clients do not load the server's export table.

Question 7

New Single answer

Topic: Network Client Management

Skill tested: Defines DHCP subnet ranges and per-client reservations using client identifiers or hardware addresses.

A DHCP server serves the 10.55.12.0/24 network. Most devices should receive dynamic leases from 10.55.12.100 through 10.55.12.220, but a monitoring appliance must always receive 10.55.12.25. The appliance is on the same subnet, its hardware address is known, and the reserved address is excluded from the dynamic pool. Which configuration design is appropriate?

Correct Answer: B. Define the subnet and dynamic range, then add a host declaration with the appliance's hardware address and a fixed-address value of 10.55.12.25.
Explanation:

A DHCP host declaration can associate a known client hardware address with a fixed address, while the subnet declaration defines the dynamic pool for other clients. Keeping 10.55.12.25 outside the range prevents the server from offering that address dynamically to another client. An infinite lease in the pool is not a reliable reservation mechanism. A BOOTP declaration is not needed for this ordinary DHCP reservation, and a host declaration must correspond to the appropriate network scope rather than assigning an address from an unrelated subnet.

Question 8

New Multiple answers

Topic: Network Client Management

Skill tested: Integrates PAM with SSSD for LDAP authentication while preserving local account access.

A Linux fleet uses LDAP identities through SSSD, with PAM handling login authentication and account checks. During a directory outage, administrators must still log in using local accounts. The existing SSSD configuration and LDAP connectivity have already been verified; the problem is that login attempts do not consult SSSD. Which TWO actions best address the PAM integration requirement? Select TWO.

Correct Answer: B. Use the system's PAM configuration management mechanism to update the relevant service stacks without removing local authentication paths.; E. Ensure the relevant PAM service stack includes the SSSD PAM module for authentication and account processing.
Explanation:

SSSD supplies PAM modules for authentication and account management, but the relevant service's PAM stack must invoke them. Updating the stack through the system's supported PAM configuration mechanism reduces the risk of inconsistent service files. Existing local authentication paths should remain so administrators can use local accounts during a directory outage. Replacing local shadow entries is neither necessary nor an appropriate integration method. NSS controls identity and group lookups, not PAM authentication, and a hosts-file entry cannot configure PAM to use LDAP.

Question 9

New Single answer

Topic: E-Mail Services

Skill tested: Updates Postfix aliases and rebuilds the database used for alias resolution.

A Postfix host must deliver mail addressed to the local alias audit@example.net to a team mailbox named compliance. The alias is being added to /etc/aliases, but a test message still reports the old expansion. The administrator confirms that Postfix uses the standard aliases database derived from that file and needs the change activated without restarting the mail service. What should be done next?

Correct Answer: D. Run newaliases to rebuild the aliases database, then verify the resulting expansion.
Explanation:

Postfix commonly reads the compiled aliases database rather than using /etc/aliases as a live file for each delivery. Running newaliases rebuilds that database from the edited file, allowing the updated expansion to take effect without restarting Postfix; verification can then confirm the mapping. postmap is used to build other map types and is not a replacement for the standard aliases workflow described. Logging has no role in reloading aliases, and direct queue-file edits are unsafe and do not correctly change alias resolution.

Question 10

New Multiple answers

Topic: System Security

Skill tested: Implements IPv4 forwarding, stateful NAT, and narrowly scoped port redirection with iptables.

A Linux gateway connects a private LAN, 10.60.0.0/24, to an external interface. LAN clients need outbound IPv4 connectivity through the gateway's public address. An internal web server at 10.60.0.20 must also receive inbound TCP connections on the gateway's public port 8443, forwarded to its port 443. The firewall should allow established return traffic and avoid exposing other internal services. Which TWO actions are required? Select TWO.

Correct Answer: A. Add a narrowly matched PREROUTING DNAT rule for external TCP destination port 8443 to 10.60.0.20:443, with appropriate forwarding-chain filtering.; C. Enable IPv4 forwarding and configure a POSTROUTING masquerade rule for outbound packets leaving the external interface.
Explanation:

IPv4 forwarding allows the gateway to route packets between interfaces, and POSTROUTING masquerading gives outbound LAN traffic the gateway's external source address. Inbound port redirection requires destination NAT in PREROUTING, matched narrowly to TCP port 8443 and translated to the internal server's address and port; forwarding-chain rules must permit the intended flow while stateful rules allow replies. SNAT in INPUT does not route packets onward. Disabling connection tracking undermines stateful filtering, and a broad new-inbound forwarding rule exposes services beyond the stated requirement.