AZ-204 Azure Compute Solutions 1 — Questions and Answers
Question 1: Which Azure App Service plan supports automatic scaling based on HTTP request metrics?
- Free
- Shared
- Standard (Correct answer)
- Basic
Correct answer: Standard
The Standard plan and above support autoscale rules based on metrics like HTTP queue length and CPU percentage.
Question 2: What is the maximum execution timeout for an Azure Function running on the Consumption plan?
- 5 minutes
- 10 minutes (Correct answer)
- 30 minutes
- 60 minutes
Correct answer: 10 minutes
Azure Functions on the Consumption plan have a default timeout of 5 minutes and a maximum configurable timeout of 10 minutes.
Question 3: Which deployment slot feature allows you to swap a staging slot with production without any downtime?
- Blue-green deployment
- Slot swap (Correct answer)
- Rolling update
- Canary release
Correct answer: Slot swap
Azure App Service slot swap atomically exchanges routing between two slots, enabling zero-downtime deployments.
Question 4: Which Azure Container Registry SKU supports geo-replication?
- Basic
- Standard
- Premium (Correct answer)
- Free
Correct answer: Premium
Only the Premium SKU of Azure Container Registry supports geo-replication across multiple Azure regions.
Question 5: What Azure CLI command deploys a container image from Azure Container Registry to Azure Container Instances?
- az aci create
- az container create (Correct answer)
- az acr deploy
- az aks deploy
Correct answer: az container create
The `az container create` command provisions a new Azure Container Instances group from a specified container image.
Question 6: Which setting in host.json controls the maximum number of concurrent executions per Azure Functions instance?
- maxConcurrentCalls (Correct answer)
- functionTimeout
- maxOutstandingRequests
- maxConcurrentActivities
Correct answer: maxConcurrentCalls
The `maxConcurrentCalls` property in host.json limits how many function invocations run simultaneously on a single instance.
Which Azure App Service plan supports automatic scaling based on HTTP request metrics?