Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

LPIC-2 Exam 202

Master the configuration of enterprise-scale network services to complete your LPIC-2 certification.

4.8★★★★★(224 ratings)
20,650 studentsIntermediate
This exam completes your LPIC-2 certification, focusing on the deployment and management of mission-critical network services. You will master DNS (BIND), Web services (Apache/Nginx), File sharing (Samba/NFS), and system security including VPNs and firewalls. Completing your LPIC-2 distinguishes you as an elite Linux professional capable of managing complex enterprise infrastructures. This credential is vital for senior infrastructure roles, ensuring you can provide reliable, high-performance services to global users.

What you'll learn

  • DNS (Domain Name System)
  • Web Services (CGI/TLS/Apache)
  • File Sharing (Samba/NFS)
  • Network Client Management
  • System Security (IPTables/OpenVPN)

202-450

Lectures2
Questions61
Duration30 week
Students20,650

$20.00

Full Free Question Bank (61 Questions)

LPIC-2 Exam 202 (202-450) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1

On a Linux router, packet forwarding for IPv4 has been enabled. After a reboot, the machine no longer forwards IP packets from other hosts. The command: echo 1 > /proc/sys/net/ipv4/ip_forward temporarily resolves this issue. Which one of the following options is the best way to ensure this setting is saved across system restarts?

AAdd echo 1 > /proc/sys/net/ipv4/ip_forward to the root user login script
BAdd echo 1 > /proc/sys/net/ipv4/ip_forward to any user login script
CIn /etc/sysct1.conf change net.ipv4.ip_forward to 1
DIn /etc/rc.local add net.ipv4.ip_forward = 1
EIn /etc/sysconfig/iptables-config add ipv4.ip_forward = 1
Question #2Part 1

What information can be found in the file specified by the status parameter in an OpenVPN server configuration file? (Choose two.)

AErrors and warnings generated by the openvpn daemon
BRouting information
CStatistical information regarding the currently running openvpn daemon
DA list of currently connected clients
EA history of all clients who have connected at some point
Question #3Part 1Select 2

Which of the following lines in the sshd configuration file should, if present, be changed in order to increase the security of the server? (Choose two.)

AProtocol 2, 1
BPermitEmptyPasswords no
CPort 22
DPermitRootLogin yes
EIgnoreRhosts yes
Question #4Part 1Select 2

Which of the following nmap parameters scans a target for open TCP ports? (Choose two.)

A-sO
B-sZ
C-sT
D-sU
E-sS
Question #5Part 1Select 2

Which of the statements below are correct regarding the following commands, which are executed on a Linux router? (Choose two.)

APackets with source or destination addresses from fe80::/64 will never occur in the
BThe rules disable packet forwarding because network nodes always use addresses from
Cip6tables returns an error for the second command because the affected network is already
DBoth ip6tables commands complete without an error message or warning
EThe rules suppress any automatic configuration through router advertisements or DHCPv6
Question #6Part 1

What option in the client configuration file would tell OpenVPN to use a dynamic source port when making a connection to a peer?

Asrc-port
Bremote
Csource-port
Dnobind
Edynamic-bind
Question #7Part 1

Which Linux user is used by vsftpd to perform file system operations for anonymous FTP users?

AThe Linux user which runs the vsftpd process
BThe Linux user that owns the root FTP directory served by vsftpd
CThe Linux user with the same user name that was used to anonymously log into the FTP
DThe Linux user root, but vsftpd grants access to anonymous users only to globally
EThe Linux user specified in the configuration option ftp_username
Question #8Part 1

Which of the following sshd configuration should be set to no in order to fully disable password based logins? (Choose two.)

APAMAuthentication
BChallengegeResponseAuthentication
CPermitPlaintextLogin
DUsePasswords
EPasswordAuthentication
Question #9Part 1

When the default policy for the netfilter INPUT chain is set to DROP, why should a rule allowing traffic to localhost exist?

AAll traffic to localhost must always be allowed
BIt doesn't matter; netfilter never affects packets addressed to localhost
CSome applications use the localhost interface to communicate with other applications
Dsyslogd receives messages on localhost
EThe iptables command communicates with the netfilter management daemon netfilterd on
Question #10Part 1

The content of which local file has to be transmitted to a remote SSH server in order to be able to log into the remote server using SSH keys?

A~/.ssh/authorized_keys
B~/.ssh/config
C~/.ssh/id_rsa.pub
D~/.ssh/id_rsa
E~./ssh/known_hosts
Question #11Part 1

What is the name of the network security scanner project which, at the core, is a server with a set of network vulnerability tests?

ANetMap
BOpenVAS
CSmartscan
DWireshark
Question #12Part 1

With fail2ban, what is a " ̃jail'?

AA netfilter rules chain blocking offending IP addresses for a particular service
BA group of services on the server which should be monitored for similar attack patterns in the
CA filter definition and a set of one or more actions to take when the filter is matched
DThe chroot environment in which fail2ban runs
Question #13Part 1

The program vsftpd, running in a chroot jail, gives the following error: Which of the following actions would fix the error?

AThe file /etc/ld.so.conf in the root filesystem must contain the path to the appropriate lib
BCreate a symbolic link that points to the required library outside the chroot jail
CCopy the required library to the appropriate lib directory in the chroot jail
DRun the program using the command chroot and the option--static_libs
Question #14Part 1

Which of the following Samba configuration parameters is functionally identical to the parameter read only=yes?

Abrowseable=no
Bread write=no
Cwriteable=no
Dwrite only=no
Ewrite access=no
Question #15Part 1

How must Samba be configured such that it can check CIFS passwords against those found in /etc/passwd and /etc/shadow?

ASet the parameters "encrypt passwords = yes" and "password file = /etc/passwd"
BSet the parameters "encrypt passwords = yes", "password file = /etc/passwd" and "password
CDelete the smbpasswd file and create a symbolic link to the passwd and shadow file
DIt is not possible for Samba to use /etc/passwd and /etc/shadow directly
ERun smbpasswd to convert /etc/passwd and /etc/shadow to a Samba password file
Question #16Part 1

In which CIFS share must printer drivers be placed to allow Point'n'Print driver deployment on Windows?

Awinx64drv$
Bprint$
CThe name of the share is specified in the option print driver share within each printable share
Dpnpdrivers$
ENETLOGON
Question #17Part 1

Which of the following Samba services handles the membership of a file server in an Active Directory domain?

Awinbindd
Bnmbd
Cmsadd
Dadmemb
Esamba
Question #18Part 1

Which of the following statements is true regarding the NFSv4 pseudo file system on the NFS server?

AIt must be called /exports
BIt usually contains bind mounts of the directory trees to be exported
CIt must be a dedicated partition on the server
DIt is defined in the option Nfsv4-Root in /etc/pathmapd.conf
EIt usually contains symlinks to the directory trees to be exported
Question #19Part 1Select 2

Which of the following options are valid in /etc/exports? (Choose two.)

Arw
Bro
Crootsquash
Dnorootsquash
Euid
Question #20Part 1

Which command is used to configure which file systems a NFS server makes available to clients?

Aexportfs
Bmkfs.nfs
Cmount
Dnfsservct1
Etelinit
Question #21Part 1

Which of these tools, without any options, provides the most information when performing DNS queries?

Adig
Bnslookup
Chost
Dnamed-checkconf
Enamed-checkzone
Question #22Part 1

Performing a DNS lookup with dig results in this answer:

AThere is no . after linuserv.example.net in the PTR record in the forward lookup zone file
BThere is no . after linuserv in the PTR record in the forward lookup zone file
CThere is no . after linuserv.example.net in the PTR record in the reverse lookup zone file
DThe . in the NS definition in the reverse lookup zone has to be removed
Question #23Part 1

What option for BIND is required in the global options to disable recursive queries on the DNS server by default?

Aallow-recursive-query ( none; );
Ballow-recursive-query off;
Crecursion { disabled; };
Drecursion { none; };
Erecursion no;
Question #24Part 1

Which of the following DNS records could be a glue record?

Ans1.lab A 198.51.100.53
Blab NS 198.51.100.53
Cns1.lab NS 198.51.100.53
Dns1. A 198.51.100.53
Ens1.lab GLUE 198.51.100.53
Question #25Part 1

