Study guide · Flashcards and memory notes

RHCE Flashcards

40 recall cards for the commands and files on the current EX294 study points: inventories, navigator, plays, roles, modules, and Vault.

EX294 · current study points4 decks · 40 cardsNo sign-up required

How to use these cards: Say the answer out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations, see the core notes.

Study mode

Choose a deck, flip each card, and mark what you already know.

All flashcards

Select a question to reveal its answer.

Deck 1 · Components and configuration

What the exam awards, inventories, and the two config files.

10 cards
1.1What does passing EX294 award by itself?

Red Hat Certified Advanced System Administrator in Ansible. That result counts toward RHCE in Ansible. The page does not call this exam alone the RHCE credential. EX342 is a different exam.

1.2Which file lists hosts, and which file lists plays?

The inventory lists hosts. The playbook lists plays. ansible.cfg and ansible-navigator.yml configure the tools.

1.3Which name is the inventory name, not the discovered hostname?

inventory_hostname. A discovered hostname is a fact and can differ when the inventory uses an alias.

1.4Which ansible.cfg key selects the static inventory?

inventory under [defaults]. A relative path is resolved from the loaded ansible.cfg file.

1.5Which file does ansible-playbook ignore?

ansible-navigator.yml. Navigator reads it. ansible-playbook reads ansible.cfg, the inventory, and the playbook.

1.6Which pull policy uses a local execution-environment image?

missing. The exam does not provide internet access, so do not depend on pulling a new image.

1.7Where can a default become setting live?

ansible.cfg under privilege_escalation. A play can still set become: true. The remote user needs sudo rights on the managed node.

1.8What does register save?

The module result on that host, including changed and, for command, rc.

1.9How do you write a when test?

when: saved.rc == 0. Do not wrap the whole test in an extra pair of braces.

1.10What should you do with a simple shell for loop that installs packages?

Turn it into a package task with a list or a loop. The current bullet says analyze scripts. The dnf module stays ok when the packages are already installed.

Deck 2 · Access, Git, and running

SSH, both runners, and source control.

10 cards
2.1Which inventory key sets the address without renaming the host?

ansible_host. The left side stays inventory_hostname.

2.2Which modes does sshd expect on .ssh and authorized_keys?

700 on the directory and 600 on the file, owned by the remote user.

2.3Which command runs a playbook in navigator stdout mode?

ansible-navigator run site.yml -m stdout. The default navigator mode is the text interface.

2.4Which flag parses a playbook without connecting to hosts?

--syntax-check. --check connects and does not leave the predicted changes applied.

2.5Which flag selects the web group for one run?

--limit web. --tags selects tagged tasks, not inventory groups.

2.6What does git add do, and what does it not do?

It stages the file. It does not commit or push.

2.7Which editor tasks does the current page name?

Create playbooks and push them, configure ansible-navigator, and run playbooks in a development container.

2.8Why can navigator find a module that ansible-playbook cannot?

The execution environment can contain a collection the control node lacks. The study points require both runners.

2.9Which command reads a module's parameters without the internet?

ansible-navigator doc namespace.collection.module -m stdout.

2.10Host vars and group vars set the same key. Which wins?

The host_vars value. Extra vars from -e beat both.

Deck 3 · Plays, handlers, and roles

Failure handling, precedence, and role files.

10 cards
3.1When does a notified handler run?

Once at the end of the play, if a notifying task changed the host. An ok task does not notify.

Memory note: meta: flush_handlers runs pending handlers before the next task.

3.2What does ignore_errors: true change?

Later tasks still run after a module reports failure. Ansible records the event as ignored; this setting does not bypass an undefined variable, connection failure, or syntax error.

3.3Which block section runs after a failure?

rescue. always runs whether the block succeeded or failed.

3.4Which key stops a command task from looking changed on every run?

changed_when. ignore_errors does not clear the changed flag.

3.5Role defaults, group_vars, and -e all set port. Which wins?

The extra var. Group vars beat defaults/main.yml.

3.6Role vars/main.yml and group_vars set port. Which wins?

vars/main.yml. That is the opposite of defaults/main.yml, which loses to group_vars.

3.7Where do role tasks and templates live?

tasks/main.yml and templates/. files/ is for copy. defaults/main.yml is not the task list.

3.8How does include_role differ from import_role?

include_role is dynamic, so when can skip it at runtime. import_role is processed when the playbook is parsed.

3.9What does a fully qualified collection name look like?

ansible.builtin.copy or ansible.posix.firewalld. A short name depends on the collection search path.

3.10How do you install collections named in a requirements file?

ansible-galaxy collection install -r requirements.yml, from a source the exam system can already reach.

Deck 4 · Modules, templates, and Vault

State, persistence, and secrets.

