CompTIA XK0-005練習テストPDF試験材料 [Q42-Q66]

Share

CompTIA XK0-005練習テストPDF試験材料

XK0-005解答XK0-005無料サンプルには全てリアル試験合格させます

質問 # 42
A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/usb?

  • A. mount /dev/sdb /media/usb
  • B. mount -t usb /dev/sdb1 /media/usb
  • C. mount /dev/sdb0 /media/usb
  • D. mount /dev/sdb1 /media/usb

正解:D


質問 # 43
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

  • A. echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
  • B. mkfs.ext4 /dev/sdc1
  • C. df -h /data
  • D. fsck /dev/sdc1
  • E. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
  • F. fdisk -l /dev/sdc1

正解:B、E


質問 # 44
Which of the following technologies provides load balancing, encryption, and observability in containerized environments?

  • A. Virtual private network
  • B. Overlay network
  • C. Sidecar pod
  • D. Service mesh

正解:D

解説:
"A service mesh controls the delivery of service requests in an application. Common features provided by a service mesh include service discovery, load balancing, encryption and failure recovery."
https://www.techtarget.com/searchitoperations/definition/service-mesh


質問 # 45
A Linux systems administrator needs to copy files and directories from Server A to Server B. Which of the following commands can be used for this purpose? (Select TWO)

  • A. reposync
  • B. ssh
  • C. scp
  • D. cp
  • E. rsyslog
  • F. rsync

正解:C、F


質問 # 46
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?

  • A. podman run -d app /bin/bash
  • B. docker run -ti app /bin/sh
  • C. docker exec -d app /bin/bash
  • D. podman exec -ti app /bin/sh

正解:D


質問 # 47
A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:

The local machine DNS settings are:

Which of the following commands could the engineer use to query the DNS server to get mail server information?

  • A. dig @example.com 10.10.10.20 a
  • B. dig @10.10.10.20 example.com mx
  • C. dig @10.10.10.20 example.com ns
  • D. dig @example.com 10.10.10.20 ptr

正解:B


質問 # 48
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. Updating the Environment File line in the [Service] section to/home/webservice/config
  • B. Changing the:nulti-user.target in the [Install] section to basic.target
  • C. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
  • D. Adding the User-webservice to the [Service] section of the service file

正解:C


質問 # 49
An administrator installed an application from source into /opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?

  • A. echo 'export PATH=/opt/operations1/bin' >> /etc/profile
  • B. echo 'export PATH=$PATH:/opt/operations1/bin' >> /etc/profile
  • C. echo 'export PATH=$PATH/opt/operations1/bin' >> /etc/profile
  • D. echo 'export $PATH:/opt/operations1/bin' >> /etc/profile

正解:B

解説:
It would be better to put the directory before $PATH, so that way the directory is searched before the rest of the pathing options in $PATH.


質問 # 50
Using AD Query, the security gateway connections to the Active Directory Domain Controllers using what protocol?

  • A. Lightweight Directory Access Protocol (LDAP)
  • B. Hypertext Transfer Protocol Secure (HTTPS)
  • C. Remote Desktop Protocol (RDP)
  • D. Windows Management Instrumentation (WMI)

正解:D


質問 # 51
A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

  • A. iptables -i INPUT --ipv4 192.168.10.50 -z DROP
  • B. iptables -j INPUT 192.168.10.50 -p DROP
  • C. iptables -A INPUT -s 192.168.10.30 -j DROP
  • D. iptables -F INPUT -j 192.168.10.50 -m DROP

正解:C


質問 # 52
A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?

  • A. xargs -f cat toDelete.txt -rm
  • B. rm -d -r -f toDelete.txt
  • C. cat toDelete.txt | xargs rm -rf
  • D. cat toDelete.txt | rm -frd

正解:B


質問 # 53
After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

  • A. rpm -i packagename
  • B. dnf remove packagename
  • C. apt remove packagename
  • D. apt-get remove packagename

正解:B


質問 # 54
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.
Given the following output:

Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

  • A. systemctl restart sshd.service
  • B. restorecon -rv .ssh/authorized_key
  • C. mv .ssh/authorized_key .ssh/authorized_keys
  • D. chmod 600 mv .ssh/authorized_key

正解:A


質問 # 55
A systems administrator is investigating why one of the servers has stopped connecting to the internet.

Which of the following is causing the issue?

  • A. The search entry in the /etc/resolv.conf file is incorrect.
  • B. Wired connection 1 is offline.
  • C. No default route is defined.
  • D. The DNS address has been commented out in the configuration file.

正解:D


質問 # 56
Which of the following directories is the mount point in a UEFI system?

  • A. /sys/efi
  • B. /etc/efi
  • C. /efi
  • D. /boot/efi

正解:D


質問 # 57
Which of the following files holds the system configuration for journal when running systemd?

  • A. /etc/systemd/systemd-journald.conf
  • B. /etc/systemd/systemd-journalctl.conf
  • C. /etc/systemd/journald.conf
  • D. /usr/lib/systemd/journalctl.conf

正解:C


質問 # 58
A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

  • A. systemctl mask systemd-resolved.service
  • B. systemctl status systemd-resolved.service
  • C. systemctl enable systemd-resolved.service
  • D. systemctl show systemd-resolved.service

正解:B


質問 # 59
An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

  • A. yum -y update; shutdown -r now
  • B. telinit 1; restorecon -Rv /boot
  • C. cat /etc/centos-release; rpm -Uvh --nodeps
  • D. rpm -qa | grep kernel; uname -a

正解:D


質問 # 60
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. TRIGGERS=mariadb.service
  • C. ONFAILURE=mariadb.service
  • D. WANTEDBY=mariadb.service

正解:A


質問 # 61
In which of the following filesystems are system logs commonly stored?

  • A. /var
  • B. /etc
  • C. /opt
  • D. /tmp

正解:A


質問 # 62
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

  • A. journalctl --list-boots && systemctl restart systemd-journald.service
  • B. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
  • C. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
  • D. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/#//q' /etc/systemd/journald.conf

正解:B


質問 # 63
An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct

  • A. yum -y update; shutdown -r now
  • B. telinit 1; restorecon -Rv /boot
  • C. cat /etc/centos-release; rpm -Uvh --nodeps
  • D. rpm -qa | grep kernel; uname -a

正解:D


質問 # 64
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?

  • A. nslookup
  • B. rsync
  • C. host
  • D. netstat

正解:A


質問 # 65
A Linux engineer receives reports that files created within a certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?

  • A. chactr -Rv
  • B. chown -cf
  • C. umask 002
  • D. chmod 775

正解:D


質問 # 66
......


CompTIAのXK0-005(CompTIA Linux + 認定)認定試験は、Linuxシステム管理に必要なスキルと知識を検証する、世界的に認められた認定試験です。この認定試験は、候補者がLinuxシステムを設定、管理、トラブルシューティングする能力を試験するよう設計されています。この試験に合格した個人は、インストール、ユーザーアカウントの管理、ネットワーク、セキュリティなど、Linuxシステムと自信を持って作業できる能力を証明します。

 

XK0-005[2023年06月] 最新リリース] 試験問題あなたを必ず合格させます:https://www.goshiken.com/CompTIA/XK0-005-mondaishu.html

CompTIA XK0-005試験の基礎問題と解答:https://drive.google.com/open?id=1BBBfKH6bcy66hC6OIfAxCfCY_7Vsj3rZ