Microsoft Certification Azure Developer Associate (AZ-204) 1 — Questions and Answers
Question 1: Which Azure service allows you to run event-driven code without managing server infrastructure?
- Azure App Service
- Azure Functions (Correct answer)
- Azure Kubernetes Service
- Azure Batch
Correct answer: Azure Functions
Azure Functions is a serverless compute service that runs code in response to triggers without requiring server provisioning or management.
Question 2: What is the purpose of the Azure App Service Plan?
- Defines the billing plan for Azure subscriptions
- Defines the region, features, and compute resources for hosting App Service apps (Correct answer)
- Configures DNS for web applications
- Manages SSL certificates for Azure apps
Correct answer: Defines the region, features, and compute resources for hosting App Service apps
An App Service Plan specifies the compute resources (size, OS) and region that your App Service web apps, API apps, or function apps run on.
Question 3: Which Azure Cosmos DB consistency level provides the strongest consistency guarantees?
- Eventual
- Session
- Bounded Staleness
- Strong (Correct answer)
Correct answer: Strong
Strong consistency in Cosmos DB guarantees that reads always return the most recently committed write, but comes with higher latency and lower availability.
Question 4: What is the primary use case for Azure Service Bus?
- Storing binary files
- Reliable messaging between decoupled applications and services (Correct answer)
- Hosting containerized apps
- Running batch compute workloads
Correct answer: Reliable messaging between decoupled applications and services
Azure Service Bus is a fully managed enterprise message broker that decouples applications with queues and publish/subscribe topics.
Question 5: Which HTTP status code does Azure API Management return when a request exceeds a rate limit policy?
- 401 Unauthorized
- 403 Forbidden
- 429 Too Many Requests (Correct answer)
- 503 Service Unavailable
Correct answer: 429 Too Many Requests
When a rate limit is exceeded in Azure API Management, it returns HTTP 429 Too Many Requests to inform the caller to slow down.
Question 6: What does Azure Container Registry (ACR) store?
- Log data from containerized apps
- Docker and OCI container images and Helm charts (Correct answer)
- Container runtime metrics
- Kubernetes cluster configurations
Correct answer: Docker and OCI container images and Helm charts
Azure Container Registry is a private registry service for storing and managing Docker container images and Helm charts for Azure deployments.
Which Azure service allows you to run event-driven code without managing server infrastructure?