10 cards
4.1Which dnf state installs httpd and stays ok when it is already installed?

state: present. state: latest upgrades. state: absent removes the package.

4.2Which service keys start httpd now and after reboot?

state: started and enabled: true. started alone does not enable the unit.

4.3Which user keys add a supplementary group without dropping the others?

groups plus append: true. Without append, the list replaces supplementary groups.

4.4Which firewalld flags save a service and apply it now?

permanent: true and immediate: true. When permanent is true, immediate defaults to false.

Memory note: Check both firewall-cmd --list-all and the permanent list, then reboot.

4.5Which mount state writes fstab and mounts now?

mounted. present writes fstab and does not by itself change the mount.

4.6Which cron key keeps a second run from adding another line?

name. It identifies the entry so the module updates it.

4.7A new unit file is copied and systemd cannot find it. What else is required?

daemon_reload: true, then enable and start the unit.

4.8Which module renders {{ variables }} into a file?

ansible.builtin.template. copy writes the braces through unchanged.

4.9What does a file starting with $ANSIBLE_VAULT contain?

Ciphertext. Run the playbook with --ask-vault-pass or a password file. Do not commit the password.

4.10Why can a playbook pass in your lab and fail on a fresh exam system?

The grader applies your playbook to a freshly installed system. A file you created by hand is not recreated unless a task creates it. The result must also survive a reboot.

Memory notes

Use these four checks when a card feels familiar but you cannot say what the second run will do.

Fresh system, then reboot

The exam page says playbooks are applied to freshly installed systems, and configurations must persist after reboot. A task list that only works on a host you already edited fails the first check. A service that is started and not enabled fails the second. Say both out loud before you call a play finished.

One owner for each file

template wants the rendered bytes. lineinfile wants one line. If both run every time, the playbook reports a change forever. copy does not render Jinja. Quote file modes as "0644".

Defaults are easy to override. Role vars are not

Put values you expect a play or a group to replace in defaults/main.yml. A value in vars/main.yml beats group_vars. -e beats both. Handlers run once, at the end, and only after a real change unless you flush them.

The two environments are not the same machine

ansible-navigator.yml does not configure ansible-playbook. The development container sees the project you mount into it, not every file in your home directory. Collections have to be on the system already. The exam does not provide internet access.

Using these cards before a hands-on exam

Say the command or the file before you flip the card. Then name the check: a second run on a clean host, or the state after reboot. A card you can recognize and cannot perform is still a gap.

Keep the decks mixed

Inventories, runners, roles, and modules show up in the same play. After a deck feels easy, shuffle all 40 cards. The current study points also include RHCSA tasks, so a card that only names an Ansible module is unfinished until you can say what the managed node must look like.

Follow a card with one lab change

Use systems you are allowed to rebuild. After the Vault card, encrypt a variable file and run the play without the password, then with it. After the firewall card, compare the running and permanent lists. After the handler card, run the play twice and confirm the handler is quiet the second time.

Verify the control node as well as the managed node

Some mistakes happen before a task reaches a managed host. When an inventory card feels easy, move the control command to another directory and inspect which ansible.cfg was loaded. A relative inventory setting in that file is based on the configuration file, while the current directory can affect which configuration file Ansible discovers. Compare ansible-config dump --only-changed with your expectation. For a navigator card, check the execution environment image and collection paths, then run the same play with ansible-playbook. If one runner succeeds and the other fails, identify the missing input rather than memorizing only the command name.

Keep a small record for each lab: the target state, the playbook file, the inventory source, the first-run result, the second-run result, and the state after reboot. A recall answer becomes useful when you can explain those five pieces without consulting the card. This is especially valuable for roles, handlers, firewall changes, services, and mounts because a successful one-time command can hide a configuration that will not survive a clean rebuild.

Forty cards cannot cover every module parameter. Use the exam overview for scope, the core notes for context, and the practice questions to find a decision you still hesitate on. Check the live EX294 page before you book.

Continue the RHCE study path

Test what you have learned with a timed practice exam.

RHCE hub →
Available

Overview

Exam format, the current study points, and a lab plan.

Available

Core Notes

Reference notes for inventories, navigator, roles, collections, and Vault.

Available · You are here

Flashcards & Memory Notes

40 recall cards in four decks, plus memory notes for handlers, roles, and Vault.

Available

Practice Exams

300 original questions with custom exams, explanations, and a practice percentage.

Official exam sources

Use the EX294 study points to check every command and file on these cards. The recommended course page, AU294, states the product versions for that course. These cards are independent recall prompts, not official exam tasks.

RHCSA

Practice the EX200 tasks this exam still expects you to perform and to automate.

LPIC-2

Compare a vendor-neutral advanced Linux exam with this Ansible performance exam.

Apply concepts in the Scenario Workshop →