Microsoft AZ-204 Practice Exams
Last updated on Oct 22,2026- Exam Code: AZ-204
- Exam Name: Developing Solutions for Microsoft Azure
- Certification Provider: Microsoft
- Latest update: Oct 22,2026
Your company is designing an application named App1 that will use data from Azure SQL Database.
App1 will be accessed over the internet by many users.
You need to recommend a solution for improving the performance ofApp1.
What should you include in the recommendation?
- A . Azure HPC cache
- B . ExpressRoute
- C . a CON profile
- D . Azure Cache for Redis
You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an Azure Storage account. The web application makes HTTP requests to external services as part of normal operations.
The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant.
You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system.
What should you do?
- A . Create a new SpanContext with the TraceRags value set to the customer ID for the signed in user.
- B . On the current SpanContext, set the Traceld to the customer ID for the signed in user.
- C . Add the customer ID for the signed in user to the CorrelationContext in the web application.
- D . Set the header Ocp-Apim-Trace to the customer ID for the signed in user.
You are developing an Azure Durable Function to manage an online ordering process.
The process must call an external API to gather product discount information.
You need to implement Azure Durable Function.
Which Azure Durable Function types should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth ore point
- A . Orchestrator
- B . Entity
- C . Activity
- D . Client
You are developing an Azure Durable Function to manage an online ordering process.
The process must call an external API to gather product discount information.
You need to implement Azure Durable Function.
Which Azure Durable Function types should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth ore point
- A . Orchestrator
- B . Entity
- C . Activity
- D . Client
HOTSPOT
An organization deploys a blob storage account. Users take multiple snapshots of the blob storage account over time. You need to delete all snapshots of the blob storage account. You must not delete the blob storage account itself.
How should you complete the code segment? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You a web application that provides access to legal documents that are stored on Azure Blob Storage with version level immutability policies. Documents are protected with both time-based policies legal hold policies. All time―based retention policies have AllowProtectedAppendWrites property enabled.
You have a requirement to prevent the user from attempting to perform operations that would fail only a legal is in effect and when all other are expired
You reed to meet the requirement.
Which two operations you prevent?
- A . overwriting existing
- B . adding data to documents
- C . deleting documents
- D . creating document
DRAG DROP
You have an Azure Cosmos DB for NoSQL account.
You plan to develop two apps named App1 and App2 that will use the change feed functionality to track changes to containers.
App1 will use the pull model and App2 will use the push model.
You need to choose the method to track the most recently processed change in App1 and App2.
Which component should you use? To answer, drag the appropriate components to the correct apps. Each component may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

HOTSPOT
You are developing a content management application for technical manuals. The application is deployed as an Azure Static Web app.
Authenticated users can view pages under /manuals but only contributors can access the page /manuals/new html.
You need to configure the routing for the web app.
How should you complete the configuration? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You are a developer for a SaaS company that offers many web services.
All web services for the company must meet the following requirements:
✑ Use API Management to access the services
✑ Use OpenID Connect for authentication
✑ Prevent anonymous usage
A recent security audit found that several web services can be called without any authentication.
Which API Management policy should you implement?
- A . jsonp
- B . authentication-certificate
- C . check-header
- D . validate-jwt
You are building a web application that performs image analysis on user photos and returns metadata containing objects identified. The image is very costly in terms of time and compute resources. You are planning to use Azure Redis Cache so duplicate uploads do not need to be reprocessed.
In case of an Azure data center outage, metadata loss must be kept to a minimum. You need to configure the Azure Redis cache instance.
Which two actions should you perform?
- A . Configure Azure Redis with rob persistence
- B . Configure second storage account far persistence.
- C . Set backup frequency to the minimum value.
- D . Configure Azure Redis with AOF persistence


