CompTIA XK0-005 Exam Practice Questions (P. 3)
- Full Access (442 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
- Agit clone https://github.com/comptia/linux+-.git
git push origin - Bgit clone https://qithub.com/comptia/linux+-.git
git fetch New-Branch - Cgit clone https://github.com/comptia/linux+-.git
git status - Dgit clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch>Most Voted
Correct Answer:
D
D

Correct choice D, using commands `git clone` followed by `git checkout -b `, is the optimal sequence for version control in modifying Infrastructure as Code (IaC) templates. The `git clone` command initially replicates the repository locally, allowing access to all historical data and branches. Following this, `git checkout -b ` creates and switches to a new branch. This separate branch permits unobstructed experimentation or changes without impacting the main or master branch, thus maintaining a clean and reversible development environment. This methodology is crucial in version control to ensure ongoing stability while accommodating new updates.
send
light_mode
delete
Question #22
An administrator attempts to rename a file on a server but receives the following error.

The administrator then runs a few commands and obtains the following output:

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

The administrator then runs a few commands and obtains the following output:

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?
- Achgrp reet files
- Bchacl -R 644 files
- Cchown users files
- Dchmod -t filesMost Voted
Correct Answer:
D
D
send
light_mode
delete
Question #23
Which of the following commands will display the operating system?
send
light_mode
delete
Question #24
A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?
send
light_mode
delete
Question #25
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?
send
light_mode
delete
Question #26
A Linux administrator is troubleshooting SSH connection issues from one of the workstations.
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

The administrator reviews the information below:


Which of the following is causing the connectivity issue?
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

The administrator reviews the information below:


Which of the following is causing the connectivity issue?
- AThe workstation has the wrong IP settings.
- BThe sshd service is disabled.
- CThe server’s firewall is preventing connections from being made.Most Voted
- DThe server has an incorrect default gateway configuration.
Correct Answer:
B
B
send
light_mode
delete
Question #27
Which of the following files holds the system configuration for journal when running systemd?
- A/etc/systemd/journald.confMost Voted
- B/etc/systemd/systemd-journalctl.conf
- C/usr/lib/systemd/journalctl.conf
- D/etc/systemd/systemd-journald.conf
Correct Answer:
A
A
send
light_mode
delete
Question #28
A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?
- ADocker
- BOn-premises systems
- CCloud-based systems
- DKubernetesMost Voted
Correct Answer:
D
D
send
light_mode
delete
Question #29
Which of the following tools is commonly used for creating CI/CD pipelines?
send
light_mode
delete
Question #30
A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?
- Achown web:web /home/web
- Bchmod -R 400 /home/web
- Cecho "umask 377" >> /home/web/.bashrcMost Voted
- Dsetfacl read /home/web
Correct Answer:
B
B
send
light_mode
delete
All Pages