Question.31 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? (A) Create a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events. (B) Create a separate Azure Event Grid handler for sign-in and sign-out events. (C) Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events. (D) Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter. |
31. Click here to View Answer
Answer: C
Explanation:
Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
To meet the requirements of processing sign-out events as fast as possible, it would be best to create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events. This way, you can configure the subscription for sign-out events to have a higher priority, and process those events with a higher priority. This will ensure that sign-out events are processed as fast as possible, allowing for a more responsive user experience.
Question.32 HOTSPOT – 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: ![]() |
32. Click here to View Answer
Answer:

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
Question.33 HOTSPOT – 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. ![]() |
33. Click here to View Answer
Answer:

Question.34 HOTSPOT – 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. ![]() |
34. Click here to View Answer
Answer:

Question.35 HOTSPOT – 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. ![]() |
35. Click here to View Answer
Answer:
