ExamGecko
Home / CompTIA / XK0-005 / List of questions
Ask Question

CompTIA XK0-005 Practice Test - Questions Answers, Page 41

Add to Whishlist

List of questions

Question 401

Report Export Collapse

A Linux administrator needs to rebuild a container with the httpd service in order to change some default parameters. Which of the following should be the first command line in the Dockerfile?

Become a Premium Member for full access
  Unlock Premium Member

Question 402

Report Export Collapse

A developer is unable to access a Linux server via SSH. Given the following output:

SSH server configuration (/etc/ssh/sshd_config):

PermitRootLogin no

PubkeyAuthentication yes

PasswordAuthentication yes

GSSAPIAuthentication yes

X11Forwarding no

User Information (/etc/passwd):

developer:x:1000:1000:comptia:/home/developer:/bin/bash

User Shadow File (/etc/shadow):

developer:!!::0:99999:7:::

Which of the following explains why the developer is unable to log in to the server?

Become a Premium Member for full access
  Unlock Premium Member

Question 403

Report Export Collapse

A DevOps engineer is working on a local copy of a Git repository. The engineer would like to switch from the main branch to the staging branch but notices the staging branch does not exist. Which of the following Git commands should the engineer use to perform this task?

Become a Premium Member for full access
  Unlock Premium Member

Question 404

Report Export Collapse

A Linux engineer receives the following notification from a system:

cp: cannot create regular file '/app/appdata.tar*': No space left on device

The engineer obtains the following output:

[root@host ~]# df -i /app

Filesystem Inodes IUsed IFree Mounted on

/dev/vdb 2048 2048 0 /app

bash

CopyEdit

[root@host ~]# df -h /app

Filesystem Size Used Avail Use% Mounted on

/dev/vdb 2.0G 6.1M 1.9G 1% /app

Which of the following describes the state of the filesystem based on this output?

Become a Premium Member for full access
  Unlock Premium Member

Question 405

Report Export Collapse

An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fails.

The administrator executes:

nslookup -querytype=AAAA www.comptia.org

Can't find www.comptia.org: No answer

The workstation has a static entry in /etc/hosts:

CopyEdit

104.18.99.101 www.comptia.org

Which of the following is the most likely cause?

Become a Premium Member for full access
  Unlock Premium Member

Question 406

Report Export Collapse

A Linux administrator was informed that the server time zone is incorrect. Which of the following commands should the administrator use to correct the time zone?

Become a Premium Member for full access
  Unlock Premium Member

Question 407

Report Export Collapse

A systems technician is configuring an application server to accept packets from a trusted source with the IP address 192.168.10.22. Which of the following commands will allow communication between the two servers?

Become a Premium Member for full access
  Unlock Premium Member
Total 407 questions
Go to page: of 41

Related questions