Soru

Zorluk: OrtaConfigure Azure Container Instances (ACI)

An administrator needs to deploy a containerized application to Azure Container Instances (ACI) to run a one-time data migration script. The application will perform the migration and then exit. The container group must be deployed into an Azure virtual network to access a private database. Which configuration should the administrator use for the deployment?

  1. A
    Set the restart policy to Always, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.
  2. B
    Set the restart policy to Never, and assign the Storage Blob Data Contributor role to the target subnet.
  3. Set the restart policy to Never, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.Cevap
  4. D
    Set the restart policy to Never, and link the target virtual network to an Azure Private DNS Zone.

Cevap

Set the restart policy to Never, and deploy the container group to a subnet delegated to Microsoft.ContainerInstance/containerGroups.
For a one-time task that executes a script and exits, the restart policy must be set to Never (or OnFailure) to prevent the container from restarting continuously. Additionally, deploying Azure Container Instances (ACI) into an Azure virtual network requires deploying the container group into a dedicated subnet delegated to Microsoft.ContainerInstance/containerGroups.

Adım Adım Çözüm

1
Determine the appropriate restart policy for a one-time migration task.
The restart policy must be set to Never or OnFailure so that the container does not restart indefinitely upon successful completion.
Using Always would cause ACI to continuously restart the container after the script finishes, wasting compute resources.
2
Determine the network requirements for deploying Azure Container Instances into a virtual network.
The destination subnet must be dedicated to ACI and delegated to the Microsoft.ContainerInstance/containerGroups service.
Azure requires subnet delegation to allow the container group to be injected into the virtual network and receive private IP addresses.

Anahtar Kavram

Azure Container Instances virtual network deployment and restart policy configuration
Tahmini Süre:1m 30s
Bu soruyu puanla