LINUX+ XK0-006 V8 Automation, orchestration, and scripting Runs in your browser · no setup Preview · not independently reviewed

Repair an unsafe Ansible rollout

Read inventory and dry-run evidence, constrain a generated playbook, and order a recoverable deployment.

Estimated12 min
DifficultyIntermediate
Points13
Scenario brief

A generated Ansible draft should update SSH configuration on the web tier only. The change must preserve administrative access, keep secrets out of output, and be tested on one host before the remaining web servers.

Content record

Preview · not independently reviewed

Mapped to CompTIA XK0-006 objectives · Internal validation 2026-08-26 · Available as preview practice, but a named independent subject-matter expert has not yet verified the question and answer key.

Community review →
4.1Given a scenario, use automation and orchestration technologies. 5.4Given a scenario, analyze and troubleshoot security issues on a Linux system. 4.5Explain artificial intelligence practices for Linux administration.
Show review record and official sources

Method: Mapped to XK0-006 V8 automation and generated-code review objectives 4.1 and 4.5; inventory scope, check mode, validation, secret handling, and staged verification were reviewed.

Current-profile check: 2026-08-12 · Next review due 2027-02-08

01

Inspect the evidence

Use only the information provided to complete the tasks.

Inventory and dry run

code
[web]
web01
web02

[database]
db01

$ ansible-playbook -i inventory.ini ssh.yml --check --diff
web01 : ok=3 changed=2 unreachable=0 failed=0
web02 : ok=0 changed=0 unreachable=1 failed=0
db01  : ok=3 changed=2 unreachable=0 failed=0

Generated draft

code
- hosts: all
  become: true
  tasks:
    - copy:
        src: sshd_config
        dest: /etc/ssh/sshd_config
    - shell: systemctl restart sshd
    - debug:
        msg: 'vault_password={{ vault_password }}'
02

Complete the response

Partial credit is available for matching, ordering, and multi-select tasks.

01
matching

Match each observation to the operational conclusion it supports.

3 pts
Need a hint?

Start with the row and choice that have the most distinctive purpose, then use that pair to narrow the rest.

Show another hint

For each remaining pair, explain the relationship in one sentence before selecting it.

02
single choice

Which play-level change enforces the approved inventory scope?

2 pts
Need a hint?

Restate the exact outcome or failure the prompt asks about before comparing choices.

Show another hint

Eliminate choices that solve a nearby problem, change more than requested, or do not fit the evidence.

03
multi select

Select the THREE changes that make the generated draft safer and repeatable.

3 pts
Need a hint?

Evaluate each option independently against the scenario evidence instead of treating the list as one decision.

Show another hint

Choose only options that directly satisfy the prompt; being generally true is not enough.

04
ordering

Order the remaining work into a recoverable rollout.

5 pts

Drag the rows or use the arrow buttons to reorder.

  1. 1 Remove the disclosed value from the draft and rotate it if any real output already exposed it
  2. 2 Repair web02 management access and confirm inventory scope
  3. 3 Review the corrected playbook, then run syntax, check, and diff validation
  4. 4 Apply to web01 while retaining another administrative session; verify SSH and logs
  5. 5 Apply to the remaining web group and save the final validation evidence
Need a hint?

Identify the prerequisite that must happen first and the verification or documentation that belongs last.

Show another hint

For the middle steps, ask what must already be true before each action can safely happen.

Ready to check your work?Submit to finish this session and review your feedback. Extra practice is optional.
Persistent progress

Attempt history

Every submission is retained. Starting another attempt never replaces or unlocks the previous one.

No attempts yet

Your first submitted score and detailed answer review will appear here.

Community quality control

Question or answer look wrong?

Proposals and votes help staff prioritize review. They never change the scoring key automatically.

Full review queue
No community corrections yet

Be the first to flag unclear wording, an answer-key issue, or a source that needs another look.

Propose a correction