microsoft az-220 online test

Microsoft Azure IoT Developer

What students need to know about the az-220 exam

  • Total 136 Questions & Answers
  • Has case studies
  • Passing score: 700

Question 1 Topic 1, Case Study 1Case Study Question View Case

What should you do to identify the cause of the connectivity issues?

  • A. Send cloud-to-device messages to the IoT devices.
  • B. Use the heartbeat pattern to send messages from the IoT devices to iothub1.
  • C. Monitor the connection status of the device twin by using an Azure function.
  • D. Enable the collection of the Connections diagnostic logs and set up alerts for the connected devices count metric.
Answer:

D

Explanation:
Scenario: You discover connectivity issues between the IoT gateway devices and iothub1, which cause IoT devices to lose
connectivity and messages.
To log device connection events and errors, turn on diagnostics for IoT Hub. We recommend turning on these logs as early
as possible, because if diagnostic logs aren't enabled, when device disconnects occur, you won't have any information to
troubleshoot the problem with.
Step 1:
1. Sign in to the Azure portal.
2. Browse to your IoT hub.
3. Select Diagnostics settings.
4. Select Turn on diagnostics.
5. Enable Connections logs to be collected.
6. For easier analysis, turn on Send to Log Analytics (see pricing).
Step 2:
Set up alerts for device disconnect at scale
To get alerts when devices disconnect, configure alerts on the Connected devices (preview) metric.
Reference: https://docs.microsoft.com/bs-cyrl-ba/azure/iot-hub/iot-hub-troubleshoot-connectivity

Discussions

Question 2 Topic 1, Case Study 1Case Study Question View Case

HOTSPOT
You are writing code to provision IoT devices by using the Device Provisioning Service.
Which two details from the Overview blade of the Device Provisioning Service are required to provision a new IoT client
device? To answer, select the appropriate detail in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: ID Scope
In the Azure portal, select the Overview blade for your Device Provisioning service and copy the ID Scope value. The ID
Scope is generated by the service and guarantees uniqueness. It is immutable and used to uniquely identify the registration
IDs.
Box 2: Global device endpoint
The global_prov_uri variable, which allows the IoT Hub client registration API IoTHubClient_LL_CreateFromDeviceAuth to
connect with the designated Device Provisioning Service instance.
Example code:
static const char* global_prov_uri = "global.azure-devices-provisioning.net"; static const char* id_scope = "[ID Scope]";
Reference:
https://docs.microsoft.com/en-us/azure/iot-dps/tutorial-set-up-device
Provision and manage devices

Discussions

Question 3 Topic 2, Case Study 2Case Study Question View Case

You plan to deploy Azure Time Series Insights.
What should you create on iothub1 before you deploy Time Series Insights?

  • A. a new message route
  • B. a new consumer group
  • C. a new shared access policy
  • D. an IP filter rule
Answer:

B

Explanation:
Create a dedicated consumer group in the IoT hub for the Time Series Insights environment to consume from. Each Time
Series Insights event source must have its own dedicated consumer group that isn't shared with any other consumer. If
multiple readers consume events from the same consumer group, all readers are likely to exhibit failures. Reference:
https://docs.microsoft.com/en-us/azure/time-series-insights/time-series-insights-how-to-add-an-event-source-iothub

Discussions

Question 4 Topic 2, Case Study 2Case Study Question View Case

How should you complete the GROUP BY clause to meet the Streaming Analytics requirements?

  • A. GROUP BY HoppingWindow(Second, 60, 30)
  • B. GROUP BY TumblingWindow(Second, 30)
  • C. GROUP BY SlidingWindow(Second, 30)
  • D. GROUP BY SessionWindow(Second, 30, 60)
Answer:

B

Explanation:
Scenario: You plan to use a 30-second period to calculate the average temperature reading of the sensors.
Tumbling window functions are used to segment a data stream into distinct time segments and perform a function against
them, such as the example below. The key differentiators of a Tumbling window are that they repeat, do not overlap, and an
event cannot belong to more than one tumbling window.
Incorrect Answers:
A: Hopping window functions hop forward in time by a fixed period. It may be easy to think of them as Tumbling windows that
can overlap, so events can belong to more than one Hopping window result set. Reference:
https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-window-functions

Discussions

Question 5 Topic 2, Case Study 2Case Study Question View Case

HOTSPOT
You need to use message enrichment to add additional device information to messages sent from the IoT gateway devices
when the reported temperature exceeds a critical threshold.
How should you configure the enrich message values? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Reference: https://docs.microsoft.com/bs-cyrl-ba/azure/iot-hub/iot-hub-message-enrichments-overview
Process and manage data

Discussions

Question 6 Topic 3, Case Study 3Case Study Question View Case

You need to configure Stream Analytics to meet the POV requirements.
What are two ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. From IoT Hub, create a custom event hub endpoint, and then configure the endpoint as an input to Stream Analytics.
  • B. Create a Stream Analytics module, and then deploy the module to all IoT Edge devices in the fleet.
  • C. Create an input in Stream Analytics that uses the built-in events endpoint of IoT Hub as the source.
  • D. Route telemetry to an Azure Blob storage custom endpoint, and then configure the Blob storage as a reference input for Stream Analytics.
Answer:

A C

Discussions

Question 7 Topic 3, Case Study 3Case Study Question View Case

DRAG DROP
You need to add Time Series Insights to the solution to meet the pilot requirements.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the
answer area and arrange them in the correct order.
Select and Place:

Answer:

Explanation:
Step 1: Provision Time Series Insights
Select Provision new IoT Hub to create a new IoT hub.
Step 2: Route telemetry from IoT Hub to a custom event.
Step 3: Add a data access policy to Time Series Insights for the dashboard web app
Scenario: Requirements. Pilot Requirements
During the pilot phase, devices will be deployed to 10 offices. Each office will have up to 1,000 devices.
During this phase, you will add Azure Time Series Insights in parallel to Stream Analytics to support real-time graphs and
queries in a dashboard web app.
The pilot deployment must minimize operating costs.
Incorrect Answers:
No need to use an endpoint.
Reference: https://docs.microsoft.com/en-us/azure/time-series-insights/time-series-insights-update-create-environment

Discussions

Question 8 Topic 3, Case Study 3Case Study Question View Case

You need to store the real-time alerts generated by Stream Analytics to meet the technical requirements.
Which type of Stream Analytics output should you configure?

  • A. Azure Blob storage
  • B. Microsoft Power BI
  • C. Azure Cosmos DB
  • D. Azure SQL Database
Answer:

A

Explanation:
When you create a Time Series Insights Preview pay-as-you-go (PAYG) SKU environment, you create two Azure resources:
An Azure Storage general-purpose V1 blob account for cold data storage.

An Azure Time Series Insights Preview environment that can be configured for warm data storage. Reference:

https://docs.microsoft.com/en-us/azure/time-series-insights/time-series-insights-update-storage-ingress

Discussions

Question 9 Topic 3, Case Study 3Case Study Question View Case

You need to recommend the format of telemetry messages to meet the POV requirements.
What should you recommend?

  • A. XML
  • B. Avro
  • C. JSON
Answer:

C

Explanation:
Scenario: POV Requirements
Ensure that all message content during this phase is human readable to simplify debugging.

Avro uses a binary format, so it is not human readable.
The more lightweight JSON (Javascript object notation) has become a popular alternative to XML for various reasons. A
couple obvious ones are:
Less verbose- XML uses more words than necessary

JSON is faster- Parsing XML software is slow and cumbersome. Reference:

https://blog.cloud-elements.com/json-better-xml

Discussions

Question 10 Topic 3, Case Study 3Case Study Question View Case

During the POV phase, telemetry from IoT Hub stops flowing to the hot path. The cold path continues to work.
What should you do to restore the hot path?

  • A. Disable the fallback route.
  • B. Run the Test all routes action.
  • C. Create an explicit route for the hot path.
  • D. Modify cold-route to send only some telemetry data to the cold path.
Answer:

C

Discussions
To page 2