Free Practice · No Signup Required
30 Free Azure AZ-204 Practice Questions
Real practice questions for the Azure Azure Developer Associate (AZ-204) exam, with answers and detailed explanations. Updated 2026.
Free questions
30
Passing score
700 out of 1000
Exam time
100 minutes
Question pool
220+ Questions
Below are 30 real practice questions for the Azure Azure Developer Associate (AZ-204) exam. Each question shows the correct answer and a detailed explanation when you reveal it. Use these to benchmark your readiness — if you score below 70% on these 30 questions, plan for at least 4 more weeks of study before booking.
AZ-204 Practice Questions
- FreePracticeQuiz.questionLabelApp ServicesYou are implementing a software as a service (SaaS) ASP.NET Core web service that will run as an Azure Web App. The web service will use an on-premises SQL Server database for storage. The web service also includes a WebJob that processes data updates. Four customers will use the web service. Each instance of the WebJob processes data for a single customer and must run as a singleton instance. Each deployment must be tested by using deployment slots prior to serving production data. Azure costs must be minimized. Azure resources must be located in an isolated network. You need to configure the App Service plan for the Web App. How should you configure the App Service plan? ANumber of VM instances: 2. Pricing tier: Isolated.BNumber of VM instances: 8. Pricing tier: Standard.CNumber of VM instances: 16. Pricing tier: Premium.DNumber of VM instances: 4. Pricing tier: Isolated.ENumber of VM instances: 4. Pricing tier: Consumption.
- FreePracticeQuiz.questionLabelComputeYou are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs on an Azure Function app that is triggered by an Azure Storage queue. You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA). You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function. Which CRDs should you configure? ABox 1, CRD type: Deployment. Box 2, CRD type: ScaledObject. Box 3, CRD type: Secret.BBox 1, CRD type: Secret. Box 2, CRD type: ScaledObject. Box 3, CRD type: Secret.CBox 1, CRD type: TriggerAuthentication. Box 2, CRD type: Deployment. Box 3, CRD type: Secret.DBox 1, CRD type: Deployment. Box 2, CRD type: ScaledObject. Box 3, CRD type: TriggerAuthentication.
- FreePracticeQuiz.questionLabelApp ServicesYou are creating a CLI script that creates an Azure web app and related services in Azure App Service. The web app uses the following variables. You need to automatically deploy code from GitHub to the newly created web app. How should you complete the script?  ABox 1:
az webapp. Box 2:az webapp create. Box 3:git clone $gitrepo. Box 4:az webapp. Box 5:--plan $webappname.BBox 1:az appservice plan create. Box 2:az webapp create. Box 3:--plan $webappname. Box 4:az webapp deployment. Box 5:--repo-url $gitrepo --branch master --manual-integration.CBox 1:az appservice plan create. Box 2:az webapp deployment. Box 3:--plan $webappname. Box 4:az webapp deployment. Box 5:--repo-url $gitrepo --branch master --manual-integration.DBox 1:az group delete. Box 2:az webapp create. Box 3:git clone $gitrepo. Box 4:az appservice plan create. Box 5:git clone $gitrepo. - FreePracticeQuiz.questionLabelStorageYou develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Trigger the photo processing from Blob storage events. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelApp ServicesYou develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named
Development. You create additional deployment slots namedTestingandProduction. You enable auto swap on theProductiondeployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Update theweb.configfile to include theapplicationInitializationconfiguration element. Specify custom initialization actions to run the scripts. Does the solution meet the goal?AYes.BNo. - FreePracticeQuiz.questionLabelApp ServicesYou develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named
Development. You create additional deployment slots namedTestingandProduction. You enable auto swap on theProductiondeployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Enable auto swap for theTestingslot. Deploy the app to theTestingslot. Does the solution meet the goal?AYes.BNo. - FreePracticeQuiz.questionLabelApp ServicesYou develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named
Development. You create additional deployment slots namedTestingandProduction. You enable auto swap on theProductiondeployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Disable auto swap. Update the app with a method namedstatuscheckto run the scripts. Re-enable auto swap and deploy the app to theProductionslot. Does the solution meet the goal?AYes.BNo. - FreePracticeQuiz.questionLabelStorageYou develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Convert the Azure Storage account to a BlockBlobStorage storage account. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelSecurityYou are developing an Azure Web App. You configure TLS mutual authentication for the web app. You need to validate the client certificate in the web app. AClient certificate location: Client cookie. Encoding type: URL.BClient certificate location: HTTP message body. Encoding type: Base64.CClient certificate location: HTTP request header. Encoding type: Unicode.DClient certificate location: HTTP request header. Encoding type: Base64.
- FreePracticeQuiz.questionLabelContainersYou are developing a Docker/Go using Azure App Service Web App for Containers. You plan to run the container in an App Service on Linux. You identify a Docker container image to use. None of your current resource groups reside in a location that supports Linux. You must minimize the number of resource groups required. You need to create the application and perform an initial deployment. Which three Azure CLI commands should you use to develop the solution? ABox 1:
az webapp create. Box 2:az appservice plan create. Box 3:az group create.BBox 1:az appservice plan create. Box 2:az group create. Box 3:az group update.CBox 1:az group create. Box 2:az appservice plan create. Box 3:az webapp create. - FreePracticeQuiz.questionLabelApp ServicesFourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the
www.fourthcoffee.comdomain. Fourth Coffee is migrating this application to Azure. You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app. A resource group namedFourthCoffeePublicWebResourceGrouphas been created in the WestUS region that contains an App Service Plan namedAppServiceLinuxDockerPlan. Which order should the CLI commands be used to develop the solution? ABox 1:#/bin/bash appName='FourthCoffeePublicWeb$random' location='WestUS' dockerHubContainerPath='FourthCoffee/publicweb:v1' fqdn='http://www.fourthcoffee.com'>www.fourthcoffee.com. Box 2:az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublicWebResourceGroup. Box 3:az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group fourthCoffeePublicWebResourceGroup. Box 4:az webapp config hostname add --webapp-name $appName --resource-group fourthCoffeePublicWebResourceGroup --hostname $fqdn.BBox 1:#/bin/bash appName='FourthCoffeePublicWeb$random' location='WestUS' dockerHubContainerPath='FourthCoffee/publicweb:v1' fqdn='http://www.fourthcoffee.com'>www.fourthcoffee.com. Box 2:az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublicWebResourceGroup. Box 3:az webapp config hostname add --webapp-name $appName --resource-group fourthCoffeePublicWebResourceGroup --hostname $fqdn. Box 4:az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group fourthCoffeePublicWebResourceGroup.CBox 1:az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group fourthCoffeePublicWebResourceGroup. Box 2:az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublicWebResourceGroup. Box 3:az webapp config hostname add --webapp-name $appName --resource-group fourthCoffeePublicWebResourceGroup --hostname $fqdn. Box 4:#/bin/bash appName='FourthCoffeePublicWeb$random' location='WestUS' dockerHubContainerPath='FourthCoffee/publicweb:v1' fqdn='http://www.fourthcoffee.com'>www.fourthcoffee.com.DBox 1:az webapp config hostname add --webapp-name $appName --resource-group fourthCoffeePublicWebResourceGroup --hostname $fqdn. Box 2:az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublicWebResourceGroup. Box 3:#/bin/bash appName='FourthCoffeePublicWeb$random' location='WestUS' dockerHubContainerPath='FourthCoffee/publicweb:v1' fqdn='http://www.fourthcoffee.com'>www.fourthcoffee.com. Box 4:az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group fourthCoffeePublicWebResourceGroup. - FreePracticeQuiz.questionLabelSecurityYou are developing a serverless Java application on Azure. You create a new Azure Key Vault to work with secrets from a new Azure Functions application. The application must meet the following requirements: Reference the Azure Key Vault without requiring any changes to the Java code. Dynamically add and remove instances of the Azure Functions host based on the number of incoming application events. Ensure that instances are perpetually warm to avoid any cold starts. Connect to a VNet. Authentication to the Azure Key Vault instance must be removed if the Azure Function application is deleted. You need to grant the Azure Functions application access to the Azure Key Vault. Which three actions should you perform in sequence? ABox 1: Create the Azure Functions app with a Consumption plan type. Box 2: Create an access policy in Azure Key Vault for the application identity. Box 3: Create a user-assigned managed identity for the application.BBox 1: Create the Azure Functions app with a Premium plan type. Box 2: Create a system-assigned managed identity for the application. Box 3: Create an access policy in Azure Key Vault for the application identity.
- FreePracticeQuiz.questionLabelApp ServicesYou develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published. You must ensure that the website remains available and responsive while minimizing cost. You need to deploy the website. What should you do?ADeploy the website to a virtual machine. Configure the virtual machine to automatically scale when the CPU load is high.BDeploy the website to an App Service that uses the Shared service tier. Configure the App Service plan to automatically scale when the CPU load is high.CDeploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine instance count when the CPU load is high.DDeploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the CPU load is high.
- FreePracticeQuiz.questionLabelApp ServicesA company is developing a Java web app. The web app code is hosted in a GitHub repository located at
https://github.com/Contoso/webapp. The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot namedstaging. You need to create the web app and deploy the code. How should you complete the commands? ABox 1:group. Box 2:appservice plan. Box 3:webapp. Box 4:webapp deployment slot. Box 5:webapp deployment source. - FreePracticeQuiz.questionLabelCosmos DBYou have a web service that is used to pay for food deliveries. The web service uses Azure Cosmos DB as the data store. You plan to add a new feature that allows users to set a tip amount. The new feature requires that a property named tip on the document in Cosmos DB must be present and contain a numeric value. There are many existing websites and mobile apps that use the web service that will not be updated to set the tip property for some time. How should you complete the trigger? ABox 1:
__value();. Box 2:if (request.getValue('tip') === null) {. Box 3:__.upsertDocument(i);.BBox 1:__readDocument()('item');. Box 2:if (!('tip' in i)) {. Box 3:__.replaceDocument(i);.CBox 1:getContext().getRequest();. Box 2:if (!('tip' in i)) {. Box 3:r.setBody(i);.DBox 1:getContext().getRequest();. Box 2:if (isNaN(i)['tip'] || i['tip'] === null) {. Box 3:r.setValue(i);. - FreePracticeQuiz.questionLabelComputeYou develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob. The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Use the Durable Function async pattern to process the blob data. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelComputeYou develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob. The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate HTTP success response. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelComputeYou develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob. The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Configure the app to use an App Service hosting plan and enable the Always On setting. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelStorageYou develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Move photo processing to an Azure Function triggered from the blob upload. Does the solution meet the goal?AYes.BNo.
- FreePracticeQuiz.questionLabelStorageYou are developing an application that uses Azure Blob storage. The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be retained for compliance reasons. You need to process the transaction logs asynchronously. What should you do?AProcess all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app.BEnable the change feed on the storage account and process all changes for available events.CProcess all Azure Storage Analytics logs for successful blob events.DUse the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
- FreePracticeQuiz.questionLabelContainersYou plan to create a Docker image that runs an ASP.NET Core application named
ContosoApp. You have a setup script namedsetupScript.ps1and a series of application files includingContosoApp.dll. You need to create a Dockerfile document that meets the following requirements: Call setupScripts.ps1 when the container is built. RunContosoApp.dllwhen the container starts. The Dockerfile document must be created in the same folder whereContosoApp.dllandsetupScript.ps1are stored. Which five commands should you use to develop the solution? ABox 1:CMD ['dotnet', 'ContosoApp.dll']. Box 2:FROM microsoft/aspnetcore:latest. Box 3:RUN powershell ./setupScript.ps1. Box 4:WORKDIR /apps/ContosoApp. Box 5:COPY ./ ..BBox 1:COPY ./ .. Box 2:RUN powershell ./setupScript.ps1. Box 3:FROM microsoft/aspnetcore:latest. Box 4:CMD ['dotnet', 'ContosoApp.dll']. Box 5:WORKDIR /apps/ContosoApp.CBox 1:RUN powershell ./setupScript.ps1. Box 2:CMD ['dotnet', 'ContosoApp.dll']. Box 3:FROM microsoft/aspnetcore:latest. Box 4:WORKDIR /apps/ContosoApp. Box 5:COPY ./ ..DBox 1:FROM microsoft/aspnetcore:latest. Box 2:WORKDIR /apps/ContosoApp. Box 3:COPY ./ .. Box 4:RUN powershell ./setupScript.ps1. Box 5:CMD ['dotnet', 'ContosoApp.dll']. - FreePracticeQuiz.questionLabelComputeYou are developing an Azure Function App that processes images... You need to configure the Function App. What should you do?AUse an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.BUse a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.CUse a Consumption plan. Configure the Function App to use a Timer trigger.DUse an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.EUse a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
- FreePracticeQuiz.questionLabelManagementYou are configuring a new development environment for a Java application... How should you complete the Azure Resource Manager template? ABox 1:
copyIndex. Box 2:copy. Box 3:dependsOn.BBox 1:copy. Box 2:copyIndex. Box 3:dependsOn.CBox 1:priority. Box 2:dependsOn. Box 3:copyIndex.DBox 1:priority. Box 2:copyIndex. Box 3:dependsOn. - FreePracticeQuiz.questionLabelComputeYou are developing an Azure Function App by using Visual Studio... Question 1: The code will log the time that the order was processed from the queue. AYes.BNo.
- FreePracticeQuiz.questionLabelComputeYou are developing an Azure Function App by using Visual Studio... Question 2: When the ProcessOrders function fails, the function will retry up to five times for a given order, including the first try. AYes.BNo.
- FreePracticeQuiz.questionLabelComputeYou are developing an Azure Function App by using Visual Studio... Question 3: When there are multiple orders in the queue, a batch of orders will be received from the queue and the ProcessOrders function will run multiple instances concurrently to process the orders. AYes.BNo.
- FreePracticeQuiz.questionLabelComputeYou are developing an Azure Function App by using Visual Studio... Question 4: The ProcessOrders function will output the order to an Orders table in Azure Table Storage. AYes.BNo.
- FreePracticeQuiz.questionLabelCosmos DBYou are developing a solution for a hospital to support the following use cases... Which consistency levels should you implement? ABox 1: Strong. Box 2: Consistent Prefix. Box 3: Eventual.BBox 1: Eventual. Box 2: Strong. Box 3: Bounded Staleness.CBox 1: Consistent Prefix. Box 2: Bounded Staleness. Box 3: Eventual.DBox 1: Strong. Box 2: Bounded Staleness. Box 3: Eventual.
- FreePracticeQuiz.questionLabelManagementYou are configuring a development environment for your team... Which tools or services should you use? AGeneralize the VM: Visual Studio command prompt. Store images: Azure Data Lake Storage.BGeneralize the VM: Azure PowerShell. Store images: Azure Blob Storage.CGeneralize the VM: Visual Studio command prompt. Store images: Azure File Storage.DGeneralize the VM: Azure PowerShell. Store images: Azure File Storage.
- FreePracticeQuiz.questionLabelApp ServicesYou are preparing to deploy a website to an Azure Web App... What are two possible ways to achieve this goal?AAdd the path to the static content generation tool to
WEBSITE_RUN_FROM_PACKAGEsetting in thehost.jsonfile.BAdd aPreBuildtarget in the websitescsprojproject file that runs the static content generation script.CCreate a file namedrun.cmdin the folder/runthat calls a script which generates the static content and deploys the website.DCreate a file named.deploymentin the root of the repository that calls a script which generates the static content and deploys the website.
Ready for the full AZ-204 exam?
Get all 220+ Questions, timed simulation, and weak-area analytics. Plans from $2.99 — credits never expire.
Frequently Asked Questions
Are these real AZ-204 practice questions?+
Is the AZ-204 exam hard?+
How many questions are on the real AZ-204 exam?+
Do I need to sign up to use these questions?+
Keep studying
Pass AZ-204 on your first try
Join candidates using DummyExams to practice with realistic timed exams, detailed explanations, and weak-area analytics.
Start full AZ-204 practice exam