nerdexam
Microsoft

AZ-220 · Question #4

Case Study 1 - Contoso Overview A company named Contoso, Ltd. is creating a building monitoring system that will monitor the temperature, humidity, and light level at various points in a building's…

The correct answer is D. Implement distributed tracing. IoT Hub is one of the first Azure services to support distributed tracing. As more Azure services support distributed tracing, you'll be able trace IoT messages throughout the Azure services involved in your solution. Enabling distributed tracing for IoT Hub gives you the…

Monitor, troubleshoot, and optimize IoT solutions

Question

Case Study 1 - Contoso Overview A company named Contoso, Ltd. is creating a building monitoring system that will monitor the temperature, humidity, and light level at various points in a building's internal structure. Contoso will test the system at a single building located in the United Kingdom. The building has 25 floors. Each floor has 15 rooms. Existing Environment. Current State of Development Contoso produces a set of Bluetooth sensors that read the temperature and humidity. The sensors connect to IoT gateway devices that relay the data. All the IoT gateway devices connect to an Azure IoT hub named iothub1. Existing Environment. Device Twin You plan to implement device twins by using the following JSON sample. Existing Environment. Azure Stream Analytics Each room will have between three to five sensors that will generate readings that are sent to a single IoT gateway device. The IoT gateway device will forward all the readings to iothub1 at intervals of between 10 and 60 seconds. You plan to use a gateway pattern so that each IoT gateway device will have its own IoT Hub device identity. You draft the following query, which is missing the GROUP BY clause. SELECT AVG(temperature), System.TimeStamp() AS AsaTime FROM Iothub You plan to use a 30-second period to calculate the average temperature reading of the sensors. You plan to minimize latency between the condition reported by the sensors and the corresponding alert issued by the Stream Analytics job. Existing Environment. Device Messages The IoT gateway devices will send messages that contain the following JSON data whenever the temperature exceeds a specified threshold. The level property will be used to route the messages to an Azure Service Bus queue endpoint named criticalep. Existing Environment. Issues You discover connectivity issues between the IoT gateway devices and iothub1, which cause IoT devices to lose connectivity and messages. Requirements. Planning Changes Contoso plans to make the following changes: Use Stream Analytics to process and view data. Use Azure Time Series Insights to visualize data. Implement a system to sync device statuses and required settings. Add extra information to messages by using message enrichment. Create a notification system to send an alert if a condition exceeds a specified threshold. Implement a system to identify what causes the intermittent connection issues and lost messages. Requirements. Technical Requirements Contoso must meet the following requirements: Use the built-in functions of IoT Hub whenever possible. Minimize hardware and software costs whenever possible. Minimize administrative effort to provision devices at scale. Implement a system to trace message flow to and from iothub1. Minimize the amount of custom coding required to implement the planned changes. Prevent read operations from being negatively affected when you implement additional services. You need to enable telemetry message tracing through the entire IoT solution. What should you do?

Options

  • AMonitor device lifecycle events.
  • BUpload IoT device logs by using the File upload feature.
  • CEnable the DeviceTelemetry diagnostic log and stream the log data to an Azure event hub.
  • DImplement distributed tracing.

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    85% (23)

Explanation

IoT Hub is one of the first Azure services to support distributed tracing. As more Azure services support distributed tracing, you'll be able trace IoT messages throughout the Azure services involved in your solution. Enabling distributed tracing for IoT Hub gives you the ability to: Precisely monitor the flow of each message through IoT Hub using trace context. This trace context includes correlation IDs that allow you to correlate events from one component with events from another component. It can be applied for a subset or all IoT device messages using Automatically log the trace context to Azure Monitor diagnostic logs. Measure and understand message flow and latency from devices to IoT Hub and routing Start considering how you want to implement distributed tracing for the non-Azure services in your IoT solution. https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-distributed-tracing

Topics

#distributed tracing#IoT Hub monitoring#diagnostic logs#telemetry correlation

Community Discussion

No community discussion yet for this question.

Full AZ-220 Practice