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?
- A.Use single revision mode and increase the replica count of version 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
- C.Create a separate container app for version 2 and configure both apps to use the same container port.
- 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
- You deploy an Azure Container App whose web process listens on container port 8080. Users on the internet must access the application throu…
- A workload must process messages from an Azure Service Bus queue. Each execution should run a finite containerized task, and the workload s…
- An Azure Container App needs a database connection string. The connection string must not be stored in the container image or supplied as p…
- You have two Azure Container Apps in the same Container Apps environment. One app provides an internal API that must be callable by other a…
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 freeFree to start · No credit card needed