Microsoft Developing Solutions for Azure
Updated 17-Apr-2026
DRAG DROP (Drag and Drop is not supported) Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the www.fourthcoffee.com domain.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 named FourthCoffeePublicWebResourceGroup has 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? To answer, move all of the Azure CLI commands from the list of commands to the answer area and arrange them in the correct order.Select and Place:
Answer(s): A
Step 1: #bin/bash The appName is used when the webapp-name is created in step 2.Step 2: az webapp create Create a web app. In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command.Step 3: az webapp config container setIn Create a web app, you specified an image on Docker Hub in the az webapp create command. This is good enough for a public image. To use a private image, you need to configure your Docker account ID and password in your Azure web app.Step 4: az webapp config hostname addThe webapp-name is used when the webapp is created in step 2.In the Cloud Shell, follow the az webapp create command with az webapp config container set.
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-configure-custom-domain
DRAG DROP (Drag and Drop is not supported) You 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? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.Select and Place:
Step 1: Create the Azure Functions app with a Consumption plan type.Use the Consumption plan for serverless.Step 2: Create a system-assigned managed identity for the application.Create a system-assigned managed identity for your application.Key Vault references currently only support system-assigned managed identities. User-assigned identities cannot be used.Step 3: Create an access policy in Key Vault for the application identity.Create an access policy in Key Vault for the application identity you created earlier. Enable the "Get" secret permission on this policy. Do not configure the"authorized application" or applicationId settings, as this is not compatible with a managed identity.
https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references
You 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?
Answer(s): D
Windows Azure Web Sites (WAWS) offers 3 modes: Standard, Free, and Shared.Standard mode carries an enterprise-grade SLA (Service Level Agreement) of 99.9% monthly, even for sites with just one instance.Standard mode runs on dedicated instances, making it different from the other ways to buy Windows Azure Web Sites.Incorrect Answers:B: Shared and Free modes do not offer the scaling flexibility of Standard, and they have some important limits.Shared mode, just as the name states, also uses shared Compute resources, and also has a CPU limit. So, while neither Free nor Shared is likely to be the best choice for your production environment due to these limits.
HOTSPOT (Drag and Drop is not supported) A 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 named staging.You need to create the web app and deploy the code.How should you complete the commands? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: group # Create a resource group.az group create --location westeurope --name myResourceGroupBox 2: appservice plan # Create an App Service plan in STANDARD tier (minimum required by deployment slots). az appservice plan create --name $webappname --resource-group myResourceGroup --sku S1Box 3: webapp # Create a web app.az webapp create --name $webappname --resource-group myResourceGroup \--plan $webappnameBox 4: webapp deployment slot #Create a deployment slot with the name "staging".az webapp deployment slot create --name $webappname --resource-group myResourceGroup \--slot stagingBox 5: webapp deployment source # Deploy sample code to "staging" slot from GitHub.az webapp deployment source config --name $webappname --resource-group myResourceGroup \--slot staging --repo-url $gitrepo --branch master --manual-integration
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment
HOTSPOT (Drag and Drop is not supported) You 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?NOTE: Each correct selection is worth one point.Hot Area:
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You 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?
Instead 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.Note: Large, long-running functions can cause unexpected timeout issues. General best practices include:Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an immediate response. You can pass theHTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an immediate response.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You 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?
Large, long-running functions can cause unexpected timeout issues. General best practices include:Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an immediate response. You can pass theHTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an immediate response.
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You 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?
Answer(s): B
Share your comments for Microsoft AZ-204 exam with other users:
s_123 8/12/2023 4:28:00 PM
do we need c# coding to be az204 certified
sachin 6/27/2023 1:22:00 PM
can you share the pdf
johnson 10/24/2023 5:47:00 AM
i studied for the microsoft azure az-204 exam through it has 100% real questions available for practice along with various mock tests. i scored 900/1000.
bot 7/26/2023 6:45:00 PM
more comments here
User123 10/8/2023 9:59:00 AM
good question
VINNY 6/2/2023 11:59:00 AM
very good use full
Jose 8/30/2023 6:14:00 AM
nice questions
keylly 11/28/2023 10:10:00 AM
im study azure
Raj 5/25/2023 8:43:00 AM