[2026年更新]XK0-006リアルな試験問題集でXK0-006練習テスト [Q32-Q51]

Share

[2026年更新]XK0-006リアルな試験問題集でXK0-006練習テスト

XK0-006問題集でLinux+高確率練習問題集

質問 # 32
A Linux administrator just finished setting up passwordless SSH authentication between two nodes. However, upon test validation, the remote host prompts for a password. Given the following logs:

Which of the following is the most likely cause of the issue?

  • A. The SELinux policy is incorrectly targeting the unconfined_ucontext.
  • B. The authorized_keysfile has the incorrect root permissions assigned.
  • C. The administrator forgot to restart the SSHD after creating the authorized_keysfile.
  • D. The authorized_keysfile does not have the correct security context to match SELinux policy.

正解:D

解説:
The log shows avc: denied { read } caused by SELinux when sshd tries to access authorized_keys. The file has the wrong SELinux context (unconfined_u:object_r:home_root_t) instead of the expected context for SSH. This mismatch blocks SSH key authentication even though file permissions are correct. Adjusting the SELinux context (e.g., with restorecon) resolves the issue.


質問 # 33
A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the administrator use?

  • A. ssh-keyscan -t rsa $$ ssh-copy-id john@server2 -i ~/.ssh/key
  • B. ssh-add -t rsa $$ scp -rp ~/.ssh john@server2
  • C. ssh-keygen -t rsa $$ ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2
  • D. ssh-agent -i rsa $$ ssh-copy-id ~/.ssh/key john@server2

正解:C

解説:
ssh-keygen -t rsa generates an RSA key pair.
ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2 copies the public key to the remote server's authorized_keys, enabling passwordless login.


質問 # 34
Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?

  • A. GPG
  • B. LUKS
  • C. OpenSSL
  • D. PKI certificates

正解:B

解説:
LUKS (Linux Unified Key Setup) provides full-disk encryption, ensuring that the data on a hard drive is protected and unreadable when the system is powered off or the drive is not in use.


質問 # 35
A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the following commands should the administrator use to save the local modifications for later review?

  • A. git merge
  • B. git stash
  • C. git fetch
  • D. git pull

正解:B

解説:
The git stash command temporarily saves local modifications without committing them, allowing the administrator to safely run git pull or git fetch later and then reapply the saved changes.


質問 # 36
After system startup, the X Window System GUI login interface is not displaying. Which of the following commands ensures that the GUI is started during the system startup process?

  • A. systemctl set-default graphical.target
  • B. systemctl enable xwindow.service
  • C. systemctl isolate graphical.target
  • D. systemctl unmask xwindow.service

正解:A

解説:
Setting the default target to graphical.targettells systemd to boot into the graphical interface on startup. The command systemctl set-default graphical.targetmakes the GUI login display automatically at boot.


質問 # 37
A Linux administrator needs to create and then connect to the app-01-imagecontainer. Which of the following commands accomplishes this task?

  • A. docker run -it app-01-image
  • B. docker build -ic app-01-image
  • C. docker exec -dc app-01-image
  • D. docker start -td app-01-image

正解:A

解説:
The docker run -it command both creates a new container from the specified image and attaches to it interactively, which is exactly what the administrator needs.


質問 # 38
Which of the following best describes JSON?

  • A. A programming language that developers use to build dynamic websites
  • B. A file format for exchanging information or data between systems
  • C. A software-based technique that allows a computer to simulate one or more machines so they appear to be real
  • D. An open-source platform that facilitates the creation and administration of isolated environments

正解:B

解説:
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate. JSON is commonly used to transmit data between a server and a client, as it is language-independent and can be used in many environments.


質問 # 39
A systems administrator is working on an SFTP server configuration. Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?

  • A. sudo ufw allow 0:22/tcp from 10.10.0.0
  • B. sudo ufw allow in on eth0 to any port 22
  • C. sudo ufw allow from 10.10.0.0/24
  • D. sudo ufw allow from 10.10.0.0/24 to any port 22

正解:D

解説:
The command sudo ufw allow from 10.10.0.0/24to any port 22 explicitly opens TCP port 22 (used by SFTP/SSH) only for hosts in the 10.10.0.0/24 network.


質問 # 40
Customers are unable to send emails to a company's domain When searching the naming service, they receive the following error message:

Which of the following is a valid reason for this error?

  • A. The root name servers were configured improperly.
  • B. The name entry does not exist.
  • C. The queried DNS server is not responding.
  • D. The digcommand fails because of an extra mxat the end.

正解:C

解説:
The error "connection timed out; no servers could be reached" indicates that the specified DNS server (ns1.mydomain.com) did not respond to the query. This points to a DNS server availability or connectivity issue, not a problem with the command syntax or record existence.


