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…
Question
Options
- AMicrosoft.Devices.DeviceCreated
- BMicrosoft.Resources.ResourceWriteSuccess
- CMicrosoft.EventGrid.SubscriptionValidationEvent
- DMicrosoft.Devices.DeviceConnected
How the community answered
(26 responses)- A81% (21)
- B8% (2)
- D12% (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
Community Discussion
No community discussion yet for this question.