What is DNSSEC used for?

AEncrypted DNS queries between nameservers
BCryptographic authentication of DNS zones
CSecondary DNS queries for local zones
DAuthentication of the user that initiated the DNS query
EEncrypting DNS queries and answers
Question #26Part 1

What word is missing from the following excerpt of a named.conf file?

Anetworks
Bnet
Clist
Dacl
Egroup
Question #27Part 1

In a BIND zone file, what does the @ character indicate?

AIt's the fully qualified host name of the DNS server
BIt's an alias for the e-mail address of the zone master
CIt's the name of the zone as defined in the zone statement in named.conf
DIt's used to create an alias between two CNAME entries
Question #28Part 1

Which BIND option should be used to limit the IP addresses from which slave name servers may connect?

Aallow-zone-transfer
Ballow-transfer
Callow-secondary
Dallow-slaves
Eallow-queries
Question #29Part 1

In order to protect a directory on an Apache HTTPD web server with a password, this configuration was added to an .htaccess file in the respective directory: Furthermore, a file /var/www/dir/ .htpasswd was created with the following content: usera:S3cr3t Given that all these files were correctly processed by the web server processes, which of the following statements is true about requests to the directory?

AThe user usera can access the site using the password s3cr3t
BAccessing the directory as usera raises HTTP error code 442 (User Not Existent)
CRequests are answered with HTTP error code 500 (Internal Server Error)
DThe browser prompts the visitor for a username and password but logins for usera do not
EThe web server delivers the content of the directory without requesting authentication
Question #30Part 1

Which Apache HTTPD directive enables HTTPS protocol support?

AHTTPSEngine on
BSSLEngine on
CSSLEnable on
DHTTPSEnable on
EStartTLS on
Question #31Part 1Select 2

Which statements about the Alias and Redirect directives in Apache HTTPD's configuration file are true? (Choose two.)

AAlias can only reference files under DocumentRoot
BRedirect works with regular expressions
CRedirect is handled on the client side
DAlias is handled on the server side
EAlias is not a valid configuration directive
Question #32Part 1

Which http_access directive for Squid allows users in the ACL named sales_net to only access the Internet at times specified in the time_acl named sales_time?

Ahttp_access deny sales_time sales_net
Bhttp_access allow sales_net sales_time
Chttp_access allow sales_net and sales-time
Dallow http_access sales_net sales_time
Ehttp_access sales_net sales_time
Question #33Part 1

Which global option in squid.conf sets the port number or numbers that Squid will use to listen for client requests?

Aport
Bclient_port
Chttp_port
Dserver_port
Esquid_port
Question #34Part 1Select 3

When using mod_authz_core, which of the following strings can be used as an argument to Require in an Apache HTTPD configuration file to specify the authentication provider? (Choose three.)

Amethod
Ball
Cregex
Dheader
Eexpr
Question #35Part 1Select 3

When using mod_authz_core, which of the following strings can be used as an argument to Require in an Apache HTTPD configuration file to specify the authentication provider? (Choose three.)

Amethod
Ball
Cregex
Dheader
Eexpr
Question #36Part 1

Which tool creates a Certificate Signing Request (CSR) for serving HTTPS with Apache HTTPD?

Aapachect1
Bcertgen
Ccartool
Dhttpsgen
Eopenssl
Question #37Part 1

In response to a certificate signing request, a certification authority sent a web server certificate along with the certificate of an intermediate certification authority that signed the web server certificate. What should be done with the intermediate certificate in order to use the web server certificate with Apache HTTPD?

AThe intermediate certificate should be merged with the web server's certificate into one file
BThe intermediate certificate should be used to verify the certificate before its deployment on
CThe intermediate certificate should be stored in its own file which is referenced in
DThe intermediate certificate should be improved into the certificate store of the web browser
EThe intermediate certificate should be archived and resent to the certification authority in
Question #38Part 1

When trying to reverse proxy a web server through Nginx, what keyword is missing from the following configuration sample?

Aremote_proxy
Breverse_proxy
Cproxy_reverse
Dproxy_pass
Eforward_to
Question #39Part 1

