10 free, exam-style Microsoft Certified: Azure Developer Associate (AZ-204) (AZ-204) practice questions with answers and
explanations. No signup required. Work through them below, then take the
full free AZ-204 practice test to study every exam domain.
These 10 free AZ-204 questions are organized by exam domain, so you can see how each part of the Microsoft Certified: Azure Developer Associate (AZ-204) blueprint is tested. Reveal the answer and explanation under each question.
Domain 1: Develop Azure compute solutions (25-30%)
Question 1
A team deploys a web app to a production slot and wants zero-downtime releases with the ability to instantly roll back a bad deployment. They deploy the new build to a 'staging' slot and then swap. Which App Service plan tier is the MINIMUM required to use deployment slots?
- Free
- Shared
- Basic
- Standard
Show answer & explanation
Correct answer: D - Standard
Question 2
An orchestration must download 5,000 images and, for each one, call an independent activity function to generate a thumbnail. All thumbnails should be produced in parallel and the orchestrator must wait for every result before writing a summary. Which Durable Functions application pattern does this describe?
- Fan-out/fan-in
- Function chaining
- Monitor
- Async HTTP APIs
Show answer & explanation
Correct answer: A - Fan-out/fan-in
Question 3
A function app on the Consumption plan intermittently suffers latency spikes from cold starts, and it now needs virtual network integration to reach a private backend. The team wants to keep serverless-style scaling but eliminate cold starts with pre-warmed instances. Which hosting plan should they choose?
- Scale up to a larger Consumption instance size
- Move the workload to Azure Kubernetes Service
- Run the functions on a Dedicated App Service plan
- Premium (Elastic Premium) plan
Show answer & explanation
Correct answer: D - Premium (Elastic Premium) plan
Question 4
A developer needs to run a single, short-lived container to process a nightly batch job. The container should start quickly, run to completion, and incur no cost when idle. There is no need for orchestration, load balancing, or service discovery. Which service is the BEST fit?
- Azure Kubernetes Service (AKS)
- Azure App Service Web App for Containers
- Azure Container Instances (ACI)
- Azure Container Registry (ACR)
Show answer & explanation
Correct answer: C - Azure Container Instances (ACI)
Question 5
In Azure Functions, a single function reads a message from a Service Bus queue when it arrives, then writes a new document to Azure Cosmos DB. Which statement correctly describes the binding configuration?
- Both bindings must be configured with the direction 'in'
- The Cosmos DB binding is the trigger; Service Bus is an input binding
- The Service Bus binding is the trigger; Cosmos DB is an output binding
- The function has two triggers, one per service
Show answer & explanation
Correct answer: C - The Service Bus binding is the trigger; Cosmos DB is an output binding
Question 6
A CI pipeline must build a Docker image and publish it to Azure Container Registry, but the build agents do not have a Docker daemon installed and the team does not want to manage build VMs. Which approach accomplishes this?
- Run 'docker build' locally and 'az acr import' the result
- Enable the ACR admin account and push with 'docker push'
- Use 'az acr build' to build the image in the registry
- Deploy the image with 'az container create'
Show answer & explanation
Correct answer: C - Use 'az acr build' to build the image in the registry
Domain 2: Develop for Azure storage (15-20%)
Question 7
A shopping-cart service running in a single Azure region must guarantee that after a user updates their cart, that same user always reads their own most recent write, and reads never appear out of order. The team wants the lowest request-unit cost that still meets this requirement. Which Cosmos DB consistency level should they select?
- Strong
- Bounded staleness
- Session
- Eventual
Show answer & explanation
Correct answer: C - Session
Question 8
During a traffic surge, an application's Cosmos DB calls begin returning HTTP 429 responses and some writes fail. What is the MOST appropriate first response?
- Immediately weaken the account consistency level from Session down to Eventual to cut cost
- Change the partition key on the existing container to spread load more evenly
- Enable multi-region writes so the load is distributed across regions
- Honor the x-ms-retry-after-ms header on retry, and raise provisioned RU/s if it persists
Show answer & explanation
Correct answer: D - Honor the x-ms-retry-after-ms header on retry, and raise provisioned RU/s if it persists
Question 9
Compliance requires that server access logs be written to Blob Storage such that the application only ever appends new entries to the end of an existing log blob, never overwriting earlier content. Which blob type is designed for this pattern?
- Append blob
- Block blob
- Page blob
- Premium block blob
Show answer & explanation
Correct answer: A - Append blob
Question 10
Financial records are moved to the Archive access tier for long-term retention. An auditor now requests a specific record and the application attempts to read the blob directly, but the read fails. Why?
- Archived data is offline and must be rehydrated to an online tier before reading
- Archive-tier blobs are automatically deleted once the 180-day minimum has elapsed
- The blob must first be converted from a block blob into a page blob to be read
- Reading requires enabling read-access geo-redundant storage on the account
Show answer & explanation
Correct answer: A - Archived data is offline and must be rehydrated to an online tier before reading
The rest of the AZ-204 blueprint
The AZ-204 exam also covers these domains. Drill them in the full free practice test:
- Domain 3: Implement Azure security (15-20%)
- Domain 4: Monitor, troubleshoot, and optimize Azure solutions (5-10%)
- Domain 5: Connect to and consume Azure services and third-party services (20-25%)