A systems administrator is required to tag a web server for API connectivity.
Which of the following commands will accomplish this?
The Correct Answer is: d. hostnamectl set-hostname Comptia-WebNode --transient
The --transient flag in hostnamectl set-hostname sets a temporary hostname for the current boot session. This is often useful for tagging systems such as web servers in environments like API connectivity where persistent reboots aren't required for naming.
The transient hostname is recognized by system APIs and can be effective in identifying a system uniquely within temporary environments like testing or dynamic deployment setups, without altering permanent configurations.
Why the Other Choices Are Incorrect :
Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.
You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams