Microsoft AZ-204 Practice Exams
Last updated on Oct 23,2026- Exam Code: AZ-204
- Exam Name: Developing Solutions for Microsoft Azure
- Certification Provider: Microsoft
- Latest update: Oct 23,2026
You are developing an Azure Function that calls external APIs by providing an access token for the API. The access token is stored in a secret named token in an Azure Key Vault named mykeyvault.
You need to ensure the Azure Function can access to the token.
Which value should you store in the Azure Function App configuration?
A)
![]()
B)
![]()
C)
![]()
D)
![]()
- A . Option A
- B . Option B
- C . Option C
- D . Option D
You are developing an Azure Function that calls external APIs by providing an access token for the API. The access token is stored in a secret named token in an Azure Key Vault named mykeyvault.
You need to ensure the Azure Function can access to the token.
Which value should you store in the Azure Function App configuration?
A)
![]()
B)
![]()
C)
![]()
D)
![]()
- A . Option A
- B . Option B
- C . Option C
- D . Option D
HOTSPOT
You need to configure Azure Service Bus to Event Grid integration.
Which Azure Service Bus settings should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

HOTSPOT
YOU need to reliably identify the delivery driver profile information.
How should you configure the system? To answer, select the appropriate options in the answer area.
NOTE Each correct selection is worth one point.

HOTSPOT
You need to correct the errors for farmers and distributors.
Which solution should you use? To answer, select the appropriate options in the answer area NOTE: Each correct selection is worth one point.

HOTSPOT
You are configuring a development environment for your team. You deploy the latest Visual Studio image from the Azure Marketplace to your Azure subscription.
The development environment requires several software development kits (SDKs) and third-party components to support application development across the organization. You install and customize the deployed virtual machine (VM) for your development team. The customized VM must be saved to allow provisioning of a new team member development environment.
You need to save the customized VM for future provisioning.
Which tools or services should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You need to access data from the user claim object in the e-commerce web app.
What should you do first?
- A . Write custom code to make a Microsoft Graph API call from the e-commerce web app.
- B . Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.
- C . Update the e-commerce web app to read the HTTP request header values.
- D . Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.
You are developing a medical records document management website. The website is used to store scanned copies of patient intake forms. If the stored intake forms are downloaded from storage by a third party, the content of the forms must not be compromised.
You need to store the intake forms according to the requirements.
Solution:
✑ Create an Azure Cosmos DB database with Storage Service Encryption enabled.
✑ Store the intake forms in the Azure Cosmos DB database.
Does the solution meet the goal?
- A . Yes
- B . No
HOTSPOT
You are developing an application that includes two Docker containers.
The application must meet the following requirements
✑ The containers must not run as root.
✑ The containers must be deployed to Azure Container Instances by using a YAML file.
✑ The containers must share a lifecycle, resources, local network and storage volume.
✑ The storage volume must persist through container crashes.
✑ The storage volume must be destroyed on stop or restart of the containers.
You need to configure Azure Container Instances for the application.

you need to reduce read latency for the retail store solution.
What are two possible ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A . Create a new composite index for the store location data queries in Azure Cosmos DB. Modify the queries to support parameterized SQL and update the Azure function app to call the new Queries.
- B . Configure Azure Cosmos DB consistency to strong consistency Increase the RUs for the container supporting store location data.
- C . Provision an Azure Cosmos OB dedicated gateway, update blob storage to use the new dedicated gateway endpoint.
- D . Configure Azure Cosmos DB consistency to session consistency. Cache session tokens in a new Azure Redis cache instance after every write. Update reads to use the session token stored in Azure Redis.
- E . Provision an Azure Cosmos DB dedicated gateway Update the Azure Function app connection string to use the new dedicated gateway endpoint.


