An administrator is configuring a daily database backup utility using Azure Container Instances (ACI). The utility consists of a single container that connects to a database, exports the data, uploads it to an Azure Blob Storage container, and then terminates.
The backup script is designed to return an exit code of on success, and a non-zero exit code if the upload fails due to transient network issues. If the upload fails, the utility must automatically attempt to rerun the backup. To avoid unnecessary costs, the container must not run after a successful backup.
The administrator deploys the container instance using the default configuration settings. However, they notice that the container group continuously restarts and runs the backup script in an infinite loop, even when the upload succeeds.
Which of the following modifications should the administrator make to achieve the desired behavior?
- Change the restart policy of the container group to OnFailureCevap
- BChange the restart policy of the container group to Never
- CConfigure a container lifecycle hook to stop the container group after the backup script exits
- DDeploy the container group inside a virtual network and configure a custom route table to terminate the connection