EX294 Implement advanced Ansible automation Practice Question
Which THREE of the following are valid attributes of the ansible.builtin.service module?
⚠ Common exam trap
Watch out — candidates often confuse module-specific parameters (like `pattern` for `systemd` or `runlevel` for legacy init scripts) with the generic `service` module, which only supports `state`, `enabled`, `name`, and a few others like `arguments` and `use`.
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
✓
state
The `state` attribute is a core parameter of the `ansible.builtin.service` module, used to define the desired service status (e.g., `started`, `stopped`, `restarted`, `reloaded`). This directly controls the service's runtime state on the target system.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
state
Why this is correct
Correct: state controls whether the service is started/stopped.
- ✓
enabled
Why this is correct
Correct: enabled controls whether the service starts on boot.
- ✗
pattern
Why it's wrong here
Incorrect: pattern is not a parameter of service module.
- ✓
name
Why this is correct
Correct: name specifies the service name.
- ✗
runlevel
Why it's wrong here
Incorrect: runlevel is used by other modules, not service.
Go deeper
Related to this question
About these practice questions
Courseiva writes every EX294 question from scratch — 392 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 EX294 practice question is part of Courseiva's free Red Hat 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 EX294 exam.