Objective 3.4XK0-005

3.4 Summarize common infrastructure as code technologies.

Objective 3.4 sits in Scripting, Containers, and Automation, which carries 19% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.

Objective title verbatim from the official objectives. CompTIA exam page

A worked example

Shown solved, with the whole explanation open: this is what every question here carries.

3-4Scripting, Containers, and AutomationModerate

An administrator runs an Ansible playbook a second time and it reports no changes. Which property of the tool explains this?

IdempotencyCorrect · your answerCorrect: a matching state produces no change on a repeat run.
ImmutabilityImmutability means replacing rather than modifying resources, a different idea.
OrchestrationOrchestration coordinates tasks across hosts and does not explain the no-change result.
AtomicityAtomicity concerns all-or-nothing transactions, not repeat-run stability.

Correct.

Concept

A well-designed automation tool converges a system toward a described state and makes no further change once that state already holds, however many times it runs.

Why A

Idempotency means that when the system already matches the state the playbook describes, Ansible alters nothing on a repeat run.

#iac#ansible#idempotency

Now you: objective 3.4 questions

No account needed. The explanation opens when you answer.

Sample question 1 of 3

3-4Scripting, Containers, and AutomationModerate

A team wants a configuration tool that installs no agent on managed nodes and connects over existing SSH credentials. Which tool fits?

Sample question 2 of 3

3-4Scripting, Containers, and AutomationModerate

An administrator asks how Terraform knows which real resources it already manages so it can compute the next changes. What holds that record?

Sample question 3 of 3

3-4Scripting, Containers, and AutomationModerate

Before making any changes, an administrator wants to preview exactly what Terraform will create, update, or destroy. Which command shows that?

Full Linux+ question bank coming

We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.

Read the sources

These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.

More objectives in Scripting, Containers, and Automation