質問 # 41
SIMULATION 1
A new drive was recently added to a Linux system. Using the environment and tokens provided, complete the following tasks:
- Create an appropriate device label.
- Format and create an ext4 file system on the new partition.
The current working directory is /.
INSTRUCTIONS
Use the drop-down menus to select the proper objects to complete these tasks.
Some commands are partially complete.
Not all objects will be used, and some may be used more than once.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

正解:

解説:

Explanation:
mklabel gpt initializes the new disk /dev/sdc with a GPT partition table.
mkpart primary ext4 1 10G creates a primary partition using the ext4 type between 1MB and
10GB on /dev/sdc.
mkfs.ext4 /dev/sdc1 formats the newly created partition /dev/sdc1 with the ext4 filesystem, completing the setup.


質問 # 42
A systems administrator wants to check if the ntpd service is configured to start on startup. Which of the following commands will show that information when run?

  • A. systemctl is-active ntpd.service
  • B. systemctl is-enabled ntpd.service
  • C. systemctl stop ntpd.service
  • D. systemctl start ntpd.service

正解:B


質問 # 43
A systems administrator is creating a backup copy of the /home/directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?

  • A. tar -cJf /backups/home.tar.xz /home/
  • B. cpio -o /backups/home.tar.xz /home/
  • C. rsync -z /backups/home.tar.xz /home/
  • D. dd of=/backups/home.tar.xz if=/home/

正解:A

解説:
The tar -cJf command creates (-c) an archive, compresses it with XZ (-J), and writes it to a file (- f). This allows archiving and compression of the /home/ directory in one step.


質問 # 44
A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels.
Which of the following should the administrator do?

  • A. Implement a centralized log aggregation solution.
  • B. Configure daily automatic backups of logs to remote storage.
  • C. Create an automated process to retrieve logs from the server by demand.
  • D. Deploy log rotation procedures to manage the records.

正解:A

解説:
A centralized log aggregation solution (such as Elasticsearch, Graylog, or Splunk) provides reliable and secure management of logs across multiple servers. It consolidates OS and application logs, simplifies analysis, and improves monitoring and security compared to on- demand retrieval, backups, or simple log rotation.


質問 # 45
Which of the following describes the method of consolidating system events to a single location?

  • A. Health checks
  • B. Webhooks
  • C. Log aggregation
  • D. Threshold monitoring

正解:C

解説:
Log aggregation is the process of collecting and consolidating logs from multiple sources into a single location, making it easier to analyze and manage system events.


質問 # 46
Which of the following commands should a Linux administrator use to determine the version of a kernel module?

  • A. modprobe bluetooth
  • B. lsmod bluetooth
  • C. modinfo bluetooth
  • D. depmod bluetooth

正解:C

解説:
The modinfo command displays detailed information about a kernel module, including its version, author, description, and parameters.


質問 # 47
Which of the following best describes a use case for playbooks in a Linux system?

  • A. To provide the security information required for a container
  • B. To provide a set of tasks and configurations to deploy an application
  • C. To provide the storage volume information required for a pod
  • D. To provide the instructions for implementing version control on a repository

正解:B

解説:
In Ansible, a playbook is a YAML file that defines tasks, configurations, and automation workflows. It is commonly used to deploy applications, configure systems, and manage infrastructure on Linux systems.


質問 # 48
An administrator needs to remove the directory /home/user1/dataand all of its contents.
Which of the following commands should the administrator use?

  • A. cut -d /home/user1/data
  • B. rm -r /home/user1/data
  • C. rmdir -p /home/user1/data
  • D. ln -d /home/user1/data

正解:B

解説:
The rm -r command recursively removes a directory and all of its contents (files and subdirectories), which is required for deleting /home/user1/data.


質問 # 49
Which of the following most accurately describes a webhook?

  • A. An HTTP-based callback function
  • B. A means to transmit sensitive information between systems
  • C. An SNMP-based API for network device monitoring
  • D. An authentication method for web-server communication

正解:A

解説:
A webhook is an HTTP-based callback that allows one system to send real-time data or notifications to another system when an event occurs.


質問 # 50
A systems administrator receives reports about connection issues to a secure web server. Given the following firewall and web server outputs:

Which of the following commands best resolves this issue?

  • A. ufw allow 80/tcp
  • B. ufw disable
  • C. ufw delete deny https/tcp
  • D. ufw allow 4096/tcp

正解:C

解説:
The firewall output shows that port 443/tcp (HTTPS) is explicitly denied, even though the web server is correctly listening on it. Removing the deny rule for HTTPS (ufw delete deny https/tcp) resolves the issue while still keeping the firewall active and secure.


質問 # 51
......

XK0-006リアルな問題と知能問題集:https://jp.fast2test.com/XK0-006-premium-file.html

合格できるXK0-006試験と最新XK0-006試験問題集PDF2026:https://drive.google.com/open?id=1BJXzeY_85q2SYWzhqxUNngW6PvvqwVF7


弊社を連絡する

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

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

サポート: 現在連絡 

English Deutsch 繁体中文 한국어