EX294 Manage task execution and roles Practice Question
Exhibit
Refer to the exhibit.
```yaml
---
- hosts: all
tasks:
- name: Create user
ansible.builtin.user:
name: jdoe
state: present
register: user_result
- name: Show user info
ansible.builtin.debug:
var: user_result
```Refer to the exhibit. The playbook runs successfully. What will the debug task output?
⚠ Common exam trap
Red Hat often tests the misconception that the debug task outputs a simple success message or a single value, when in fact it outputs the full return dictionary from the module.
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
✓
A dictionary with details about the user, such as uid, gid, and groups.
The debug task outputs the registered variable from the user module. By default, the user module returns a dictionary containing user account details such as uid, gid, groups, and home directory when the state is 'present'. Since the playbook runs successfully, the registered variable holds this dictionary, making option B correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Just the username 'jdoe'.
Why it's wrong here
The variable contains more than just the name.
- ✓
A dictionary with details about the user, such as uid, gid, and groups.
Why this is correct
The user module returns a dictionary with user attributes.
- ✗
The entire playbook YAML structure.
Why it's wrong here
debug with var only prints the value of that variable.
- ✗
The string 'true' if the user was created successfully.
Why it's wrong here
The debug module outputs the variable content, not a simple boolean.
Go deeper
Related to this question
About these practice questions
One of 520 original EX294 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 →
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.