exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 11 question 4 discussion

Actual exam question from Microsoft's AZ-203
Question #: 4
Topic #: 11
[All AZ-203 Questions]

DRAG DROP -
You need to implement the Log policy.
How should you complete the Azure Event Grid subscription? To answer, drag the appropriate JSON segments to the correct locations. Each JSON segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1:WebHook -
Scenario: If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP WebHook. endpointType: The type of endpoint for the subscription (webhook/HTTP, Event Hub, or queue).

Box 2: SubjectBeginsWith -
Box 3: Microsoft.Storage.BlobCreated

Scenario: Log Policy -
All Azure App Service Web Apps must write logs to Azure Blob storage. All log files should be saved to a container named logdrop. Logs must remain in the container for 15 days.

Example subscription schema -
{
"properties": {
"destination": {
"endpointType": "webhook",
"properties": {
"endpointUrl": "https://example.azurewebsites.net/api/HttpTriggerCSharp1?code=VXbGWce53l48Mt8wuotr0GPmyJ/nDT4hgdFj9DpBiRt38qqnnm5OFg=="
}
},
"filter": {
"includedEventTypes": [ "Microsoft.Storage.BlobCreated", "Microsoft.Storage.BlobDeleted" ],
"subjectBeginsWith": "blobServices/default/containers/mycontainer/log",
[1]
"isSubjectCaseSensitive ": "true"
}
}
}
References:
https://docs.microsoft.com/en-us/azure/event-grid/subscription-creation-schema

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
purav1009
Highly Voted 5 years, 2 months ago
Options: https://www.examtopics.com/assets/media/exam-media/02522/0008200001.png
upvoted 24 times
...
MalaSvinjica
Highly Voted 4 years, 5 months ago
I got this question in my AZ-204 exam
upvoted 10 times
...
Bubbles
Most Recent 4 years, 4 months ago
https://stackoverflow.com/questions/64030748/webhook-url-for-azure-eventgrid-subscription-with-azure-bicep-fails
upvoted 1 times
...
bugimachi
4 years, 5 months ago
I find this confusing. The solution presented here will invoke the WebHook for every log file archived in logdrop, right? But the case study says, the WebHook for mail notification is only supposed to be invoked once an anomaly is detected. So where is the Anomaly detection here? (By the way... At first sight, I thought the purpose of this subscription would be to store incoming logs in the container "logdrop". But this must also be wrong...)
upvoted 3 times
cbn
4 years, 3 months ago
Same confusion here. Question asks about log policy, but answer is about anomaly detection
upvoted 1 times
...
...
Subhijith
4 years, 9 months ago
Answer given is correct...
upvoted 5 times
...
triptimandal01
4 years, 10 months ago
I got this question in my exam
upvoted 6 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 ...