Question 428 of 518
Implement advanced Ansible automationhardMultiple ChoiceObjective-mapped

EX294 Implement advanced Ansible automation Practice Question

This EX294 practice question tests your understanding of implement advanced ansible automation. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An Ansible playbook that deploys a web application includes a task that uses the `uri` module to call an external API. The task occasionally fails due to API rate limiting. Which combination of keywords should be added to the task to automatically retry up to 5 times with a 30-second delay between attempts, and only fail if all retries are exhausted?

Question 1hardmultiple choice
Read the full Ansible explanation →

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

`register: result`, `until: result.status == 200`, `retries: 5`, `delay: 30`

Option B is correct because it combines `register` to capture the API response, `until` to check that `result.status` equals 200 (the HTTP success code), `retries: 5` to attempt the task up to five times, and `delay: 30` to wait 30 seconds between retries. This ensures the task only fails after all five retries are exhausted, which is the exact behavior needed to handle transient API rate limiting.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • `register: result`, `until: status == 200`, `retries: 5`, `delay: 30`

    Why it's wrong here

    The `until` condition should reference the registered variable, e.g., `result.status`, not just `status`.

  • `register: result`, `until: result.status == 200`, `retries: 5`, `delay: 30`

    Why this is correct

    Correctly registers the result, retries until status 200, with 5 retries and 30-second delay.

    Related concept

    Read the scenario before looking for a memorised answer.

  • `until: result.status == 200`, `retries: 5`, `delay: 30`

    Why it's wrong here

    Missing `register: result`, so `result` is undefined.

  • `register: result`, `retries: 5`, `delay: 30`

    Why it's wrong here

    Missing `until`, so the task will not retry based on condition; it would only run once.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Red Hat often tests the requirement that `register` must be used with `until` to reference the captured result, and that `retries`/`delay` are meaningless without `until` — candidates frequently omit `register` or forget to prefix the variable with `result.` in the condition.

Detailed technical explanation

How to think about this question

The `uri` module returns a dictionary with keys like `status`, `json`, and `headers`; `register` stores this dictionary in a variable (e.g., `result`), which `until` then evaluates. The `retries` and `delay` keywords are only honored when `until` is defined — without it, they are ignored. In real-world scenarios, API rate limiting often returns HTTP 429 (Too Many Requests) or 503 (Service Unavailable), so checking for `status == 200` is a common pattern, but you could also check for a specific JSON field like `result.json.success == true`.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related EX294 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free EX294 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this EX294 question test?

Implement advanced Ansible automation — This question tests Implement advanced Ansible automation — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: `register: result`, `until: result.status == 200`, `retries: 5`, `delay: 30` — Option B is correct because it combines `register` to capture the API response, `until` to check that `result.status` equals 200 (the HTTP success code), `retries: 5` to attempt the task up to five times, and `delay: 30` to wait 30 seconds between retries. This ensures the task only fails after all five retries are exhausted, which is the exact behavior needed to handle transient API rate limiting.

What should I do if I get this EX294 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.