Soru

Zorluk: KolayDeploy and Configure Azure Container Apps

You are deploying a new version of a microservice to Azure Container Apps. You want to test the new version by routing 20 percent of the public HTTP traffic to it, while the remaining 80 percent continues to go to the current version. Which two configurations must you apply to the Container App to enable this traffic-splitting behavior?

  1. Set the active revisions mode of the Container App to Multiple.Cevap
  2. Configure the traffic weight block in the ingress settings to specify the revision names and their respective percentages.Cevap
  3. C
    Enable a system-assigned managed identity on the Container App to authorize traffic routing rules.
  4. D
    Grant the Container App's identity GET permissions on an Azure Key Vault secret containing the routing configuration.

Cevap

To split traffic, the Container App's active revisions mode must be set to Multiple, and traffic weights must be configured in the ingress settings to allocate percentages to specific revisions.
Setting the active revisions mode to Multiple allows multiple versions of the container app to run simultaneously. The ingress configuration's traffic block is where weight percentages are assigned to individual revisions to split incoming traffic. Together, these configurations enable the required traffic-splitting behavior.

Adım Adım Çözüm

1
Change the revisions mode configuration.
The activeRevisionsMode property is set to Multiple, enabling the Container App to run and route traffic to more than one revision at a time.
By default, the revisions mode is Single, which limits traffic to only the newest revision.
2
Configure the ingress traffic weights.
The ingress traffic array is populated with weight distributions (e.g., 20% for the new revision and 80% for the existing revision).
This tells the environment's ingress controller exactly how to route incoming HTTP requests.

Anahtar Kavram

Azure Container Apps Revision Modes and Ingress Traffic Splitting
Tahmini Süre:1m 0s
Bu soruyu puanla