hardmulti selectObjective-mapped

A build pipeline starts a Linux container once per request. Each run lasts about 12 minutes, never needs inbound connections, and should not leave an always-on server running afterward. Which two configuration choices best fit Azure Container Instances? Select two.

Question 1hardmulti select
Full question →

A build pipeline starts a Linux container once per request. Each run lasts about 12 minutes, never needs inbound connections, and should not leave an always-on server running afterward. Which two configuration choices best fit Azure Container Instances? Select two.

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

Best answer

Use Azure Container Instances for the workload.

Correct. ACI is designed for short-lived container runs without managing hosts or clusters.

B

Best answer

Set the container group's restart policy to Never.

Correct. A one-shot workload should stop after completion instead of restarting like a service.

C

Distractor review

Create an App Service plan with deployment slots.

Incorrect. Deployment slots are an App Service feature for web app deployments, not batch containers.

D

Distractor review

Use a virtual machine scale set to host the container.

Incorrect. VM scale sets still require VM management, which the requirement explicitly wants to avoid.

E

Distractor review

Place the workload in an availability set for host protection.

Incorrect. Availability sets provide VM resilience, but they do not remove server management overhead.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

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?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: Use Azure Container Instances for the workload. — The workload is a finite container job, not a persistent service. Azure Container Instances is the right host because it runs containers without managing VMs, clusters, or orchestration infrastructure. Setting the restart policy to Never matches the job’s one-and-done behavior, so the container stops after completion instead of relaunching like a service. That combination keeps the operational model simple and cost effective. Why others are wrong: App Service deployment slots are for web app release management, not a short-lived batch container. A VM scale set still introduces operating system and host management. An availability set only improves VM resilience; it does not give the serverless, ephemeral execution model that the scenario requires.

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.