Exam Information
Free practice questions with explanations
LPI 202-450 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Domain Name Server
A small company runs a caching-only BIND 9 server on an internal network. The administrator has edited /etc/named.conf to add a new forward zone file located at /var/named/corp.example.zone. Clients must begin using the new zone immediately, and the cache must not be flushed because heavy traffic depends on it. Which action meets these requirements with the least disruption?
Correct Answer: BExplanationrndc reload with a zone name reloads only that zone, reading the new file without restarting named, so the cache is preserved and clients see the zone at once. A full restart drops the cache and interrupts service, which the scenario forbids. Sending SIGKILL is abrupt and gives no clean reload, and rndc flush deliberately empties the cache, violating the explicit constraint. The chosen command is the precise, non-disruptive path.
-
2 Question 2 Single choice Domain Name Server
An administrator must create a reverse zone for the 192.0.2.0/24 network on a primary BIND server. Zone transfers to a secondary must be allowed only to 192.0.2.53, and the reverse zone must use a serial number that increases monotonically so secondaries pick up changes. Which SOA and zone-file practice best satisfies these needs?
Correct Answer: BExplanationSecondaries decide whether to transfer by comparing the SOA serial, so it must increase with each change; a date-based serial incremented on edits does this. Restricting transfers requires allow-transfer naming 192.0.2.53, which the first option pairs correctly. Keeping the serial fixed means secondaries never see updates, allowing any address exposes the zone, omitting allow-transfer leaves transfers open by default, and a serial of 0 does not signal a change to secondaries.
-
3 Question 3 Multiple choice Web Services
A hosting provider runs Apache 2.4 with name-based virtual hosts on a single IP address for many customers. A customer's site at /var/www/shop must be reachable only from the 203.0.113.0/24 network, and the administrator must prevent the default virtual host from serving requests for unknown host names. Which two actions together achieve this? (Choose two.)
Correct Answer: B, EExplanationApache 2.4 uses the Require directive, and placing it in a Directory block for the shop path enforces the source-network restriction. In name-based virtual hosting, the first VirtualHost on the matching address acts as the default for unrecognised host names, so a dedicated default returning 403 stops unknown names from reaching customer content. AllowOverride None disables the .htaccess file entirely, the wildcard ServerName is not a valid mechanism, and moving ports does not address access control or default-host behaviour.
-
4 Question 4 Drag and drop File Sharing
A company integrates a Samba 4 file server as a member of an Active Directory domain. Administrators must map each requirement to the configuration element or tool that fulfils it. Match each requirement to the correct element.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Create a local Samba password entry for an existing Linux accountMount a Windows share on a Linux client with the CIFS filesystem driverVerify the smb.conf syntax and display the effective parameter values before restarting servicesShow which users are currently connected and which files are open on the servermount.cifssmbpasswdsmbstatuswinbinddnmblookuptestparmCorrect Answer:- Verify the smb.conf syntax and display the effective parameter values before restarting services → testparm
- Show which users are currently connected and which files are open on the server → smbstatus
- Mount a Windows share on a Linux client with the CIFS filesystem driver → mount.cifs
- Create a local Samba password entry for an existing Linux account → smbpasswd
Explanationtestparm parses smb.conf, reports syntax errors and prints effective settings, making it the safe check before a restart. smbstatus lists active sessions and open files. mount.cifs is the mount helper for CIFS shares on Linux clients. smbpasswd manages the Samba password database for local accounts. nmblookup resolves NetBIOS names and winbindd provides identity mapping, so neither fits the listed requirements.
-
5 Question 5 Single choice Network Client Management
A DHCP server on 10.20.0.0/24 must hand out a fixed address to a network printer identified by its MAC address and advertise a dedicated TFTP server to that device only. All other clients on the subnet must continue to receive addresses from a dynamic pool of 10.20.0.100 to 10.20.0.199 with the standard gateway. Which configuration achieves this?
Correct Answer: DExplanationIn dhcpd.conf, a host declaration with a hardware ethernet entry and fixed-address creates a static reservation, while next-server supplies the TFTP host for that client, and the subnet's range continues serving the dynamic pool. Removing the range breaks dynamic clients, editing dhcpd.leases is not a configuration method and the server rewrites that file, and a global next-server would impose the TFTP setting on all clients, violating the per-device requirement.
-
6 Question 6 Dropdown Network Client Management
A Linux administrator must configure PAM on a workstation so that users authenticate against an LDAP directory through SSSD, while local accounts still work if the directory is unreachable. The administrator is editing the PAM stack for the system-auth service and needs the correct module ordering and SSSD integration. Complete the configuration fragment by selecting the correct value for each blank.
Choose the correct value for each blank.
auth sufficient pam_unix.so try_first_pass
auth pam_sss.so forward_pass
account pam_sss.so
session optional pam_sss.soCorrect Answer:auth sufficient pam_unix.so try_first_pass
auth sufficient pam_sss.so forward_pass
account required pam_sss.so
session optional pam_sss.so pam_sss.soExplanationpam_unix with sufficient lets local accounts succeed without contacting the directory, so the local line stays first. The pam_sss auth entry must be required so that a failed SSSD check still denies access rather than falling through, which is why the sssd entry uses required. The session module that performs SSSD integration is pam_sss.so, and the account stage is handled by pam_sss.so as well. The other options name a different product or a non-existent control value.
-
7 Question 7 Order list E-Mail Services
A mail administrator must enable TLS for inbound SMTP connections on a Postfix server that currently accepts plaintext only. The certificate and private key are already present in /etc/ssl/mail/. Arrange the steps in the correct order so that TLS is active and verified without leaving the service broken between changes.
Drag the steps into the correct order, or use the arrows.
- Connect with openssl s_client -starttls smtp to confirm the server presents the certificate
- Reload the service with postfix reload so the new TLS settings take effect for new connections
- Set smtpd_tls_cert_file and smtpd_tls_key_file in /etc/postfix/main.cf to the certificate and key paths
- Validate the modified configuration with postfix check and correct any reported errors
Correct Answer:- Set smtpd_tls_cert_file and smtpd_tls_key_file in /etc/postfix/main.cf to the certificate and key paths
- Validate the modified configuration with postfix check and correct any reported errors
- Reload the service with postfix reload so the new TLS settings take effect for new connections
- Connect with openssl s_client -starttls smtp to confirm the server presents the certificate
ExplanationThe certificate and key paths must be declared in main.cf first, since nothing else can take effect without them. postfix check then catches syntax or permission problems before the daemon sees them, and reload applies the change without dropping existing sessions. Only after the reload can a STARTTLS handshake test prove the certificate is served. Testing before reloading would test the old configuration, and checking syntax after reloading inverts the safe sequence.
-
8 Question 8 Single choice E-Mail Services
A company runs Postfix as an internal relay for several application servers that submit mail without authentication. The security team requires that only the 10.40.0.0/16 network can relay, that unknown recipients on local domains are rejected during the SMTP session rather than accepted and bounced later, and that the change does not affect relaying for authenticated remote users. Which setting best meets these requirements?
Correct Answer: BExplanationmynetworks defines the trusted client networks for relaying, and smtpd_recipient_restrictions containing reject_unauth_destination enforces relay control while reject_unlisted_recipient rejects unknown local recipients at SMTP time. Setting mydestination to a network is invalid because it expects domain names, emptying local_recipient_maps removes recipient validation, aliases do not control relaying, and permit_all removes the protection the scenario demands.
-
9 Question 9 Multiple choice System Security
A router between an internal 192.168.10.0/24 network and the Internet runs iptables. Its default FORWARD policy is DROP. Web servers on the internal network at 192.168.10.20 must be reachable from the Internet on TCP port 443 through the public address, and the internal network must reach the Internet with source address translation. Which two rules are required? (Choose two.)
Correct Answer: A, EExplanationA DNAT rule in PREROUTING on the external interface maps incoming port 443 to the internal web server, and a MASQUERADE rule in POSTROUTING translates outbound internal traffic. Forwarding must still be permitted, which the scenario's DROP policy would otherwise block, but the two listed NAT rules are the core requirement. REDIRECT only sends traffic to the router itself, the FORWARD rule is unnecessary for the chosen answer set, and disabling ip_forward would stop all forwarding.
-
10 Question 10 Single choice System Security
An administrator has written a long iptables ruleset on a production gateway and wants it to survive a reboot without losing the rules applied since boot. The rules were built interactively and currently exist only in kernel memory. The administrator must not disconnect remote SSH sessions during the change. Which action should be taken FIRST?
Correct Answer: AExplanationiptables-save dumps the current in-memory rules to stdout, which can be redirected to a file, and capturing them first preserves the work and keeps the session stable. Flushing the chains before saving would drop the live rules and could cut the SSH session, and changing policies to ACCEPT weakens security without being required. Rebooting before saving would lose every rule that exists only in memory.
-
11 Question 11 Single choice System Security
An organisation applies the same iptables policy on IPv4 and IPv6 gateways. It must block inbound connections to the internal management interface from any address outside the Unique Local Address range fd00::/8 on IPv6 and outside 10.0.0.0/8 on IPv4. Traffic from link-local addresses on the local segment must still be permitted for neighbour discovery. Which approach is correct?
Correct Answer: BExplanationIPv6 filtering requires ip6tables, since iptables handles only IPv4, so separate rule sets are needed for each family. Allowing fe80::/10 keeps link-local neighbour discovery working, and fd00::/8 is the Unique Local Address range named in the scenario. Relying on disabling IPv6 is an unverified assumption and not a stated control, iptables cannot filter IPv6 packets, and a 192.168.0.0/16 rule matches the wrong ranges and does not mirror rules between tools.
-
12 Question 12 Dropdown System Security
An administrator enables packet forwarding on a Linux router and needs it to persist across reboots. The kernel parameter is exposed under /proc/sys/net/ipv4/. The administrator wants the change applied immediately and then recorded in the sysctl configuration. Complete the commands by selecting the correct value for each blank.
Choose the correct value for each blank.
sysctl -w net.ipv4.=
echo "net.ipv4. = " >> /etc/Correct Answer:sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.confExplanationThe net.ipv4.ip_forward parameter corresponds to /proc/sys/net/ipv4/ip_forward, and setting it to 1 enables forwarding. sysctl -w applies it to the running kernel immediately, and appending the same setting to /etc/sysctl.conf makes it persist at boot. The other options are either not real parameter names or refer to unrelated files that do not control kernel forwarding.
-
13 Question 13 Single choice Web Services
A busy Apache 2.4 server in prefork mode is running out of memory during traffic spikes. The administrator must cap the number of simultaneous client connections to protect RAM, while keeping a minimum pool of idle workers ready for normal load and not restarting the server to test each change. Which configuration and procedure is best?
Correct Answer: DExplanationMaxRequestWorkers caps concurrent connections in prefork, and MinSpareServers and MaxSpareServers control the idle pool. apachectl configtest validates the file before use, and graceful restart applies new settings to new connections without killing active requests, satisfying the no-restart constraint. Setting the limit to 1 cripples throughput, a zero spare pool causes latency on every burst, and Apache does not choose limits at runtime.
-
14 Question 14 Single choice Domain Name Server
A caching DNS resolver must log all queries that receive SERVFAIL responses to a dedicated file for troubleshooting, without enabling full query logging across every category, which would overwhelm the disk. The administrator has a logging channel named servfail_log. Which configuration correctly routes only the relevant messages to that channel?
Correct Answer: CExplanationBIND logging uses named channels routed to categories, and the resolver category captures resolution failures including SERVFAIL responses, so attaching it to a dedicated file isolates just those messages. Raising debug globally floods the disk, and the scenario rules out broad logging. Full query logging via rndc querylog records everything rather than only failures, and the queries category would produce large volume without targeting SERVFAIL.
These are 14 of the 119 questions in the full 202-450 pack.
Get All 119 QuestionsGet all 119 questions & answers
Full access options for LPI 202-450
Self-study
PDF Version
- 119 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 119 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 119 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 202-450 Exam (LPIC-2 - Exam 202 (part 2 of 2), version 4.5) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.