Linux+ XK0-006 practice question 12: Automation
A configuration management run is applied to a server twice and the second run makes no changes. Which property does this show?
The options
- A. Latency
- B. Idempotence
- C. Obfuscation
- D. Fragmentation
Answer and why
The correct answer is B: Idempotence
A. Latency is a delay and does not describe repeat behavior.
B. An idempotent operation reaches the desired state and leaves it unchanged when repeated.
C. Obfuscation hides code and has no bearing on repeated runs.
D. Fragmentation is splitting data into pieces and is not a property of configuration runs.
What Automation tests
Automation, orchestration and scripting covers shell scripts, version control, configuration management and infrastructure as code. Look for the idiom that makes a script safe and repeatable rather than merely working once.
Automation, orchestration, and scripting is 17% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.
Try these next
Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.
- A shell script should stop immediately if any command fails, rather than carrying on with bad data. Which line near the top does this?
- A team wants to track changes to configuration files, review them before they apply and roll back easily. Which practice supports this?
- An administrator needs to see which block devices are attached, with their sizes and mount points, in a tree. Which command does that?
- A new disk partition has been formatted and must be mounted at boot. Which file should the administrator add an entry to?
Keep going
This is question 12 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.