An administrator is deploying a containerized analytics application to Azure Container Instances (ACI). The application consists of a single container that must run a batch-processing script daily.
The deployment must meet the following requirements:
- The container must access an Azure SQL database over a private endpoint located in a subnet named SQLSubnet within a virtual network named VNet1.
- The container must retrieve database credentials securely from Azure Key Vault without storing them in the container image or deployment configuration files.
- The container must terminate and stop consuming compute resources once the script completes successfully, but must restart if the script fails.
You create a new subnet named AppSubnet in VNet1 for the container group.
Which configuration settings should you apply to the container group and AppSubnet?
- Delegate AppSubnet to Microsoft.ContainerInstance/containerGroups, set the container group restart policy to OnFailure, and configure the container group with a system-assigned managed identity to authenticate to Azure Key Vault.Cevap
- BDelegate AppSubnet to Microsoft.ContainerInstance/containerGroups, set the container group restart policy to Always, and configure the container group with a system-assigned managed identity to authenticate to Azure Key Vault.
- CDelegate AppSubnet to Microsoft.Web/serverFarms, set the container group restart policy to OnFailure, and store the database credentials as standard environment variables in the container group deployment files.
- DDelegate AppSubnet to Microsoft.ContainerInstance/containerGroups, set the container group restart policy to Never, and configure the container group with a system-assigned managed identity to authenticate to Azure Key Vault.