What does the command return?

Posted by: Pdfprep Category: AZ-220 Tags: , ,

You have 1,000 devices that connect to an Azure IoT hub.

You are performing a scheduled check of deployed IoT devices.

You plan to run the following command from the Azure CLI prompt.

az iot hub query –hub-name hub1 –query-command "SELECT * FROM devices WHEREconnectionState = ‘Disconnected’"

What does the command return?
A . the Device Disconnected events
B . the device twins
C . the Connections logs
D . the device credentials

Answer: A

Explanation:

The IoT Hub publishes the Microsoft.Devices.DeviceDisconnected event type, which is published when a device is disconnected from an IoT hub.

Reference:

https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-event-grid#event-types

Leave a Reply

Your email address will not be published.