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?
Answer(s): 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.
Which of the following commands should a Linux administrator use to determine the version of a kernel module?
The modinfo command displays detailed information about a kernel module, including its version, author, description, and parameters.
A Linux user runs the following command:nohup ping comptia.com &Which of the following commands should the user execute to attach the process to the current terminal?
The fg command brings a background job to the foreground, attaching it to the current terminal. Since the ping process was started in the background with &, fg is the correct way to reattach it.
A systems administrator wants to review the amount of time the NetworkManager service took to start. Which of the following commands accomplishes this goal?
The systemd-analyze blame command shows the startup time of each service managed by systemd, allowing the administrator to see how long NetworkManager (or any other service) took to start.
A systems administrator needs to open the DNS TCP port on a Linux system from network 10.0.0.0/24. Which of the following commands should the administrator use for this task?
Answer(s): C
The ufw allow 53/tcp from 10.0.0.0/24 command explicitly opens TCP port 53 (DNS) for connections coming from the 10.0.0.0/24 network, which is the correct way to configure this firewall rule.
Which of the following describes PEP 8?
Answer(s): A
PEP 8 is the official Python Enhancement Proposal that provides coding style guidelines for writing clean, consistent, and readable Python code.
While hardening a system, an administrator runs a port scan with Nmap, which returned the following output:Which of the following is the best way to address this security issue?
Port 23/tcp indicates Telnet, which is insecure because it transmits data in plaintext. The best hardening approach is to disable and remove the Telnet service entirely, eliminating the vulnerability rather than just blocking it at the firewall. Secure alternatives like SSH should be used instead.
A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?
The git init command initializes a new, empty Git repository in the current directory, making it the correct choice for creating a local repository.
Post your Comments and Discuss CompTIA XK0-006 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the XK0-006 content, but please register or login to continue.