You are deploying different containerized workloads to Azure Container Instances (ACI). Match each workload execution requirement to the most appropriate container restart policy.
- A continuous web server that must remain running and restart automatically if it crashes or stops.Always
- A data migration task that runs to completion once, but must retry if the process terminates with an error.OnFailure
- A one-time setup script that should execute only once and must never be restarted under any circumstance.Never
Answer
Continuous web server matches with Always restart policy; data migration task matches with OnFailure restart policy; one-time setup script matches with Never restart policy.
The correct matches align the execution patterns with their corresponding ACI restart policies. A continuous web server aligns with Always to maintain availability. A batch processing migration that should retry only on error aligns with OnFailure. A script that must run once and never rerun under any condition aligns with Never.
Step-by-Step Solution
Key Concept
Azure Container Instances supports restart policies (Always, Never, and OnFailure) that determine whether containers restart when their execution terminates.