An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
A. git clone https://github.com/comptia/linux+-.git
git status
B. git clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch>
C. git clone https://github.com/comptia/linux+-.git
git push origin
D. git clone https://qithub.com/comptia/linux+-.git
git fetch New-Branch
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
A senior Linux administrator has created several scripts that will be used to install common system applications. These scripts are published to a reposito-ry to share with the systems team. A junior Linux administrator needs to re-trieve the scripts and make them available on a local workstation. Which of the following Git commands should the junior Linux administrator use to accom-plish this task?
A. branch
B. fetch
C. clone
D. checkout
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
A user is unable to log on to a Linux workstation. The systems administrator executes the following command:
cat /etc/shadow | grep user1
The command results in the following output:
user1 :! $6$QERgAsdvojadv4asdvaarC/9dj34GdafGVaregmkdsfa:18875:0:99999:7 :::
Which of the following should the systems administrator execute to fix the issue?
A. sed -i '/ ::: / :: /g' /etc/shadow
B. chgrp user1:user1 /home/user1
C. passwd -u user1
D. chown -R userl:user1 /home/user1
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?
A. ip link show eth1
B. netstat -r eth1
C. ss -ti eth1
D. ifconfig hw eth1
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:
Given there is a single CPU in the sever, which of the following is causing the slowness?
A. The system is running out of swap space.
B. The CPU is overloaded.
C. The memory is exhausted.
D. The processes are paging.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:
Which of the following remediation steps will prevent the web service from running as a privileged user?
A. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
B. Changing the:nulti-user.target in the [Install] section to basic.target
C. Updating the Environment File line in the [Service] section to/home/webservice/config
D. Adding the User-webservice to the [Service] section of the service file
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
Which of the following commands will display the operating system?
A. uname -m
B. uname -o
C. uname -s
D. uname -n
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 8:
A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?
A. tag
B. rebase
C. push
D. commit
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 9:
A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following outputs:
Based on the above outputs, which of the following is the MOST likely action the administrator should take to resolve this issue?
A. Update the OnCalendar configuration to schedule the start of the logsearch.service.
B. Increase the TimeoutStartUSec configuration for the logsearch.sevice.
C. Update the KillSignal configuration for the logsearch.service to use TERM.
D. Enable the logsearch.service and restart the service.
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
Kozuka -
出題確率の高い項目を重点的に解説した合格のためのXK0-005攻略本です。合格しましたからお礼を言いに