Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the CompTIA Linux+ XK0-006 Questions and answers with CertsForce

Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions
Questions # 31:

Which of the following is a characteristic of Python 3?

Options:

A.

It is closed source.


B.

It is extensible through modules.


C.

It is fully backwards compatible.


D.

It is binary compatible with Java.


Expert Solution
Questions # 32:

A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?

Options:

A.

git init


B.

git clone


C.

git config


D.

git add


Expert Solution
Questions # 33:

A systems administrator is helping to secure a new web application. During the tests, the administrator obtains the following output to validate the application:

SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384

ALPN, server accepted to use http/1.1

Server certificate:

subject: CN=*.newapp.comptia.org

start date: Jan 17 00:00:00 2024 GMT

expire date: Feb 16 23:59:59 2034 GMT

issuer: C=US; O=Comptia; OU=IT Security; CN=ca1.comptia.org

SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.

Which of the following explains the validation results?

Options:

A.

The certificate was not signed by a trusted authority, which was forcefully ignored during the tests.


B.

The certificate was only issued for one month, is already expired, and needs to be replaced.


C.

The certificate is a wildcard certificate that is highly insecure and should never be used.


D.

The certificate uses an outdated algorithm and should be replaced with a more secure one.


Expert Solution
Questions # 34:

An administrator wants to start an Ubuntu terminal in a container. Which of the following will allow the administrator to complete the task?

Options:

A.

podman pull ubuntu /bin/bash


B.

docker run -it ubuntu


C.

containerd /usr/bin/sh ubuntu


D.

runc exec -it ubuntu


Expert Solution
Questions # 35:

A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

Question # 35

Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

Options:

A.

Log out other user sessions because only one is allowed at a time.


B.

Enable PAM and configure the SSH module.


C.

Modify the SSH port to use 2222.


D.

Use a key to log in as root over SSH.


Expert Solution
Questions # 36:

In the echo " profile-$num-$name " line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?

Options:

A.

echo " profile-$(num)-$name "


B.

echo ' profile-$num-$name '


C.

echo " profile- ' $num ' -$name "


D.

echo " profile-${num}-$name "


Expert Solution
Questions # 37:

Which of the following can reduce the attack surface area in relation to Linux hardening?

Options:

A.

Customizing the log-in banner


B.

Reducing the number of directories created


C.

Extending the SSH startup timeout period


D.

Enforcing password strength and complexity


Expert Solution
Questions # 38:

A Linux administrator attempts to unmount the local filesystem /data in order to mount a new volume. However, the administrator receives the following error message:

umount: /data: target is busy

Which of the following commands should the administrator run to resolve the issue?

Options:

A.

tree -g /data


B.

ls -ld /data


C.

stat -f /data


D.

fuser -mk /data


Expert Solution
Questions # 39:

Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?

Options:

A.

docker start


B.

docker ps


C.

docker run


D.

docker images


Expert Solution
Questions # 40:

An administrator receives reports that a web service is not responding. The administrator reviews the following outputs:

Question # 40

Which of the following is the reason the web service is not responding?

Options:

A.

The private key needs to be renamed from server.crt to server, key so the service can find it.


B.

The private key does not match the public key, and both keys should be replaced.


C.

The private key is not in the correct location and needs to be moved to the correct directory.


D.

The private key has the incorrect permissions and should be changed to 0755 for the service.


Expert Solution
Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions