easymultiple choiceObjective-mapped

A container group runs a one-time import task and should stop after the task completes successfully. Which restart policy should you use?

Question 1easymultiple choice
Full question →

A container group runs a one-time import task and should stop after the task completes successfully. Which restart policy should you use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Always

This would restart the container every time it exits, which is not suitable for a one-time job.

B

Distractor review

OnFailure

This restarts only after failure, but the question asks for the policy that stops after a successful one-time run.

C

Best answer

Never

Never lets the container run once and then stop, which fits a batch or import task that should not restart.

D

Distractor review

Manual

Manual is not a valid Azure Container Instances restart policy, so it cannot be selected.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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.

Related practice questions

Related AZ-104 practice-question pages

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

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Never — Never is the best restart policy for a one-time task in Azure Container Instances when you want the container to run once and then stop. That behavior matches batch processing or import jobs that should not restart automatically after completion. It keeps the container from relaunching after success, which is exactly what the scenario requires. Why others are wrong: Always is for continuously running workloads, so it would keep restarting the job. OnFailure can still restart after errors, which is unnecessary for a simple one-time import. Manual is not a valid Azure Container Instances restart policy, so it is not an available configuration choice.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.