Developing Solutions for Microsoft Azure — Question 22
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?
Answer options
- 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.
Correct answer: C
Explanation
The correct answer is C because creating separate Azure Event Grid topics and subscriptions for sign-in and sign-out events allows for more efficient processing and management of these events, especially prioritizing sign-outs. Options A and B do not provide the necessary separation for handling events swiftly, and option D introduces unnecessary complexity with subject prefixes instead of using distinct topics and subscriptions.