ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 31 - XK0-005 discussion

Report
Export

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
Answers
A.
hostnamectl status --no-ask-password
B.
hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
Answers
B.
hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
C.
hostnamectl set-hostname Comptia-WebNode -H [email protected]
Answers
C.
hostnamectl set-hostname Comptia-WebNode -H [email protected]
D.
hostnamectl set-hostname Comptia-WebNode --transient
Answers
D.
hostnamectl set-hostname Comptia-WebNode --transient
Suggested answer: C

Explanation:

The command hostnamectl set-hostname Comptia-WebNode -H [email protected] 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.

asked 02/10/2024
Sergio Zozulenko
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first