exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 9 question 2 discussion

Actual exam question from Microsoft's AZ-220
Question #: 2
Topic #: 9
[All AZ-220 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AnonymousJhb
Highly Voted 4 years, 2 months ago
Answer is correct per MS url steps below. static const char* global_prov_uri = "global.azure-devices-provisioning.net";static const char* id_scope = "[ID Scope]";https://docs.microsoft.com/en-us/azure/iot-dps/tutorial-set-up-device
upvoted 11 times
...
insanewriters
Most Recent 2 years, 4 months ago
Answer is correct. The QuickStart in DPS specifically mentions ID Scope and Global device endpoint as the two things required to provision a device.
upvoted 1 times
...
Ouss7
2 years, 11 months ago
we can see the variable global_prov_uri in this code sample for provisioning https://github.com/Azure/azure-iot-sdk-c/blob/main/provisioning_client/samples/prov_dev_client_sample/prov_dev_client_sample.c
upvoted 1 times
...
Lochi
4 years ago
Ans : Service endpoint and ID Scope https://docs.microsoft.com/en-us/azure/iot-dps/quick-create-device-symmetric-key-node
upvoted 3 times
...
ADC88
4 years, 2 months ago
Wrong answers, correct are: Service endpoint and ID Scope as mentioned in the doc: https://docs.microsoft.com/en-us/azure/iot-dps/quick-create-device-symmetric-key-csharp#prepare-the-device-provisioning-code
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...