Courseiva
Automation, Orchestration, and ScriptingmediumMultiple SelectObjective-mapped

XK0-006 Automation, Orchestration, and Scripting Practice Question

A cloud engineer is using Ansible to manage configuration across multiple servers. The engineer needs to store variable data that is specific to each host and sensitive database passwords. Which two Ansible features should be used for these purposes? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Ansible Vault

host_vars are used for host-specific variables, and Ansible Vault encrypts sensitive data like passwords.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • group_vars

    Why it's wrong here

    group_vars are for groups, not individual hosts.

  • ansible_facts

    Why it's wrong here

    Facts are system information gathered by Ansible, not used for storing user-defined variables.

  • roles

    Why it's wrong here

    Roles organize tasks and variables but are not specifically for host-specific or sensitive data.

  • Ansible Vault

    Why this is correct

    Correct. Vault encrypts sensitive data such as passwords.

  • host_vars

    Why this is correct

    Correct. host_vars directory contains variables specific to individual hosts.

About these practice questions

One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.