mediummultiple choiceObjective-mapped

A container group runs a nightly processing job in Azure Container Instances. The job should exit after completing successfully and should not restart automatically. Which restart policy should you configure?

Question 1mediummultiple choice
Full question →

A container group runs a nightly processing job in Azure Container Instances. The job should exit after completing successfully and should not restart automatically. Which restart policy should you configure?

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

Always restarts the container whenever it exits, which is wrong for a one-time batch job.

B

Best answer

Never

Never lets the container exit and stay stopped, which matches a completed batch workload.

C

Distractor review

OnFailure

OnFailure can restart after errors, but the scenario asks for no automatic restart at all.

D

Distractor review

Automatic

Automatic is not an Azure Container Instances restart policy, so it is not a valid selection.

Common exam trap

Common exam trap: ACLs stop at the first match

ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.

Technical deep dive

How to think about this question

ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.

KKey Concepts to Remember

  • Standard ACLs match source addresses.
  • Extended ACLs can match source, destination, protocol and ports.
  • The first matching ACL entry is used.
  • There is usually an implicit deny at the end.

TExam Day Tips

  • Check inbound versus outbound direction.
  • Read the ACL from top to bottom.
  • Look for a broader permit or deny above the intended line.

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?

Standard ACLs match source addresses.

What is the correct answer to this question?

The correct answer is: Never — For a batch-style container that should run once and then stop, the Never restart policy is the best fit. It allows the process to finish and remain stopped after completion, which matches nightly processing or one-off job behavior. Using Always would cause unnecessary restarts, and OnFailure would still permit restart behavior when the container exits with an error. Why others are wrong: Always is appropriate for continuously running services, not for job-style workloads. OnFailure is useful when you want retries on nonzero exit codes, but the requirement here is to avoid automatic restarts entirely. Automatic is not a valid ACI restart policy, so it cannot be configured.

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.