nerdexam
Microsoft

AZ-220 · Question #139

You have IoT devices that connect to an Azure IoT hub. From IoT Hub, you create an Event subscription to be notified when devices are registered to IoT Hub. You select webhook endpoint as a handler…

The correct answer is A. Microsoft.Devices.DeviceCreated C. Microsoft.EventGrid.SubscriptionValidationEvent. Microsoft.Devices.DeviceCreated: Published when a device is registered to an IoT hub. The first thing you want to do is handle Microsoft.EventGrid.SubscriptionValidationEvent events. Every time someone subscribes to an event, Event Grid sends a validation event to the endpoint…

Implement business integration

Question

You have IoT devices that connect to an Azure IoT hub. From IoT Hub, you create an Event subscription to be notified when devices are registered to IoT Hub. You select webhook endpoint as a handler for the Event subscription. Which two types of Event Grid messages will be received by the webhook? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • AMicrosoft.Devices.DeviceCreated
  • BMicrosoft.Resources.ResourceWriteSuccess
  • CMicrosoft.EventGrid.SubscriptionValidationEvent
  • DMicrosoft.Devices.DeviceConnected

How the community answered

(26 responses)
  • A
    81% (21)
  • B
    8% (2)
  • D
    12% (3)

Explanation

Microsoft.Devices.DeviceCreated: Published when a device is registered to an IoT hub. The first thing you want to do is handle Microsoft.EventGrid.SubscriptionValidationEvent events. Every time someone subscribes to an event, Event Grid sends a validation event to the endpoint with a validationCode in the data payload. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-event-grid https://docs.microsoft.com/en-us/azure/event-grid/receive-events

Topics

#Event Grid#device lifecycle events#webhook endpoint#subscription validation

Community Discussion

No community discussion yet for this question.

Full AZ-220 Practice