Home » Microsoft » AZ-220 » What should you do to resolve the issue?
You have an Azure Stream Analytics job that connects to an Azure IoT hub named Hub1445 as a streaming data source. Hub1445 is configured as shown in the exhibit. (Click the Exhibit tab.)
The Stream Analytics job fails to receive any messages from the IoT hub.
What should you do to resolve the issue?
A. Change the Route1 route query to true.
B. Enable the Route3 route.
C. Disable the Route2 route.
D. Enable the fallback route.
Correct Answer: A
Explanation/Reference:
Explanation:
The device telemetry is usually passed as JSON from the device through the IoT Hub – this is handled nicely by Azure Streaming Analytics queries.
The IoT Hub message routing should be configured as follows:
Data source: Device Telemetry Messages
Routing query: true (as the routing query is an expression that evaluates to true or false for each received message, the simplest way to send all messages to the endpoint is to just supply true as the query).
Reference: https://darenmay.com/blog/azure-iot-streaming-analytics-data-lake-analytics-and-json/
The answer to this is
A. Change the Route1 route query to true.
Route 3 is sending messages to in-built endpoint.
Route1 is sending Telemetry messages to Stream Analytics Job. The Stream Analytics job fails to receive any messages from the IoT hub because Routing Query is set to ‘false’. It needs to be set to ‘true’ to route the message.