An administrator needs to deploy a containerized script to Azure Container Instances (ACI) that performs a one-time database backup. The script must run, complete the backup, and then stop. If the backup process fails, the container must attempt to run again. Which restart policy should the administrator configure for the container group?
- OnFailureCevap
- BAlways
- CNever
- DUnless-Stopped
Cevap
OnFailure
The correct answer is the restart policy that ensures the container runs to completion, stops upon success, and restarts only when a failure is encountered. In Azure Container Instances, this behavior is controlled by the 'OnFailure' restart policy.
Adım Adım Çözüm
Anahtar Kavram
Configuring the restart policy for Azure Container Instances (ACI) based on workload requirements.