LPIC-1 Exam 102 v5.0 Free Sample Questions

20 free sample questions300 in the full practice test Other version: 102-400(84)

Try simulator

102-500 Sample Questions

  1. Question 1

    Which standardized TCP port is used by HTTPS services?

    Answer and explanation

    Correct answer: D

    Port 443 is the standardized TCP port for HTTPS (HTTP Secure) services, which provides encrypted HTTP communication using SSL/TLS. Port 25 is used for SMTP email, port 80 is for unencrypted HTTP, port 8080 is an alternative HTTP port often used for web proxies, and port 636 is for LDAPS (LDAP over SSL). Only port 443 is specifically designated for secure web traffic.

  2. Question 2

    Multiple answers

    Which of the following options in the chrony configuration file define remote time sources? (Choose two.)

    Answer and explanation

    Correct answers: D, E

    In chrony configuration, "pool" defines a pool of NTP servers from which chrony can select the best servers for time synchronization. This provides redundancy and automatic server selection from a group of time sources. The "source", "clock", and "remote" directives are not valid chrony configuration options for defining time sources.

    In chrony configuration, "server" defines individual NTP servers for time synchronization, specifying exact server addresses to connect to. This works alongside "pool" to provide multiple time source options. The "source", "clock", and "remote" directives are not standard chrony configuration options for time sources.

  3. Question 3

    What command, depending on its options, can display the open TCP connections, the routing tables, as well as network interface statistics? (Specify only the command without any path or paremeters.)

    Answer and explanation

    Correct answer: A

    The netstat command displays network connections, routing tables, and network interface statistics depending on the options used. With -t it shows TCP connections, with -r it displays routing tables, and with -i it shows interface statistics. Commands like ss, ip, and ifconfig provide some similar functionality but netstat is the classic tool that combines all these network diagnostic capabilities in one command.

  4. Question 4

    Which of the following protocols is related to the term open relay?

    Answer and explanation

    Correct answer: A

    SMTP (Simple Mail Transfer Protocol) is directly related to open relay, which is a mail server configuration that allows anyone to send email through it without authentication. Open relays are security vulnerabilities that spammers exploit to send bulk email. POP3 and IMAP are mail retrieval protocols, NTP is for time synchronization, and LDAP is for directory services - none of these protocols involve mail relay functionality.

  5. Question 5

    How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?

    Answer and explanation

    Correct answer: D

    A /26 subnet provides 64 total IP addresses (2^6 = 64), but network and broadcast addresses cannot be assigned to hosts. The network address is 192.168.2.128 and broadcast is 192.168.2.191, leaving 62 usable host addresses (64 - 2 = 62). The other options (6, 12, 30, 126) represent different subnet sizes: /29 gives 6 hosts, /28 gives 14 hosts, /27 gives 30 hosts, and /25 gives 126 hosts.

  6. Question 6

    Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?

    Answer and explanation

    Correct answer: D

    The correct syslog.conf syntax uses "mail.*" to capture all mail facility messages at any priority level, "/var/log/maillog" as the file destination, and "[email protected]" to send critical mail events to a remote syslog server. The @ symbol designates remote logging, and the asterisk wildcard captures all priority levels. Other options have syntax errors like missing dots, incorrect wildcards, or malformed remote server specifications.

  7. Question 7

    Which of the following commands is used to rotate, compress, and mail system logs?

    Answer and explanation

    Correct answer: A

    The logrotate command is used to rotate, compress, and optionally mail system logs to prevent log files from growing too large. It reads configuration from /etc/logrotate.conf and /etc/logrotate.d/ directory to manage log file rotation schedules, compression settings, and cleanup policies. Other tools like rsyslog handle log collection, but logrotate specifically manages log file maintenance and archival.

  8. Question 8

    What is the purpose of the iconv command?

    Answer and explanation

    Correct answer: C

    The iconv command converts text files from one character encoding to another, such as converting from ISO-8859-1 to UTF-8 or between different national character sets. This is essential for handling international text data and ensuring proper display of non-ASCII characters. It does not compress files, change file permissions, or perform other file operations - only character set conversion.

  9. Question 9

    If neither cron.allow nor cron.deny exist in /etc/, which of the following is true?

    Answer and explanation

    Correct answer: E

    When neither /etc/cron.allow nor /etc/cron.deny exist, the default behavior varies by system but typically only root can use cron services for security reasons. Most Linux distributions follow the principle of deny-by-default when access control files are missing. The /etc/crond.conf file does not control user access to cron - that is managed specifically by the allow/deny files or system defaults when they are absent.

  10. Question 10

    What is true about the file .profile in a user’s home directory?

    Answer and explanation

    Correct answer: E

    The .profile file in a user home directory must be readable by its owner to be executed by the shell during login. While it should not be writable by others for security reasons, it does not need to be readable only by the owner - it can be readable by the group and others without compromising security. The key requirement is that the user can read it and others cannot modify it. Executable permission is not required for shell profile files.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 384 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon