CompTIA Linux+ Practice Questions: Automation

7 free, exam-style CompTIA Linux+ (XK0-006) practice questions covering Automation. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA Linux+ quiz 📘 CompTIA Linux+ study guide

Q1. Which Ansible module copies files to remote hosts?

Explanation: copy module transfers files from control node to managed nodes. Learn more.

Q2. Which Ansible playbook directive executes tasks?

Explanation: tasks: section contains playbook operations. Learn more.

Q3. Which command tests Ansible inventory connectivity?

Explanation: ansible -m ping all checks host reachability. Learn more.

Q4. Which directory contains Ansible playbooks by convention?

Explanation: /etc/ansible is default configuration directory. Learn more.

Q5. Which command schedules recurring jobs for a user?

Explanation: crontab manages recurring scheduled commands for users. Learn more.

Q6. Which systemd unit type is paired with a service unit to run a job on a schedule?

Explanation: A .timer unit defines when systemd activates its associated .service unit and can replace many cron-style schedules. Learn more.

Q7. What does idempotence mean for an Ansible playbook?

Explanation: Idempotent tasks change a system only when necessary, so repeated playbook runs leave an already compliant host in the same desired state. Learn more.

More CompTIA Linux+ practice topics