exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 31 discussion

Actual exam question from Microsoft's AZ-204
Question #: 31
Topic #: 1
[All AZ-204 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ning
Highly Voted 3 years, 8 months ago
Only C is mentioned both topic and subscription, which are two critical parts for event grid, so I will go C, anyway, this question is very poorly worded
upvoted 38 times
...
BishopeL
Highly Voted 3 years, 8 months ago
For your interest, please see https://docs.microsoft.com/en-us/azure/event-grid/event-filtering Correct answer is D.
upvoted 17 times
ucsdmiami2020
3 years, 5 months ago
I agree with D per the following text found in Microsoft docs URL https://docs.microsoft.com/en-us/azure/event-grid/concepts "A subscription tells Event Grid which events on a topic you're interested in receving. When creating the subscription, you provide an endpoint for handling the vent. You can filter the events that are sent to the endpoint. You can filter by event type or subject pattern."
upvoted 2 times
...
edengoforit
3 years, 3 months ago
D doesn't contain any action of Sign-in. I am more inclined to C
upvoted 9 times
...
...
prode
Most Recent 2 months, 3 weeks ago
Selected Answer: D
The requirement states that sign-out events must be processed as fast as possible while ensuring that all authentication events are processed by PolicyApp. Azure Event Grid allows filtering of events based on subject prefixes using the subjectBeginsWith filter. By adding a subject prefix to sign-out events (e.g., /auth/signout), you can create a subscription that only processes sign-out events separately, ensuring faster processing. Sign-in events can be handled by a separate general subscription that processes all authentication events.
upvoted 1 times
...
VK1989
4 months, 1 week ago
Selected Answer: D
Answer should be D, to cross verify I used Copilot and Gemini and both accept D
upvoted 1 times
...
zcmnt
6 months, 2 weeks ago
Selected Answer: D
D
upvoted 1 times
...
LongLasting
7 months, 1 week ago
Selected Answer: C
Since sign-out events need to be processed as quickly as possible, having a dedicated topic and subscription for them ensures they are not delayed by sign-in events or other types of events.
upvoted 2 times
...
Zidano
8 months ago
Answer is D. All authentication events are processed by PolicyApp. By adding a subject prefix to unsubscribe events and using the filter, unsubscribe events can be quickly identified and prioritized. Meets both requirements: All events are processed by PolicyApp. Unsubscribe events are processed as quickly as possible.
upvoted 1 times
...
8ac3742
9 months, 2 weeks ago
The answer is correct, Option B creates a separate Azure subscription for sign-in and sign-out events implying that two event types are required, subject prefix just require one event type for sign-in and sign-out events.
upvoted 2 times
...
jobolesonihal
1 year, 2 months ago
Selected Answer: C
First, the answers are poorly written. To process sign-outs fasters, we will have to do parallel processing. (there is no priority assignment in Event Grid) Ideal solution would be to create one topic and 2 different subscriptions - a) without any filter b) another with just sign-out filter Option D has 2 issues - a) It expects change to the external app i.e. Azure App Service Web App (remember you are developing PolicyApp not the app being monitored) to log the sign-out event with a prefix. b) It only takes care of Sign-out events. To cater to all events, you would need yet another subscription. I don't like C either. One doesn't need different Topic as it could also mean impact to the application ingesting these events to split the events to 2 different topics. C is inefficient way to solve the problem.
upvoted 2 times
...
FeriAZ
1 year, 2 months ago
Selected Answer: C
By creating dedicated topics (and corresponding subscriptions) for sign-out events, you ensure that these events can be processed immediately and without the overhead of filtering from a mixed set of authentication events. This approach provides a clear and direct path for sign-out events to be handled, potentially reducing processing time and meeting the prioritization requirement.
upvoted 3 times
...
CarlosTheBoldest
1 year, 5 months ago
Selected Answer: D
The "All authentication events must be processed by PolicyApp clause" should avoid C, so is D
upvoted 1 times
...
Mick1z8
1 year, 6 months ago
Selected Answer: C
Filtering is something that you can use regardless (which adds a small overhead though). But the question says "sign-outs should be as fast as possible" which means creating a dedicated topic only for "sign-outs" is the best possible solution.
upvoted 2 times
...
INGAKULA
1 year, 8 months ago
The correct answer is C
upvoted 1 times
...
MVCChicago
1 year, 8 months ago
Answer is D
upvoted 2 times
...
LxstInNxght
1 year, 9 months ago
Selected Answer: C
It's C
upvoted 1 times
...
jakobste
1 year, 9 months ago
I think i have seen this before and the answer was C on that practice test.
upvoted 1 times
...
Vaibhab
1 year, 10 months ago
Answer is D: By adding a subject prefix to sign-out events, you can differentiate them from other authentication events. Then, you can create an Azure Event Grid subscription and configure it to use the subjectBeginsWith filter. This filter allows you to specify that you only want to process events with a subject that begins with the specified prefix, in this case, the sign-out events.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago