Linux+ XK0-006 practice question 11: Automation
A team wants to track changes to configuration files, review them before they apply and roll back easily. Which practice supports this?
The options
- A. Store the files only on one administrator's laptop.
- B. Keep the files in a version control repository and apply changes through reviewed commits.
- C. Edit the files directly on each server without notes.
- D. Email copies of the files between administrators.
Answer and why
The correct answer is B: Keep the files in a version control repository and apply changes through reviewed commits.
A. A single copy is a risk and cannot be reviewed by the team.
B. Version control records every change, supports review and makes rollback simple.
C. Direct edits leave no history and drift between servers.
D. Emailed copies fork quickly and have no single source of truth.
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 configuration management run is applied to a server twice and the second run makes no changes. Which property does this show?
- 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 11 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.