XK0-006 Automation, Orchestration, and Scripting Practice Question
An Ansible playbook is being written to install the Nginx web server on a group of Ubuntu servers. Which module should be used in the playbook to install the package?
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
✓
apt
The apt module is used for package management on Debian/Ubuntu systems.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
apt
Why this is correct
apt is the correct module for Ubuntu.
- ✗
command
Why it's wrong here
The command module should be avoided when a dedicated module exists.
- ✗
package
Why it's wrong here
The generic package module could work but is less specific; apt is the recommended module for apt-based systems.
- ✗
yum
Why it's wrong here
yum is for Red Hat-based systems, not Ubuntu.
Go deeper
Related to this question
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.