How is the LDAP administrator account configured when the rootdn and rootpw directives are not present in the slapd.conf file?

AThe default account admin with the password admin are used
BThe account is defined by an ACL in slapd.conf
CThe default account admin is used without a password
DThe account is defined in the file /etc/ldap.secret
EThe account is defined in the file /etc/ldap.root.conf
Question #40Part 1

Which of the following PAM modules allows the system administrator to use an arbitrary file containing a list of user and group names with restrictions on the system resources available to them?

Apam_filter
Bpam_limits
Cpam_listfile
Dpam_unix
Question #41Part 1

In a PAM configuration file, which of the following is true about the required control flag?

AIf the module returns success, no more modules of the same type will be invoked
BThe success of the module is needed for the module-type facility to succeed. If it returns a
CThe success of the module is needed for the module-type facility to succeed. However, all
DThe module is not critical and whether it returns success or failure is not important
EIf the module returns failure, no more modules of the same type will be invoked
Question #42Part 1

How are PAM modules organized and stored?

AAs plain text files in /etc/security/
BA statically linked binaries in /etc/pam.d/bin/
CAs Linux kernel modules within the respective sub directory of /lib/modules/
DAs shared object files within the /lib/ directory hierarchy
EAs dynamically linked binaries in /usr/lib/pam/sbin/
Question #43Part 1

Which of the following statements in the ISC DHCPD configuration is used to specify whether or not an address pool can be used by nodes which have a corresponding host section in the configuration?

Aidentified-nodes
Bunconfigured-hosts
Cmissing-peers
Dunmatched-hwaddr
Eunknown-clients
Question #44Part 1

A company is transitioning to a new DNS domain name and wants to accept e-mail for both domains for all of its users on a Postfix server. Which configuration option should be updated to accomplish this?

Amydomain
Bmylocations
Cmydestination
Dmyhosts
Emydomains
Question #45Part 1

When are Sieve filters usually applied to an email?

AWhen the email is delivered to a mailbox
BWhen the email is relayed by an SMTP server
CWhen the email is received by an SMTP smarthost
DWhen the email is sent to the first server by an MUA
EWhen the email is retrieved by an MUA
Question #46Part 1Select 2

It has been discovered that the company mail server is configured as an open relay. Which of the following actions would help prevent the mail server from being used as an open relay while maintaining the possibility to receive company mails? (Choose two.)

ARestrict Postfix to only accept e-mail for domains hosted on this server
BConfigure Dovecot to support IMAP connectivity
CConfigure netfilter to not permit port 25 traffic on the public network
DRestrict Postfix to only relay outbound SMTP from the internal network
EUpgrade the mailbox format from mbox to maildir
Question #47Part 1

After the installation of Dovecot, it is observed that the dovecot processes are shown in ps ax like this: In order to associate the processes with users and peers, the username, IP address of the peer and the connection status, which of the following options must be set?

A--with-linux-extprocnames for ./configure when building Dovecot
Bsys.ps.allow_descriptions = 1 in sysct1.conf or /proc
Cproc.all.show_status = 1 in sysctl.conf or /proc
Dverbose_proctitle = yes in the Dovecot configuration
Eprocess_format = "%u %I %s" in the Dovecot configuration
Question #48Part 1

Which Postfix command can be used to rebuild all of the alias database files with a single invocation and without the need for any command line arguments?

Amakealiases
Bnewaliases
Cpostalias
Dpostmapbuild
Question #49Part 1Select 3

Which of the following authentication mechanisms are supported by Dovecot? (Choose three.)

Aldap
Bdigest-md5
Ccram-md5
Dplain
Ekrb5
Question #50Part 1

Which of the following services belongs to NFSv4 and does not exist in NFSv3?

Arpc.idmapd
Brpc.statd
Cnfsd
Drpc.mountd
Question #51Part 1

Which of the following actions synchronizes UNIX passwords with the Samba passwords when the encrypted Samba password is changed using smbpasswd?

AThere are no actions to accomplish this since is not possible.
BRun netvamp regularly, to convert the passwords.
CRun winbind ""sync, to synchronize the passwords.
DAdd unix password sync = yes to smb.conf
EAdd smb unix password = sync to smb.conf
Question #52Part 1

