0
0
Azurecloud~10 mins

Event Grid for event routing in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an Event Grid topic in Azure.

Azure
az eventgrid topic create --name [1] --resource-group MyResourceGroup --location eastus
Drag options to blanks, or click blank then click option'
AMyTopic
BMyEventGrid
CMyResource
DMySubscription
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group name instead of topic name.
Using subscription name instead of topic name.
2fill in blank
medium

Complete the code to create a subscription for the Event Grid topic.

Azure
az eventgrid event-subscription create --name MySubscription --source-resource-id /subscriptions/1234/resourceGroups/MyResourceGroup/providers/Microsoft.EventGrid/topics/MyTopic --endpoint [1]
Drag options to blanks, or click blank then click option'
Aftp://myendpoint.com
Bmyendpoint.com
Chttp://myendpoint
Dhttps://myendpoint.com/api/events
Attempts:
3 left
💡 Hint
Common Mistakes
Using URLs without https:// prefix.
Using unsupported protocols like ftp://.
3fill in blank
hard

Fix the error in the event subscription filter to only receive events of type 'Microsoft.Storage.BlobCreated'.

Azure
az eventgrid event-subscription create --name MySubscription --source-resource-id /subscriptions/1234/resourceGroups/MyResourceGroup/providers/Microsoft.EventGrid/topics/MyTopic --endpoint https://myendpoint.com/api/events --included-event-types [1]
Drag options to blanks, or click blank then click option'
AMicrosoft.Storage.BlobCreated
BStorage.BlobCreated
CMicrosoft.Storage.BlobCreated, Microsoft.Storage.BlobDeleted
DBlobCreated
Attempts:
3 left
💡 Hint
Common Mistakes
Using partial event type names.
Including multiple event types when only one is required.
4fill in blank
hard

Fill both blanks to create an Event Grid subscription with a filter for subject begins with 'images/' and subject ends with '.jpg'.

Azure
az eventgrid event-subscription create --name MySubscription --source-resource-id /subscriptions/1234/resourceGroups/MyResourceGroup/providers/Microsoft.EventGrid/topics/MyTopic --endpoint https://myendpoint.com/api/events --subject-begins-with [1] --subject-ends-with [2]
Drag options to blanks, or click blank then click option'
Aimages/
B.jpg
Cimage/
D.jpeg
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect prefixes or suffixes.
Mixing up begins-with and ends-with values.
5fill in blank
hard

Fill all three blanks to create an Event Grid subscription with dead-lettering enabled to a storage blob container.

Azure
az eventgrid event-subscription create --name MySubscription --source-resource-id /subscriptions/1234/resourceGroups/MyResourceGroup/providers/Microsoft.EventGrid/topics/MyTopic --endpoint https://myendpoint.com/api/events --deadletter-endpoint [1] --max-delivery-attempts [2] --event-ttl [3]
Drag options to blanks, or click blank then click option'
Ahttps://mystorageaccount.blob.core.windows.net/deadlettercontainer
B5
C1440
Dhttps://myendpoint.com/deadletter
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-blob URLs for dead-letter endpoint.
Setting max delivery attempts or TTL to invalid values.