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, 6 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, 5 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, 2 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, 1 month ago
D doesn't contain any action of Sign-in. I am more inclined to C
upvoted 8 times
...
...
prode
Most Recent 5 days, 4 hours 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
1 month, 2 weeks ago
Selected Answer: D
Answer should be D, to cross verify I used Copilot and Gemini and both accept D
upvoted 1 times
...
zcmnt
3 months, 4 weeks ago
Selected Answer: D
D
upvoted 1 times
...
LongLasting
4 months, 2 weeks 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
5 months, 1 week 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
6 months, 3 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
11 months, 1 week 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 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, 3 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, 4 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, 5 months ago
The correct answer is C
upvoted 1 times
...
MVCChicago
1 year, 5 months ago
Answer is D
upvoted 2 times
...
LxstInNxght
1 year, 6 months ago
Selected Answer: C
It's C
upvoted 1 times
...
jakobste
1 year, 6 months ago
I think i have seen this before and the answer was C on that practice test.
upvoted 1 times
...
xmashoodx
1 year, 6 months ago
"chatgpt" The requirement is to process authentication events, specifically sign-in and sign-out, and make sure that sign-outs are processed as quickly as possible. You want to be able to filter events specifically for this purpose. Option D will fulfill these requirements. By adding a subject prefix to sign-out events and creating an Azure Event Grid subscription that is configured to use the subjectBeginsWith filter, you can specifically target and process the sign-out events quickly. The subjectBeginsWith filter allows for efficient filtering of events, which aligns with the requirement of processing sign-outs as fast as possible. Therefore, the correct answer is: D. Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.
upvoted 6 times
rameeze
1 year, 6 months ago
are you preparing for the exam from here??
upvoted 2 times
macobuzi
1 year, 6 months ago
Hey, you too preparing for the exam? So many vague answers to these questions but i couldn't find anywhere better to prepare.
upvoted 3 times
sthmishra
1 year, 6 months ago
i am preparing from this site too, please mention any other source if you know
upvoted 1 times
...
...
...
basquiat
1 year, 6 months ago
I tend to agree, especially bc D is the only alternative that explores a more advanced capability of Event Grid, such as subject filtering. And this is a core thing for MS exams. However, this is an awful question, so many topics mentioned at once let things messy.
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