In order to join a file server to the Active Directory domain intra.example.com, the following smb.conf has been created: The command net ads join raises an error and the server is not joined to the domain. What should be done to successfully join the domain?

AChange server role to ad member server to join an Active Directory domain instead of an
BAdd realm = intra.example.com to the smb.conf and change workgroup to the domain's
CManually create a machine account in the Active Directory domain and specify the machine
DRemove the winbind enum users and winbind enum groups since winbind is incompatible
ERemove all idmap configuration stanzas since the id mapping is defined globally in an Active
Question #53Part 1

What does the samba-tool testparm command confirm regarding the Samba configuration?

AThe configuration loads successfully.
BThe service operates as expected.
CThe Samba services are started automatically when the system boots.
DThe netfilter configuration on the Samba server does not block any access to the services
EAll running Samba processes use the most recent configuration version.
Question #54Part 1

Select the Samba option below that should be used if the main intention is to setup a guest printer service?

Asecurity = cups
Bsecurity = ldap
Csecurity = pam
Dsecurity = share
Esecurity = printing
Question #55Part 1

The Samba configuration file contains the following lines: A workstation is on the wired network with an IP address of 192.168.1.177 but is unable to access the Samba server. A wireless laptop with an IP address 192.168.2.93 can access the Samba server. Additional trouble shooting shows that almost every machine on the wired network is unable to access the Samba server. Which alternate host allow declaration will permit wired workstations to connect to the Samba server without denying access to anyone else?

Ahost allow = 192.168.1.1-255
Bhost allow = 192.168.1.100 192.168.2.200 localhost
Chost deny = 192.168.1.100/255.255.255.0 192.168.2.31 localhost
Dhost deny = 192.168.2.200/255.255.255.0 192.168.2.31 localhost
Ehost allow = 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0 localhost
Question #56Part 1

Which keyword is used in the Squid configuration to define networks and times used to limit access to the service?

Aacl
Ballow
Chttp_allow
Dpermit
Question #57Part 1

The following Apache HTTPD configuration has been set up to create a virtual host available at www.example.com and www2.example.com: Even though Apache HTTPD correctly processed the configuration file, requests to both names are not handled correctly. What should be changed in order to ensure correct operations?

AThe configuration must be split into two VirtualHost sections since each virtual host may only
BThe port mentioned in opening VirtualHost tag has to be appended to the ServerName
CBoth virtual host names have to be placed as comma separated values in one ServerName
DBoth virtual host names have to be mentioned in the opening VirtualHost tag.
EOnly one Server name declaration may exist, but additional names can be declared in
Question #58Part 1Select 2

Given the following Squid configuration excerpt: cache_dir ufs /var/spool/squid3/ 1024 16 256 Which of the following directories will exist directly within the directory: /var/spool/squid3/? (Choose two.)

A0F
BA0
C0b
DFF
E00
Question #59Part 1Select 2

Which of the following statements are true regarding Server Name Indication (SNI)? (Choose two.)

AIt supports transparent failover of TLS sessions from one web server to another.
BIt allows multiple SSL/TLS secured virtual HTTP hosts to coexist on the same IP address.
CIt enables HTTP servers to update the DNS of their virtual hosts' names using the X 509
DIt provides a list of available virtual hosts to the client during the TLS handshake.
EIt submits the host name of the requested URL during the TLS handshake.
Question #60Part 1

Which Apache HTTPD configuration directive specifies the RSA private key that was used in the generation of the SSL certificate for the server?

ASSLCertificateKeyFile
BSSLKeyFile
CSSLPrivateKeyFile
DSSLRSAKeyFile
Question #61Part 2

There is a restricted area in a site hosted by Apache HTTPD, which requires users to authenticate against the file /srv/www/security/sitepasswd. Which command is used to CHANGE the password of existing users, without losing data, when Basic authentication is being used?

Ahtpasswd ""c /srv/www/security/sitepasswd user
Bhtpasswd /srv/www/security/sitepasswd user
Chtpasswd ""n /srv/www/security/sitepasswd user
Dhtpasswd ""D /srv/www/security/sitepasswd user

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!