You are deploying a custom Webhook endpoint to receive events from an Azure Event Grid custom topic. The solution must use the default Event Grid event schema. To complete the subscription setup, the endpoint must successfully process the automatic, synchronous validation handshake. Which two of the following configuration or code implementation steps must the Webhook endpoint execute to satisfy the Event Grid validation requirements? (Each correct answer presents a part of the solution. Choose two.)
- Extract the validationCode value from the data payload of the incoming HTTP POST request.Cevap
- Return an HTTP 200 OK response with a JSON payload containing the validationResponse set to the extracted validation code.Cevap
- CSend a synchronous HTTP GET request to the validationUrl endpoint provided in the event payload.
- DRetrieve a Shared Access Signature (SAS) token from Azure Key Vault and send it in the Authorization header of the HTTP response.
Cevap
To complete the Event Grid subscription validation handshake, the Webhook endpoint must extract the validationCode from the incoming event data payload and return it in the JSON response body under the validationResponse property along with an HTTP 200 OK status.
The correct actions require the endpoint to process the incoming HTTP POST request, parse the JSON payload to extract the validationCode, and then reply synchronously with a 200 OK status containing the validationResponse field populated with that code.
Adım Adım Çözüm
Anahtar Kavram
Event Grid Webhook subscription validation handshake