Azure Container Apps · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions

You run version 1 of an API in an Azure Container App. You want to deploy version 2, send 10 percent of requests to version 2 for validation, and kee…

Practice question from Azure Container Apps (AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions), with the correct answer and a step-by-step solution.

medium · MCQ · Q-26E64B

You run version 1 of an API in an Azure Container App. You want to deploy version 2, send 10 percent of requests to version 2 for validation, and keep 90 percent on version 1. Which approach should you use?

  1. A.Use single revision mode and increase the replica count of version 2.
  2. B.Use multiple revision mode, deploy version 2 as a new revision, and assign traffic weights of 90 percent and 10 percent to the two revisions.Correct answer
  3. C.Create a separate container app for version 2 and configure both apps to use the same container port.
  4. D.Deploy version 2 as a new replica in the existing revision and configure autoscaling to 10 percent.

Solution

Multiple revision mode allows multiple revisions to remain active simultaneously. Traffic weights can then distribute requests between revisions, enabling canary or blue-green deployments. Replica counts and autoscaling do not split traffic between application versions.

More from Azure Container Apps

All of Azure Container Apps

Practise more Develop Azure Compute Solutions

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed