AZ-204 Azure Compute Solutions 2 — Questions and Answers
Question 1: Which Azure service allows you to run containerized workloads without managing Kubernetes infrastructure?
- Azure Kubernetes Service
- Azure Container Instances (Correct answer)
- Azure Service Fabric
- Azure Batch
Correct answer: Azure Container Instances
Azure Container Instances (ACI) lets you run containers on-demand without provisioning or managing any underlying VM or orchestration infrastructure.
Question 2: How do you configure an Azure Function to run on a schedule every 5 minutes?
- Use an HTTP trigger with a 5-minute retry
- Use a Timer trigger with CRON expression '0 */5 * * * *' (Correct answer)
- Use a Queue trigger with visibility timeout of 5 minutes
- Use an Event Grid trigger with 5-minute batching
Correct answer: Use a Timer trigger with CRON expression '0 */5 * * * *'
A Timer trigger with the NCRONTAB expression `0 */5 * * * *` fires the function every 5 minutes.
Question 3: Which feature of Azure App Service lets you test routing to a new version of your app by sending a percentage of traffic to a staging slot?
- A/B testing with Application Insights
- Traffic Manager weighted routing
- Testing in production (slot traffic routing) (Correct answer)
- Azure Front Door origin groups
Correct answer: Testing in production (slot traffic routing)
App Service's 'Testing in production' feature routes a configurable percentage of live traffic to a non-production deployment slot.
Question 4: What must you configure on an Azure App Service to allow it to access an Azure Virtual Network resource privately?
- Service endpoint
- VNet Integration (Correct answer)
- Private DNS zone
- ExpressRoute gateway
Correct answer: VNet Integration
VNet Integration enables outbound connections from an App Service to resources inside an Azure Virtual Network.
Question 5: Which Durable Functions pattern is best suited for fan-out/fan-in scenarios where multiple parallel activities must complete before proceeding?
- Chaining pattern
- Fan-out/fan-in pattern using Task.WhenAll (Correct answer)
- Monitor pattern
- Async HTTP API pattern
Correct answer: Fan-out/fan-in pattern using Task.WhenAll
The fan-out/fan-in pattern uses `Task.WhenAll` in the orchestrator to launch multiple activity functions in parallel and aggregate their results.
Question 6: What property in an Azure Function's function.json specifies the connection string setting name for a Queue Storage trigger?
- storageAccount
- connection (Correct answer)
- connectionString
- queueStorage
Correct answer: connection
The `connection` property in function.json references an app setting name that holds the Storage connection string for the Queue trigger.
Which Azure service allows you to run containerized workloads without managing Kubernetes infrastructure?