
更新された2024年12月12日 102-500試験問題集でPDF問題とテストエンジン
最新(2024)Lpi 102-500試験問題集
質問 # 116
Which of the following lines would you find in the file /etc/nsswitch.conf?
- A. smtp 25/tcp
- B. domain mycompany.com
- C. hosts: files dns
- D. 192.168.168.4 dns-server
正解:C
質問 # 117
Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?
正解:
解説:
files
Explanation:
The keyword files must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file. The files service specifies that the local files, such as /etc/hosts, should be used as a source of information. The order of the services on the line determines the order in which those services will be queried, in turn, until a result is found. For example, if the hosts option is set to:
hosts: files dns
then the /etc/hosts file will be searched first, and if no match is found, the DNS server will be queried next. If the hosts option is set to:
hosts: dns files
then the DNS server will be queried first, and if no match is found, the /etc/hosts file will be searched next. References:
* LPI 102-500 Exam Objectives, Topic 110: Network Fundamentals, Weight: 4, 110.3 Basic network troubleshooting
* LPI 102-500 Study Guide, Chapter 10: Network Fundamentals, Section 10.3: Basic Network Troubleshooting, Page 125-126
* nsswitch.conf: Name Service Switch configuration file
質問 # 118
Which file inside the CUPS configuration directory contains the settings of the printers?
- A. cupsd.conf
- B. snmp.conf
- C. printcap.conf
- D. cups-devices.conf
- E. printers.conf
正解:E
質問 # 119
Which command included in systemd supports selecting messages from the systemd journal by criteria such as time or unit name? (Specify only the command without any path or parameters.)
正解:
解説:
journalctl
Explanation:
The command journalctl is included in systemd and supports selecting messages from the systemd journal by criteria such as time or unit name. The systemd journal is a binary log file that stores system and service messages. The journalctl command can be used to view, filter, export, and manipulate the journal entries. For example, to show all messages from a specific unit, such as sshd.service, the command would be:
journalctl -u sshd.service
To show all messages from a specific time range, such as yesterday, the command would be:
journalctl --since=yesterday
The journalctl command has many options and arguments that can be used to customize the output and perform various operations on the journal. For more information, see the man page of journalctl or the official documentation1. References: [LPI 102-500 Exam Objectives], Topic 106.2: System logging, Weight: 3.
[systemd-journald.service(8) - systemd - Debian unstable - Debian Manpages], Section NAME.
質問 # 120
What is the purpose of TCP wrapper?
- A. Add SSL support to plain text TCP services.
- B. Encapsulate TCP messages in IP packets.
- C. Limit access to a network service.
- D. Bind a network service to a TCP port.
- E. Manage and adjust bandwidth used by TCP services.
正解:C
質問 # 121
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?
正解:
解説:
bind
質問 # 122
What is the purpose of the file /etc/profile?
- A. It contains environment variables that are set when a user logs in.
- B. It contains security profiles defining which users are allowed to log in.
- C. It contains the welcome message that is displayed after login.
- D. It contains default application profiles for users that run an application for the first time.
正解:A
質問 # 123
Which file contains the date of the last change of a user's password?
- A. /etc/shadow
- B. /var/log/shadow
- C. /etc/pwdlog
- D. /etc/gshadow
- E. /etc/passwd
正解:A
質問 # 124
What is true regarding the file ~/.forward?
- A. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.
- B. By default, only ~/.forward files of users in the group mailq are processed while all other user's ~/
.forward files are ignored. - C. As ~/.forward is owned by the MTA and not writable by the user, it must be edited using the editaliases command.
- D. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.
- E. When configured correctly ~/.forward can be used to forward each incoming mail to one or more other recipients.
正解:E
質問 # 125
Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)
- A. route -v via eth0
- B. ip stats show dev eth0
- C. ip -s link show eth0
- D. netstat -s -i eth0
- E. ifconfig eth0
正解:D、E
質問 # 126
FILL BLANK
What command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the command name only without any path.)
正解:
解説:
ssh-add
質問 # 127
On a Linux workstation, the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
- A. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout.
- B. The local routing information may be corrupted and must be re-validated using a routing protocol.
- C. The Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init script or systemd unit.
- D. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default.
- E. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
正解:E
質問 # 128
You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message, "hello". Which command will do this?
- A. cupsreject -p -m hello HPLaserjet4
- B. cupsdisable -p -m hello HPLaserjet4
- C. cupsreject -c -r hello HPLaserjet4
- D. cupsdisable -c -r hello HPLaserjet4
正解:D
質問 # 129
Which of the following files assigns a user to its primary group?
- A. /etc/group
- B. /etc/shadow
- C. /etc/pgroup
- D. /etc/gshadow
- E. /etc/passwd
正解:E
解説:
The /etc/passwd file assigns a user to its primary group by specifying the group ID (GID) of the primary group in the fourth field of each line. The /etc/passwd file contains the basic information for each user account on a Linux system, such as the user name, user ID (UID), group ID (GID), home directory, login shell, etc.
The format of each line is:
username:password:UID:GID:comment:home:shell
For example, the following line assigns the user bob to the primary group bob, which has the GID of 1001:
bob:x:1001:1001::/home/bob:/bin/sh
The /etc/passwd file can be viewed and modified by the root user or by using the useradd, usermod, or userdel commands123. The other files listed in the options do not assign a user to its primary group. The /etc/pgroup file does not exist by default on most Linux systems, and it is not related to the primary group. The
/etc/shadow file contains the encrypted passwords and otherinformation for each user account, but not the primary group4. The /etc/group file contains the information for each group on the system, such as the group name, group password, group ID, and group members, but not the primary group of each user5. The
/etc/gshadow file contains the encrypted passwords for group accounts. References: 12345
質問 # 130
You found these lines in the modules.dep file:
/lib/modules/2.2.5-15smp/fs/msdos.o:
/lib/modules/2.2.5-15smp/fs/fat.o
Which of the following is true?
- A. The fat and msdos modules are automatically loaded at startup.
- B. The fat and msdos modules cannot be loaded manually.
- C. The msdos module is dependent upon fat.
- D. The fat module is a submodule to the msdos module.
正解:C
質問 # 131
Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)
- A. Set the hardware clock.
- B. Output date and time in different formats.
- C. Update the time via NTP.
- D. Set the system clock.
- E. Synchronize the hardware and system clocks.
正解:B
解説:
The date command is used to display and set the system date and time. It can also be used to print the time in different formats and calculate future and past dates. The date command has the following syntax:
date [option]... [+format]
The format controls begin with the % symbol and are substituted by their current values. For example, to display the current year, month, and day, we can use the following command:
date +"Year: %Y, Month: %m, Day: %d"
To set the system clock manually, we can use the --set or -s option followed by the date and time string. For example, to set the date and time to 5:30 PM, May 13, 2010, we can use the following command:
date --set="20100513 05:30"
The other tasks are not possible with the date command because:
* Synchronize the hardware and system clocks: The date command cannot synchronize the hardware and system clocks. To do this, we need to use the hwclock command, which can read or set the hardware clock, and also synchronize it with the system clock.
* Set the hardware clock: The date command cannot set the hardware clock. To do this, we need to use the hwclock command with the --systohc or -w option, which will copy the system time to the hardware clock.
* Update the time via NTP: The date command cannot update the time via NTP (Network Time Protocol).
To do this, we need to use the ntpdate command, which will query an NTP server and set the system clock accordingly.
References:
* Date Command in Linux: How to Set, Change, Format and Display Date
* date command in Linux with examples - GeeksforGeeks
* Date Command in Linux | Linuxize
質問 # 132
Which of the following commands will help identify a broken router between the local and the remote machine?
- A. traceroute
- B. ps
- C. ifconfig
- D. netstat
- E. nslookup
正解:A
解説:
The traceroute command will help identify a broken router between the local and the remote machine. The traceroute command sends a series of packets with increasing time-to-live (TTL) values to a destination and displays the routers that the packets pass through along the way. If a router is broken or unreachable, the traceroute command will show a * symbol or a timeout message. The traceroute command is part of the topic
109.1: Fundamentals of internet protocols, which is one of the objectives of the LPI Linux Administrator - 102 exam12. References: 1: https://learning.lpi.org/en/learning-materials/102-500/ 2:
https://www.lpi.org/our-certifications/exam-102-objectives/
質問 # 133
You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message,
"hello". Which command will do this?
- A. cupsreject -p -m hello HPLaserjet4
- B. cupsdisable -p -m hello HPLaserjet4
- C. cupsreject -c -r hello HPLaserjet4
- D. cupsdisable -c -r hello HPLaserjet4
正解:D
質問 # 134
......
Lpi 102-500 認定試験は、Linuxシステムに携わるプロフェッショナルにとって貴重な資格です。この認定資格は、グローバルに認められ、Linux管理における専門知識を証明する優れた方法です。また、この認定資格は、キャリアアップや高い給与を得る機会を提供します。試験に合格するためには、Linux管理に関する徹底的な理解が必要であり、候補者は十分な準備と学習を行う必要があります。試験は難しいですが、適切な準備を行えば、候補者は認定資格を取得することができます。
更新された検証済みの合格させる102-500試験にはリアル問題と解答:https://jp.fast2test.com/102-500-premium-file.html
最適な練習法にはLpi 102-500試験の素晴らしい102-500試験問題PDF:https://drive.google.com/open?id=1ObzxnToqDF0vmOOokanNpOQIcu-euU0-