nerdexam
Microsoft

AZ-204 · Question #296

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…

The correct answer is C. Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events. Since "sign outs must be processed as soon as possible", but there is no requirement for sign-ins - so looks like sign-ins can wait for processing. You won't get this prioritization with single topic.

Submitted by takeshi77· Mar 30, 2026Connect to and consume Azure services and third-party services

Question

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?

Options

  • ACreate a new Azure Event Grid subscription for all authentication events.
  • BCreate a separate Azure Event Grid handler for sign-in and sign-out events.
  • CCreate separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
  • DAdd a subject prefix to sign-out events.

How the community answered

(30 responses)
  • A
    13% (4)
  • B
    3% (1)
  • C
    77% (23)
  • D
    7% (2)

Explanation

Since "sign outs must be processed as soon as possible", but there is no requirement for sign-ins - so looks like sign-ins can wait for processing. You won't get this prioritization with single topic.

Topics

#Azure Event Grid#event subscriptions#event filtering#event-driven architecture

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice