Microsoft AZ-220 Certification: Microsoft Azure IoT Developer Certification Exam Practice Questions and Answers – Azure IoT hub
You have an existing Azure IoT hub.
You use IoT Hub jobs to schedule long running tasks on connected devices.
Which three operations do the IoT Hub jobs support directly? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
• A. Trigger Azure functions.
• B. Invoke direct methods.
• C. Update desired properties.
• D. Send cloud-to-device messages.
• E. Disable IoT device registry entries.
• F. Update tags.
Correct Answer: BCF
Consider using jobs when you need to schedule and track progress any of the following activities on a set of devices:
✑ Invoke direct methods
✑ Update desired properties
✑ Update tags
You have an Azure IoT hub.
You need to recommend a solution to scale the IoT hub automatically.
What should you include in the recommendation?
• A. Create an SMS alert in IoT Hub for the Total number of messages used metric.
• B. Create an Azure function that retrieves the quota metrics of the IoT hub.
• C. Configure autoscaling in Azure Monitor.
• D. Emit custom metrics from the IoT device code and create an Azure Automation runbook alert.
Correct Answer: B
Note: IoT Hub is scaled and priced based on an allowed number of messages per day across all devices connected to that IoT Hub. If you exceed the allowed message threshold for your chosen tier and number of units, IoT Hub will begin rejecting new messages. To date, there is no built-in mechanism for automatically scaling an IoT Hub to the next level of capacity if you approach or exceed that threshold.
You have an Azure IoT hub that uses a Device Provisioning Service instance.
You create a new individual device enrollment that uses symmetric key attestation.
Which detail from the enrollment is required to auto provision the device by using the Device Provisioning Service?
• A. the registration ID of the enrollment
• B. the primary key of the enrollment
• C. the device identity of the IoT hub
• D. the hostname of the IoT hub
Correct Answer: A
An enrollment is the record of devices or groups of devices that may register through auto-provisioning. The enrollment record contains information about the device or group of devices, including:
✑ the attestation mechanism used by the device
✑ the optional initial desired configuration
✑ desired IoT hub
the desired device ID
Note: Azure IoT auto-provisioning can be broken into three phases:
1. Service configuration – a one-time configuration of the Azure IoT Hub and IoT Hub Device Provisioning Service instances, establishing them and creating linkage between them.
2. Device enrollment – the process of making the Device Provisioning Service instance aware of the devices that will attempt to register in the future. Enrollment is accomplished by configuring device identity information in the provisioning service, as either an “individual enrollment” for a single device, or a “group enrollment” for multiple devices.
3. Device registration and configuration
You have an Azure IoT hub that uses a Device Provisioning Service instance to automate the deployment of Azure IoT Edge devices.
The IoT Edge devices have a Trusted Platform Module (TPM) 2.0 chip.
From the Azure portal, you plan to add an individual enrollment to the Device Provisioning Service that will use the TPM of the IoT Edge devices as the attestation mechanism.
Which detail should you obtain before you can create the enrollment.
• A. the scope ID and the Device Provisioning Service endpoint
• B. the primary key of the Device Provisioning Service shared access policy and the global device endpoint
• C. the X.509 device certificate and the certificate chain
• D. the endorsement key and the registration ID
Correct Answer: D
The TPM simulator’s Registration ID and the Endorsement key, are used when you create an individual enrollment for your device.
You develop a custom Azure IoT Edge module named temperature-module.
You publish temperature-module to a private container registry named mycr.azurecr.io
You need to build a deployment manifest for the IoT Edge device that will run temperature-module.
Which three container images should you define in the manifest? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
• A. mcr.microsoft.com/azureiotedge-simulated-temperature-sensor:1.0
• B. mcr.microsoft.com/azureiotedge-agent:1.0
• C. mcr.microsoft.com/iotedgedev:2.0
• D. mycr.azurecr.io/temperature-module:latest
• E. mcr.microsoft.com/azureiotedge-hub:1.0
Correct Answer: BDE
Each IoT Edge device runs at least two modules: $edgeAgent and $edgeHub, which are part of the IoT Edge runtime. IoT Edge device can run multiple additional modules for any number of processes. Use a deployment manifest to tell your device which modules to install and how to configure them to work together.
More Exam Questions: