You are deploying a multi-container group to Azure Container Instances (ACI) using a YAML file. The group contains two containers:
- `app-container`: A web application that pulls its image from a private Azure Container Registry (ACR) named `myregistry.azurecr.io` and retrieves a database connection string from Azure Key Vault at runtime.
- `sidecar-container`: A logging utility that shares a local directory with `app-container` to read its log files.
You must ensure that the container group can authenticate to the private ACR to pull the images, `app-container` can authenticate to Azure Key Vault using a managed identity, and the two containers can share the log directory.
Which three of the following configuration steps or blocks must you include in the YAML configuration or deployment process? (Select THREE)
- Define a user-assigned managed identity in the root identity block and reference its resource ID under the imageRegistryCredentials block in the YAML file.Cevap
- Define a volume of type emptyDir in the volumes list at the container group level, and configure volumeMounts in both container definitions pointing to the shared directory.Cevap
- Assign the Key Vault Secrets User role (or configure a Key Vault access policy with Get permission) for the managed identity to access the Key Vault secrets.Cevap
- DConfigure a system-assigned managed identity in the identity block and reference it in the imageRegistryCredentials block to pull the image from the private ACR.
- EAdd the Key Vault secret name and value directly as environment variables in the YAML file's environmentVariables block under app-container properties.
- FRun the az acr login --name myregistry command on your local machine prior to deploying the YAML file to authenticate the ACI service for image pulling.