nerdexam
Microsoft

AZ-220 · Question #60

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…

The correct answer is A. the Device Disconnected events. The IoT Hub publishes the Microsoft.Devices.DeviceDisconnected event type, which is published when a device is disconnected from an IoT hub. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-event-grid#event-types

Provision and manage devices

Question

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 WHERE connectionState = 'Disconnected'" What does the command return?

Options

  • Athe Device Disconnected events
  • Bthe device twins
  • Cthe Connections logs
  • Dthe device credentials

How the community answered

(38 responses)
  • A
    84% (32)
  • B
    8% (3)
  • C
    3% (1)
  • D
    5% (2)

Explanation

The IoT Hub publishes the Microsoft.Devices.DeviceDisconnected event type, which is published when a device is disconnected from an IoT hub. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-event-grid#event-types

Topics

#IoT Hub query#device twins#connection state#Azure CLI

Community Discussion

No community discussion yet for this question.

Full AZ-220 Practice