AZ-204 Exam Prep Free practice test →

Free AZ-204 Practice Questions

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?

  1. Free
  2. Shared
  3. Basic
  4. 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?

  1. Fan-out/fan-in
  2. Function chaining
  3. Monitor
  4. 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?

  1. Scale up to a larger Consumption instance size
  2. Move the workload to Azure Kubernetes Service
  3. Run the functions on a Dedicated App Service plan
  4. 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?

  1. Azure Kubernetes Service (AKS)
  2. Azure App Service Web App for Containers
  3. Azure Container Instances (ACI)
  4. 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?

  1. Both bindings must be configured with the direction 'in'
  2. The Cosmos DB binding is the trigger; Service Bus is an input binding
  3. The Service Bus binding is the trigger; Cosmos DB is an output binding
  4. 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?

  1. Run 'docker build' locally and 'az acr import' the result
  2. Enable the ACR admin account and push with 'docker push'
  3. Use 'az acr build' to build the image in the registry
  4. 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?

  1. Strong
  2. Bounded staleness
  3. Session
  4. 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?

  1. Immediately weaken the account consistency level from Session down to Eventual to cut cost
  2. Change the partition key on the existing container to spread load more evenly
  3. Enable multi-region writes so the load is distributed across regions
  4. 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?

  1. Append blob
  2. Block blob
  3. Page blob
  4. 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?

  1. Archived data is offline and must be rehydrated to an online tier before reading
  2. Archive-tier blobs are automatically deleted once the 180-day minimum has elapsed
  3. The blob must first be converted from a block blob into a page blob to be read
  4. 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:

Ready for the real thing?

Practice hundreds more AZ-204 questions with instant scoring, weak-area drills, and full exam simulations.

Start the free practice test See pricing