You are deploying a containerized batch-processing utility to Azure Container Instances (ACI). The utility has the following requirements:
- It must run to completion, processing objects from an Azure storage queue.
- If the utility encounters an error during execution and terminates with a non-zero exit code, it must attempt to restart and run again.
- Once the utility completes processing successfully, it must shut down and not restart.
- The ACI container group must run inside a private virtual network named VNet1.
Which of the following configuration options should you select to meet these requirements? (Select TWO.)
- Set the restart policy of the container group to OnFailure.Answer
- Deploy the container group into a subnet in VNet1 delegated to Microsoft.ContainerInstance/containerGroups.Answer
- CSet the restart policy of the container group to Always.
- DSet the restart policy of the container group to Never.
- EDeploy the container group into a subnet in VNet1 delegated to Microsoft.Web/serverFarms.
Answer
Select the restart policy of the container group to OnFailure, and deploy the container group into a subnet in VNet1 delegated to Microsoft.ContainerInstance/containerGroups.
The requirement for the container to restart only on failure indicates that the OnFailure restart policy must be chosen. For integrating the ACI deployment into a private virtual network, Azure Container Instances requires a dedicated subnet that is explicitly delegated to the Microsoft.ContainerInstance/containerGroups service resource type.
Step-by-Step Solution
Key Concept
Configuring restart policies and virtual network integration for Azure Container Instances (ACI).
Estimated Time:2m 0s