Microsoft Developing Solutions for Azure
Updated 17-Apr-2026
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: Move photo processing to an Azure Function triggered from the blob upload.Does the solution meet the goal?
Answer(s): B
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.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
You 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?
Change feed support in Azure Blob StorageThe purpose of the change feed is to provide transaction logs of all the changes that occur to the blobs and the blob metadata in your storage account. The change feed provides ordered, guaranteed, durable, immutable, read-only log of these changes. Client applications can read these logs at any time, either in streaming or in batch mode. The change feed enables you to build efficient and scalable solutions that process change events that occur in your Blob Storage account at a low cost.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed
DRAG DROP (Drag and Drop is not supported) You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and a series of application files including ContosoApp.dll.You need to create a Dockerfile document that meets the following requirements:-Call setupScripts.ps1 when the container is built.-Run ContosoApp.dll when the container starts.The Dockerfile document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.Which five 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:
Answer(s): A
Box 1: CMD [..]Cmd starts a new instance of the command interpreter, Cmd.exe.Syntax: CMD <string>Specifies the command you want to carry out.Box 2: FROM microsoft/aspnetcore-build:latestBox 3: WORKDIR /apps/ContosoApp Bxo 4: COPY ./ .Box 5: RUN powershell ./setupScript.ps1
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container.Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when theFunction App is triggered.You need to configure the Function App.What should you do?
Answer(s): D
The Blob storage trigger starts a function when a new or updated blob is detected. The blob contents are provided as input to the function.The Consumption plan limits a function app on one virtual machine (VM) to 1.5 GB of memory.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger
HOTSPOT (Drag and Drop is not supported) You are configuring a new development environment for a Java application.The environment requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components.The VMSS must not be created until the storage accounts have been successfully created and an associated load balancer and virtual network is configured.How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: copyIndex Notice that the name of each resource includes the copyIndex() function, which returns the current iteration in the loop. copyIndex() is zero-based.Box 2: copy By adding the copy element to the resources section of your template, you can dynamically set the number of resources to deploy.Box 3: dependsOn Example:"type": "Microsoft.Compute/virtualMachineScaleSets","apiVersion": "2020-06-01","name": "[variables('namingInfix')]","location": "[parameters('location')]","sku": {"name": "[parameters('vmSku')]","tier": "Standard","capacity": "[parameters('instanceCount')]"},"dependsOn": ["[resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName'))]","[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]"],
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/copy-resources https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/quick-create-template-windows
HOTSPOT (Drag and Drop is not supported) You are developing an Azure Function App by using Visual Studio. The app will process orders input by an Azure Web App. The web app places the order information into Azure Queue Storage.You need to review the Azure Function App code shown below.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: No ExpirationTime - The time that the message expires.InsertionTime - The time that the message was added to the queue.Box 2: Yes maxDequeueCount - The number of times to try processing a message before moving it to the poison queue. Default value is 5.Box 3: Yes When there are multiple queue messages waiting, the queue trigger retrieves a batch of messages and invokes function instances concurrently to process them.By default, the batch size is 16. When the number being processed gets down to 8, the runtime gets another batch and starts processing those messages. So the maximum number of concurrent messages being processed per function on one virtual machine (VM) is 24.Box 4: Yes
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue
DRAG DROP (Drag and Drop is not supported) You are developing a solution for a hospital to support the following use cases:-The most recent patient status details must be retrieved even if multiple users in different locations have updated the patient record.-Patient health monitoring data retrieved must be the current version or the prior version.-After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges.You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong. You set the value for Indexing Mode toConsistent.You need to minimize latency and any impact to the availability of the solution. You must override the default consistency level at the query level to meet the required consistency guarantees for the scenarios.Which consistency levels should you implement? To answer, drag the appropriate consistency levels to the correct requirements. Each consistency level 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.Select and Place:
Box 1: Strong Strong: Strong consistency offers a linearizability guarantee. The reads are guaranteed to return the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write.Box 2: Bounded staleness Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K" versions (that is"updates") of an item or by "t" time interval. When you choose bounded staleness, the "staleness" can be configured in two ways:The number of versions (K) of the itemThe time interval (t) by which the reads might lag behind the writesBox 3: Eventual Eventual: There's no ordering guarantee for reads. In the absence of any further writes, the replicas eventually converge.Incorrect Answers:Consistent prefix: Updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix guarantees that reads never see out-of-order writes.
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
HOTSPOT (Drag and Drop is not supported) 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.Hot Area:
Box 1: Azure Powershell Creating an image directly from the VM ensures that the image includes all of the disks associated with the VM, including the OS disk and any data disks.Before you begin, make sure that you have the latest version of the Azure PowerShell module.You use Sysprep to generalize the virtual machine, then use Azure PowerShell to create the image.Box 2: Azure Blob Storage You can store images in Azure Blob Storage.
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource#create-an-image-of-a-vm-using-powershell
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