Microsoft Developing Solutions for Azure
Updated 17-Apr-2026
HOTSPOT (Drag and Drop is not supported) You 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? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: az appservice plan createThe azure group creates command successfully returns JSON result. Now we can use resource group to create a azure app service planBox 2: az webapp create Create a new web app..Box 3: --plan $webappname ..with the serviceplan we created in step 1.Box 4: az webapp deployment Continuous Delivery with GitHub. Example:az webapp deployment source config --name firstsamplewebsite1 --resource-group websites--repo-url $gitrepo --branch master --git-token $tokenBox 5: --repo-url $gitrepo --branch master --manual-integration
https://medium.com/@satish1v/devops-your-way-to-azure-web-apps-with-azure-cli-206ed4b3e9b1
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 a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in AzureStorage 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?
Answer(s): B
You need to catch the triggered event, so move the photo processing to an Azure Function triggered from the blob upload.Note: Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing, search indexing, or any file-oriented workflow.Events are pushed using Azure Event Grid to subscribers such as Azure Functions, Azure Logic Apps, or even to your own http listener.However, the processing must start in less than one minute.Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1) does not support integration with Event Grid.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
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 and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.You need to ensure that scripts run and resources are available before a swap operation occurs.Solution: Update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the scripts.Does the solution meet the goal?
Specify custom warm-up.Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot. Here's a sample web.config fragment.<system.webServer><applicationInitialization><add initializationPage="/" hostName="[app hostname]" /><add initializationPage="/Home/About" hostName="[app hostname]" /></applicationInitialization></system.webServer>
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
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 and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.You need to ensure that scripts run and resources are available before a swap operation occurs.Solution: Enable auto swap for the Testing slot. Deploy the app to the Testing slot.Does the solution meet the goal?
Instead update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the scripts.Note: Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot. Here's a sample web.config fragment.<system.webServer><applicationInitialization><add initializationPage="/" hostName="[app hostname]" /><add initializationPage="/Home/About" hostName="[app hostname]" /></applicationInitialization></system.webServer>
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 and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment 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 named statuscheck to run the scripts. Re-enable auto swap and deploy the app to the Production slot.Does the solution meet the goal?
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 a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in AzureStorage 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?
Not necessary to convert the account, instead move photo processing to an Azure Function triggered from the blob upload..Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing, search indexing, or any file- oriented workflow.Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1) does not support integration with Event Grid.
HOTSPOT (Drag and Drop is not supported) You 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. To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Accessing the client certificate from App Service.If you are using ASP.NET and configure your app to use client certificate authentication, the certificate will be available through the HttpRequest.ClientCertificate property. For other application stacks, the client cert will be available in your app through a base64 encoded value in the "X-ARR-ClientCert" request header. Your application can create a certificate from this value and then use it for authentication and authorization purposes in your application.
https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth
DRAG DROP (Drag and Drop is not supported) You 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 aDocker 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? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.Select and Place:
You can host native Linux applications in the cloud by using Azure Web Apps. To create a Web App for Containers, you must run Azure CLI commands that create a group, then a service plan, and finally the web app itself.Step 1: az group create In the Cloud Shell, create a resource group with the az group create command.Step 2: az appservice plan createIn the Cloud Shell, create an App Service plan in the resource group with the az appservice plan create command.Step 3: az webapp create In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command. Don't forget to replace with a unique app name, and <docker-ID> with your Docker ID.
https://docs.microsoft.com/mt-mt/azure/app-service/containers/quickstart-docker-go?view=sql-server-ver15
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