Exam4Training

Which of the following would the administrator do to complete this requirement?

A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect.

Which of the following would the administrator do to complete this requirement?
A . hostnamectl status –no-ask-password
B . hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
C . hostnamectl set-hostname Comptia-WebNode -H root@192.168.2.14
D . hostnamectl set-hostname Comptia-WebNode –transient

Answer: C

Explanation:

The command hostnamectl set-hostname Comptia-WebNode -H root@192.168.2.14 sets the hostname of the web server to Comptia-WebNode and connects to the server using the SSH protocol and the root user. This is the correct way to complete the requirement. The other options are incorrect because they either display the current hostname status (hostnamectl status), set an invalid hostname (hostnamectl set-hostname "$(perl -le "print" "A" x 86)"), or set a transient hostname that is not persistent (hostnamectl set-hostname Comptia-WebNode –transient).

Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 9: Managing System Components, page 291.

Latest XK0-005 Dumps Valid Version with 136 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version