Official Bank 0/485

CompTIA Linux+ v8 (XK0-006) - CompTIA Actual Exam Questions

Last updated on April 15, 2026

97% Exam Compliance
485 Total Questions
1
Question

A DevOps engineer wants to work on a snapshot of the infrastructure as code configuration. Which of the following commands should the engineer use to accomplish this task?

Options
A

git pull <feature>

B

git push <feature>

C

git branch <feature>

D

git tag <feature>

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

Linux system users report that over the past few months, a server has stopped responding at least twice each day. Every time this happens, the users have to restart the server to recover it. A systems administrator diagnosing the issue collects the following outputs: csharp Output 1 [Tue Aug 31 16:36:42 2021] oom-killer invoked by java: gfp_mask=0x280da2 order=0, oom_score_adj=0 [Tue Aug 31 16:36:42 2021] java cpuset=/ mems_allowed=0 Output 2 [root@server]# free -m total used free shared buff/cache available Mem: 15819 15026 174 92 619 134 Swap: 0 0 0 Which of the following is the best permanent resolution for the system?

Options
A

More memory resources

B

More CPU resources

C

More network bandwidth

D

Extended root filesystem

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

Options
A

rpm -i wget

B

rpm -qf wget

C

rpm -F wget

D

rpm -V wget

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that the Docker service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

Options
A

After=docker-repository.mount

B

ExecStart=/usr/bin/mount -a

C

Requires=docker-repository.mount

D

RequiresMountsFor=docker-repository.mount

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

A Linux engineer needs to get information from the foo.com domain mail servers. Which of the following network tools should the engineer use?

Options
A

arp mx foo.com

B

nc mx foo.com

C

dig mx foo.com

D

route mx foo.com

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.