Soru

Zorluk: OrtaImplement Azure Event Grid Solutions

You are deploying a custom Webhook endpoint to receive events from an Azure Event Grid system topic. The Webhook endpoint is hosted on an internal system that is unable to return a synchronous validation response when the subscription is created. You need to manually validate the subscription.

Which two actions should you perform? (Select TWO)

  1. Extract the value of the validationUrl property from the validation request payload.Cevap
  2. Send an HTTP GET request to the extracted validation URL.Cevap
  3. C
    Send an HTTP POST request to the extracted validation URL containing the validation code in the request body.
  4. D
    Generate a Shared Access Signature (SAS) token at the topic scope and send it to the Event Grid subscription endpoint.

Cevap

Extract the value of the validationUrl property from the validation request payload, and send an HTTP GET request to the extracted validation URL.
To manually validate an Event Grid subscription for a Webhook endpoint, you must capture the validation request sent by Event Grid. From this payload, you extract the validationUrl. Performing an HTTP GET request to this URL completes the validation handshake. This is typical for scenarios where the endpoint is behind a firewall, on a private network, or hosted by a third-party service that cannot respond dynamically.

Adım Adım Çözüm

1
Retrieve the event payload sent to the Webhook endpoint when the subscription is created.
The JSON payload containing the subscription validation event is captured.
The event contains the validation URL needed for manual validation.
2
Locate and extract the validationUrl field from the data object of the captured event.
The validation URL (which is valid for 5 minutes) is obtained.
This URL is pre-signed by Event Grid to perform manual validation.
3
Send an HTTP GET request to the extracted validation URL.
Event Grid receives the GET request and successfully transitions the subscription status to active.
The handshake is completed by sending a GET request to the validation URL.

Anahtar Kavram

Azure Event Grid subscription endpoint manual validation
Tahmini Süre:1m 30s
Bu soruyu puanla