[2022年03月05日] 合格させるCompTIA XK0-004試験情報と無料練習テスト [Q11-Q33]

Share

[2022年03月05日] 合格させるCompTIA XK0-004試験情報と無料練習テスト

XK0-004試験問題集PDF更新された問題集にはFast2test試験合格保証付き

質問 11
An administrator receives a warning about a file system filling up, and then identifies a large file located at
/tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?

  • A. lsof | grep largelogfile
  • B. pgrep largelogfile
  • C. pkill /tmp/largelogfile
  • D. ps -ef | grep largelogfile

正解: A

 

質問 12
A Linux user wants to give read-only permissions to a directory and its contents. Which of the following commands will allow the user to accomplish this task?

  • A. chmod 400 /new_directory/
  • B. chmod -R 400 /new_directory/
  • C. chmod -R 600 /new_directory/
  • D. chmod 600 /new_directory/

正解: D

 

質問 13
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain.
Which of the following should the administrator run to have the command prompt consistently labeled as Server1 rather than localhost.localdomain?

  • A. host Server1
  • B. hostnamectl set-hostname Server1 --transient
  • C. hostnamectl set-hostname Server1.localdomain --static
  • D. hostnamectl set-hostname "Server1" --pretty
  • E. echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts

正解: D

解説:
Reference:
https://www.tutorialspoint.com/how-to-setup-hostname-in-centos-7-x-or-rhel-7-x-linux-versions

 

質問 14
An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?

  • A. fsck /
  • B. fdisk -l
  • C. df -h
  • D. du -scg /

正解: C

 

質問 15
A Linux administrator has installed a web application firewall in front of a web server running on HTTP port
8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:
Output of sysctl -acommand:

Output of iptables -Lcommand:

Output of netstat -nltop | grep "8080":

Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?

  • A. Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 -j ACCEPTthen restart httpddaemon
  • B. sysctl -w net.ipv4.ip_forward=1then run sysctl -w /etc/sysctl.confto enable the change
  • C. Edit /etc/sysctl.conffile and add net.ipv4.ip_forward = 1then run sysctl -p /etc/ sysctl.confto enable the change
  • D. Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -jthen restart httpddaemon

正解: A

 

質問 16
Given the output below:

Which of the following commands can be used to remove MyPhoto.jpg from the current directory?

  • A. ln -rm ./Pictures/photo.jpg
  • B. del Pictures/photo.jpg
  • C. unlink ./MyPhoto.jpg
  • D. rm -rf ./Pictures
  • E. rm -f MyPhoto.jpg

正解: A

 

質問 17
Which of the following configuration management tools is considered agentless?

  • A. Ansible
  • B. Puppet
  • C. Salt
  • D. Chef

正解: A

解説:
Explanation/Reference: https://www.intigua.com/blog/puppet-vs.-chef-vs.-ansible-vs.-saltstack

 

質問 18
A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?

  • A. /etc/motd
  • B. /etc/hosts
  • C. /etc/services
  • D. /etc/issue

正解: A

 

質問 19
When requesting SSH access to a remote system, a user accidentally emailed the id_rsa key to the administrator. Which of the following should the user do NEXT?

  • A. Run the ssh-add command to add the remote system to known_hosts.
  • B. Stop using that key and run ssh-keygen to generate a new key pair.
  • C. Delete id_rsa key file and send the id_rsa.pub key file instead.
  • D. Ask the administrator to run chmod 600 id_rsa on the remote system.

正解: B

 

質問 20
An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?

  • A. tail -f /var/log/secure
  • B. journalctl -u application
  • C. watch /var/lib/application/
  • D. systemctl application.service

正解: D

 

質問 21
A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23.
The administrator wishes to monitor the connection at five-minute intervals for one hour. Which of the following commands will accomplish this task?

  • A. ping -c 12 192.168.1.23
  • B. ping -c 12 -i 300 192.168.1.23
  • C. ping -c 60 -i 100 192.168.1.23
  • D. ping -i 5 192.168.1.23

正解: A

 

質問 22
An administrator notices the HISTSIZE variable is 50, using the commands below:
HISTSIZE=50
export HISTSIZE
The administrator rechecks the HISTSIZE value using echo HISTSIZE but gets no value. Which of the following commands should the administrator use to retrieve its value?

  • A. printf HISTSIZE
  • B. printenv | grep $HISTSIZE
  • C. grep $HISTSIZE
  • D. echo HISTSIZE

正解: D

 

質問 23
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hostsand receives the following output:
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?

  • A. Modify the /etc/hostsfile, and add the ::1 localhostentry to the file.
  • B. Modify the /etc/hostsfile, and add the ipv6 localhostentry to the file.
  • C. Modify the /etc/hostsfile, and add the ipv4 localhostentry to the file.
  • D. Modify the /etc/hostsfile, and add the 0.0.0.0 localhostentry to the file.

正解: D

解説:
Explanation

 

質問 24
A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing "help" in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt

正解:

解説:
Solution below.

 

質問 25
A systems administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.
Which of the following could be used to install more Linux servers with the same characteristics?

  • A. /etc/sysconfig/anaconda.cfg
  • B. /etc/sysconfig/installation.cfg
  • C. /root/anaconda-ks.cfg
  • D. /root/anaconda.auto

正解: C

解説:
Explanation/Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ sn-automating-installation

 

質問 26
You have been asked to parse a log file of logins to determine various information about who is logging in and when.
INSTRUCTIONS
Open and inspect the Login log file.
Drag and drop the correct commands onto the output that was generated from that command.
Tokens can be used only once and not all will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

正解:

解説:


 

質問 27
A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?

  • A. find . -name /home/User3 -print
  • B. df -k /home/User/files.txt
  • C. du -sh /home/User/
  • D. du -a /home/User3/*

正解: C

 

質問 28
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:

Upon checking the logical volume status, the administrator receives this information:

Which of the following can be said about the data logical volume, and how can this problem be resolved?

  • A. The logical volume is OK but the /dev special files are missing. The administrator should recreate them by running /dev/MAKEDEV.
  • B. The logical volume file system has become corrupted. The administrator should repair it with xfs_repair/dev/datavg/datalv and then mount it.
  • C. The logical volume is not active. The administrator should make it active with lvchange -ay /dev/ datavg/datalv and then mount it.
  • D. The file system is read-only. The administrator should remount it as read-write with the command mount - o remount.rw /data.

正解: C

 

質問 29
A Linux user needs to connect to a remote email server named mail.foo.com through the SMTP port.
Which of the following commands will accomplish this task?

  • A. traceroute mail.foo.com 110
  • B. netcat mail.foo.com 110
  • C. netcat mail.foo.com 25
  • D. traceroute mail.foo.com 25

正解: C

 

質問 30
An administrator needs to create a file named helloin the home directory that contains the following text:
it's me!
Which of the following commands would accomplish this goal?
mkdir ~/hello

  • A. cp "it's me!" > ~/hello
    type ~/hello
  • B. echo "it's me!" > ~/hello
    mv ~/hello
  • C. print "it's me!"
  • D. touch ~/"it's me!"
    touch ~/hello

正解: D

 

質問 31
A user issues the following command:
ls -l /var/log | egrep -e '^d[rwx]{3}.*[rw-]{3}.*'
The list of files in the system is shown below:

Which of the following results matches the command issued?

  • A. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
  • B. -rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log
    -rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
    -rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
  • C. drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
  • D. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades

正解: B

 

質問 32
An administrator needs to deploy 100 identical CentOS workstations via PXE boot. Which of the following should the administrator use to minimize the amount of interaction with the consoles needed?

  • A. Hard disk duplicator
  • B. Ghost image on a distribution server
  • C. Kickstart script
  • D. Ubiquity script
  • E. Hard disk duplicator

正解: C

 

質問 33
......

あなたを合格させるCompTIA試験にはXK0-004試験問題集:https://jp.fast2test.com/XK0-004-premium-file.html


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어