Azure Event Grid · AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services
You create an Azure Event Grid event subscription that uses an HTTPS webhook endpoint. During creation, Event Grid sends a SubscriptionValidationEven…
Practice question from Azure Event Grid (AZ-204: Developing Solutions for Microsoft Azure Connect to and Consume Azure and Third-party Services), with the correct answer and a step-by-step solution.
medium · MCQ · Q-CB7130
You create an Azure Event Grid event subscription that uses an HTTPS webhook endpoint. During creation, Event Grid sends a SubscriptionValidationEvent containing a validationCode. What should the webhook do to complete validation?
- A.Return HTTP 200 with the validationCode as plain text in the response body
- B.Return HTTP 200 with a JSON body containing the validationCode in the validationResponse propertyCorrect answer
- C.Send the validationCode to the Event Grid topic as a new event
- D.Return HTTP 202 and wait for Event Grid to validate the endpoint asynchronously
Solution
For webhook validation, the endpoint must recognize the SubscriptionValidationEvent and synchronously return HTTP 200 with a JSON response such as {"validationResponse":"<validationCode>"}.
More from Azure Event Grid
- A company publishes custom business events when an order is created. The company needs to deliver each event independently to an Azure Func…
- An Event Grid subscription invokes a payment-processing webhook. Because Event Grid provides at-least-once delivery, the same event can occ…
- A solution must react whenever a blob is created in an Azure Storage account. The team wants Azure to publish the platform-generated storag…
- A storage account publishes BlobCreated events. An Azure Function should receive only events for .jpg files stored in the photos container.…
Practise more Connect to and Consume Azure and Third-party Services
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed