Microsoft AZ-204 Exam (page: 7)
Microsoft Developing Solutions for Azure
Updated on: 29-Aug-2025

Viewing Page 7 of 93

You are developing an application that applies a set of governance policies for internal and external services, as well as for applications.
You develop a stateful ASP.NET Core 2.1 web application named PolicyApp and deploy it to an Azure App Service Web App. The PolicyApp reacts to events from
Azure Event Grid and performs policy actions based on those events.
You have the following requirements:
-Authentication events must be used to monitor users when they sign in and sign out.
-All authentication events must be processed by PolicyApp.
-Sign outs must be processed as fast as possible.
What should you do?

  1. Create a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events.
  2. Create a separate Azure Event Grid handler for sign-in and sign-out events.
  3. Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
  4. Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.

Answer(s): C

Explanation:


Reference:

https://docs.microsoft.com/en-us/azure/event-grid/subscription-creation-schema



HOTSPOT (Drag and Drop is not supported)
You are developing a C++ application that compiles to a native application named process.exe. The application accepts images as input and returns images in one of the following image formats: GIF, PNG, or JPEG.
You must deploy the application as an Azure Function.
You need to configure the function and host json files.
How should you complete the json files? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:


Box 1: "type": "http"
Box 2: "customHandler": { "description":{
A custom handler is defined by configuring the host.json file with details on how to run the web server via the customHandler section.
The customHandler section points to a target as defined by the defaultExecutablePath.
Example:
"customHandler": {
"description": {
"defaultExecutablePath": "handler.exe"
Box 3: "enableForwardingHttpRequest": false
Incorrect:
For HTTP-triggered functions with no additional bindings or outputs, you may want your handler to work directly with the HTTP request and response instead of the custom handler request and response payloads. This behavior can be configured in host.json using the enableForwardingHttpRequest setting.
At the root of the app, the host.json file is configured to run handler.exe and enableForwardingHttpRequest is set to true.


Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers



HOTSPOT (Drag and Drop is not supported)
You are developing an Azure Static Web app that contains training materials for a tool company. Each tool’s training material is contained in a static web page that is linked from the tool’s publicly available description page.
A user must be authenticated using Azure AD prior to viewing training.
You need to ensure that the user can view training material pages after authentication.
How should you complete the configuration file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



HOTSPOT (Drag and Drop is not supported)
You are authoring a set of nested Azure Resource Manager templates to deploy Azure resources. You author an Azure Resource Manager template named mainTemplate.json that contains the following linked templates: linkedTemplate1.json, linkedTemplate2.json.
You add parameters to a parameters template file named mainTemplate.parameters,json. You save all templates on a local device in the C:\templates\ folder.
You have the following requirements:
• Store the templates in Azure for later deployment.
• Enable versioning of the templates.
• Manage access to the templates by using Azure RBAC.
• Ensure that users have read-only access to the templates.
• Allow users to deploy the templates.
You need to store the templates in Azure.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



HOTSPOT (Drag and Drop is not supported)
You are developing a service where customers can report news events from a browser using Azure Web PubSub. The service is implemented as an Azure Function App that uses the JSON WebSocket subprotocol to receive news events.
You need to implement the bindings for the Azure Function App.
How should you configure the binding? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Viewing Page 7 of 93



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
Anonymous


sachin 6/27/2023 1:22:00 PM

can you share the pdf
Anonymous


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.
GERMANY


bot 7/26/2023 6:45:00 PM

more comments here
UNITED STATES


User123 10/8/2023 9:59:00 AM

good question
UNITED STATES


VINNY 6/2/2023 11:59:00 AM

very good use full
Anonymous


Jose 8/30/2023 6:14:00 AM

nice questions
PORTUGAL


keylly 11/28/2023 10:10:00 AM

im study azure
Anonymous


Raj 5/25/2023 8:43:00 AM

nice questions
UNITED STATES