You deployed a stateful ASP.NET Core web app (PolicyApp) to an App Service that reacts to Azure Event Grid events. Requirements: all authentication events (sign-ins and sign-outs) must be handled by PolicyApp, and sign-outs must be processed as quickly as possible. What should you implement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events..
Why this is the answer
Creating separate Event Grid topics and subscriptions for sign-in and sign-out events is the most effective solution. This approach ensures that sign-out events, which require rapid processing, have their own dedicated channel, preventing them from being queued behind less urgent sign-in events. This isolation guarantees minimal latency for critical sign-out operations. Using a single subscription for all authentication events (first option) would mean sign-out events could be delayed by sign-in event processing. Creating separate handlers (second option) doesn't address the queuing issue within Event Grid itself; events would still arrive at a single subscription. While filtering with subjectBeginsWith (fourth option) can differentiate events, it still relies on a single subscription, meaning all events are routed to the same endpoint and processed sequentially, potentially delaying sign-outs.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed