An administrator is deploying a multi-container group to Azure Container Instances (ACI) using an Azure Resource Manager (ARM) template. The group contains an application container that runs a continuous processing service and a sidecar container that collects and processes local logs. The deployment must meet the following requirements:
- The container group must reside within an existing Azure Virtual Network (VNet) inside a dedicated subnet.
- The application container must write logs to a shared directory that the sidecar container can access.
- Both containers must be restarted automatically if the application container fails.
Which of the following configurations must be defined in the template to successfully deploy this container group? (Select TWO)
- Delegate the VNet subnet to Microsoft.ContainerInstance/containerGroups and ensure that no public IP addresses or DNS name labels are configured for the container group.Answer
- Define an emptyDir volume in the container group properties, and define volume mounts referencing this volume in both container definitions.Answer
- CSet the restartPolicy property to Always inside each container's definition block to ensure that both containers restart individually upon failure.
- DAssign distinct private IP addresses to each container within the network profile to enable port-based communication over the delegated subnet.