A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server.
The administrator reviews the following output:
[ root@server ] # id user1
UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)
[ root@server ] # cat /etc/sudoers.d/custom.conf
user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart
#%wheel ALL=(ALL) NOPASSWD: ALL
Which of the following would most likely resolve the issue while maintaining a least privilege security model?
A. Webadmin should be listed as a group in the custom. conf file.
B. User1 should be added to the wheel group to manage the service.
C. The wheel line in the custom. conf file should be uncommented.
D. User1 should have "NOPASSWD:" after the "ALL=" in the custom. conf.
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
An administrator is trying to diagnose a performance issue and is reviewing the following output:

System Properties:
CPU: 4 vCPU
Memory: 40GB
Disk maximum IOPS: 690
Disk maximum throughput: 44Mbps | 44000Kbps
Based on the above output, which of the following BEST describes the root cause?
A. The system has reached its maximum IOPS, causing the system to be slow.
B. The system has a partitioned disk, which causes the IOPS to be doubled.
C. The system is mostly idle, therefore the iowait is high.
D. The system has reached its maximum permitted throughput, therefore iowait is increasing.
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:

The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?
A. REQUIRES=mariadb.service
B. ONFAILURE=mariadb.service
C. WANTEDBY=mariadb.service
D. TRIGGERS=mariadb.service
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?
A. sudo useradd -c 2021-09-30 Project_user
B. sudo useradd -m -d 2021-09-30 Project_user
C. sudo useradd -e 2021-09-30 Project_user
D. sudo modinfo -F 2021-09-30 Project_uses
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
An administrator accidentally installed the httpd RPM package along with several dependencies. Which of the following options is the best way for the administrator to revert the package installation?
A. yum history undo last
B. dnf clean all
C. rpm -e httpd
D. apt-get clean
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
A systems administrator is receiving complaints about slow performance and system crashes. The administrator suspects memory and CPU issues. Which of the following is the first action the administrator should take to troubleshoot and resolve these issues?
A. Look through the system logs and error messages to find any faults involving the CPU and memory.
B. Remove and replace the CPU and memory components to address hardware issues.
C. Run resource monitoring tools like top or htop to view the current CPU and memory use.
D. Reboot the server to clear any CPU and memory congestion.
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
A Linux administrator needs to check extended permissions applied to the directory test. Which of the following commands should the administrator use to help with this task?
A. getfacl test/
B. getenforce test/
C. getsebool test/
D. ls -al test/
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
A Linux administrator is implementing a CI/CD process for the company's internal accounting web application. Which of the following best defines the purpose of this process?
A. To leverage code to document the infrastructure, configurations, and dependencies
B. To formalize the approval process of application releases and configuration changes
C. To automate the process of building, testing, and deploying application components
D. To perform security penetration tests on deployed applications to identify vulnerabilities
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 9:
A systems administrator wants to check for running containers. Which of the following commands can be used to show this information?
A. docker list
B. docker ps
C. docker pull
D. docker stats
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
Katagiri -
擬試験の機能にとても気に入って、模擬試験を繰り返し行うことで、試験形式に慣れることができる。冷静に落ち着いて試験に臨むことができました。XK0-005合格だ!