Soru

Zorluk: KolayConfigure Azure Container Instances (ACI)

You deploy a containerized web API to Azure Container Instances (ACI). The API must run continuously to process incoming client requests. Which restart policy should you configure for the container instance?

  1. AlwaysCevap
  2. B
    Never
  3. C
    OnFailure
  4. D
    Configure the container to use an App Service Plan autoscale rule for restarts.

Cevap

Always
The correct option is 'Always'. For Azure Container Instances (ACI), the 'Always' restart policy ensures that the container is restarted automatically when it stops. This is the correct configuration for continuous workloads such as web applications and APIs.

Adım Adım Çözüm

1
Identify the workload type and availability requirement.
The workload is a web API that must run continuously to process client requests.
Uptime and continuous running are required for this scenario.
2
Determine the appropriate Azure Container Instances (ACI) restart policy.
The 'Always' policy is selected because it restarts the container automatically if it stops.
This matches the requirement for a continuous service, unlike 'Never' or 'OnFailure' which are for run-to-completion tasks.

Anahtar Kavram

Azure Container Instances restart policies
Bu soruyu puanla