Soru

Zorluk: OrtaConfigure Azure Container Instances (ACI)

You plan to deploy a containerized application to Azure Container Instances (ACI). The application consists of a single container that processes incoming image files from an Azure storage account and then terminates. If the processing fails, the container must attempt to restart. If it succeeds, the container must not run again. The ACI deployment must be integrated into an Azure Virtual Network named VNet1. Which of the following configuration options should you select? (Select TWO).

  1. Set the restart policy of the container group to OnFailure.Cevap
  2. Deploy the container group into a subnet delegated to Microsoft.ContainerInstance/containerGroups.Cevap
  3. C
    Set the restart policy of the container group to Always.
  4. D
    Set the restart policy of the container group to Never.

Cevap

To meet the requirements, configure the container group with a restart policy of OnFailure and deploy it to a subnet delegated to Microsoft.ContainerInstance/containerGroups.
The correct configurations are setting the restart policy of the container group to OnFailure and deploying the container group into a subnet delegated to Microsoft.ContainerInstance/containerGroups. The OnFailure restart policy guarantees that the container will attempt to restart if the execution fails (non-zero exit code), but will remain stopped upon successful execution (zero exit code). Additionally, integrating ACI with a virtual network requires deploying the container group into a subnet delegated to the Microsoft.ContainerInstance/containerGroups service.

Adım Adım Çözüm

1
Analyze the workload's lifecycle requirements.
The container executes a task and terminates. It must restart on failure but must not restart on success. This behavior corresponds to the OnFailure restart policy.
Choosing the correct restart policy prevents infinite execution loops for run-to-completion workloads.
2
Determine the virtual network integration requirements for ACI.
To deploy ACI into an existing virtual network, a subnet must be delegated to the Microsoft.ContainerInstance/containerGroups resource provider.
Subnet delegation is a prerequisite for ACI to provision network interfaces in your virtual network.

Anahtar Kavram

Configuring ACI restart policies (Always, Never, OnFailure) and virtual network integration via subnet delegation.
Bu soruyu puanla