Which two actions should you perform?

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

You have an Azure IoT solution that includes several Azure IoT hubs.

A new alerting feature was recently added to the IoT devices. The feature uses a new device twin reported property named alertCondition.

You need to send alerts to an Azure Service Bus queue named MessageAlerts. The alerts must include alertConditionand the name of the IoT hub.

Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A . Configure File upload for each IoT hub. Configure the device to send a file to an Azure Storage container that contains the device name and status message.
B . Add the following message enrichments:
Name = iotHubName
Value = $twin.tag.location
Endpoint = MessageAlert

C . Create an IoT Hub routing rule that has a data source of Device Twin Change Events and select the endpoint for MessageAlerts.
D . Add the following message enrichments:
Name = iotHubName
Value = $iothubname
Endpoint = MessageAlert

E . Create an IoT Hub routing rule that has a data source of Device Telemetry Messages and select the endpoint for MessageAlerts.

Answer: BD

Explanation:

B: Message enrichments is the ability of the IoT Hub to stamp messages with additional information before the messages are sent to the designated endpoint. One reason to use message enrichments is to include data that can be used to simplify downstream processing. For example, enriching device telemetry messages with a device twin tag can reduce load on customers to make device twin API calls for this information.

D: Applying enrichments

The messages can come from any data source supported by IoT Hub message routing, including the following examples:

– –>device twin change notifications — changes in the device twin

– device telemetry, such as temperature or pressure

– device life-cycle events, such as when the device is created or deleted

Reference:

https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-message-enrichments-overview

Leave a Reply

Your email address will not be published.