But no events are received even though events exist. What is the likely issue?
medium
A. The subscription is disabled
B. The filter syntax is invalid JSON
C. Event Grid does not support subject filters
D. The subject filter is case-sensitive and event subjects differ in case
Solution
Step 1: Check filter syntax and support
The JSON syntax is valid and Event Grid supports subject filters.
Step 2: Consider case sensitivity and subscription status
Subject filters are case-sensitive; if event subjects differ in case, no match occurs. Subscription being disabled would stop all events, but question implies filter issue.
Final Answer:
The subject filter is case-sensitive and event subjects differ in case -> Option D
Quick Check:
Subject filters are case-sensitive = D [OK]
Hint: Remember filters are case-sensitive in Event Grid [OK]
Common Mistakes:
Assuming filters ignore case
Blaming JSON syntax without checking
Ignoring subscription status
5. You want to create an Event Grid subscription that only receives events of type Microsoft.Storage.BlobCreated where the blob is in the container named images. Which filter configuration achieves this?
hard
A. { "eventType": "Microsoft.Storage.BlobDeleted", "subjectBeginsWith": "/blobServices/default/containers/images/" }
B. { "eventType": "Microsoft.Storage.BlobCreated", "subjectBeginsWith": "/blobServices/default/containers/images/" }
C. { "eventType": "Microsoft.Storage.BlobCreated", "subjectEndsWith": "/images" }
D. { "eventType": "Microsoft.Storage.BlobCreated" }
Solution
Step 1: Filter by event type
The event type must be exactly "Microsoft.Storage.BlobCreated" to get blob creation events.
Step 2: Filter by subject prefix for container
The subject prefix for blobs in the "images" container is "/blobServices/default/containers/images/".
Step 3: Combine filters correctly
{ "eventType": "Microsoft.Storage.BlobCreated", "subjectBeginsWith": "/blobServices/default/containers/images/" } combines both eventType and subjectBeginsWith correctly.
Final Answer:
{ "eventType": "Microsoft.Storage.BlobCreated", "subjectBeginsWith": "/blobServices/default/containers/images/" } -> Option B
Quick Check:
Event type and subject prefix filter combined = C [OK]
Hint: Combine eventType and subjectBeginsWith for precise filtering [OK]
Common Mistakes:
Using wrong event type
Using subjectEndsWith instead of subjectBeginsWith