exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 1 question 13 discussion

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

You have 100 devices that connect to an Azure IoT hub named Hub1. The devices connect by using a symmetric key.
You deploy an IoT hub named Hub2.
You need to migrate 10 devices from Hub1 to Hub2. The solution must ensure that the devices retain the existing symmetric key.
What should you do?

  • A. Add a desired property to the device twin of Hub2. Update the endpoint of the 10 devices to use Hub2.
  • B. Add a desired property to the device twin of Hub1. Recreate the device identity on Hub2.
  • C. Recreate the device identity on Hub2. Update the endpoint of the 10 devices to use Hub2.
  • D. Disable the 10 devices on Hub1. Update the endpoint of the 10 devices to use Hub2.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Desired properties. Used along with reported properties to synchronize device configuration or conditions. The solution back end can set desired properties, and the device app can read them. The device app can also receive notifications of changes in the desired properties.
Reference:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-device-twins

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
pdeng
2 years, 6 months ago
I would go for C. The assumption is the connection string is hard-coded in device.
upvoted 2 times
...
Robert12345Robert
2 years, 9 months ago
tricky question, the endpoint is not changing by itself, you should do some programming on the device to support this. That is why I think answer C is the better and more accurate.
upvoted 3 times
hotwheelsinsf
2 years, 4 months ago
lots more working re-defining the endpoints....
upvoted 1 times
...
...
classicryder
3 years, 1 month ago
why not A?
upvoted 1 times
...
d0bermannn
3 years, 5 months ago
Selected Answer: B
nice question, that is the point where dev.twin must be used
upvoted 1 times
...
tita_tovenaar
4 years ago
should be B. scenario is mentioned in following doc: https://docs.microsoft.com/en-us/azure/iot-dps/how-to-reprovision
upvoted 2 times
d0bermannn
3 years, 6 months ago
your link have another option, but B still correct, as there are many ways to skin a cat)
upvoted 1 times
...
...
JeeBi
4 years, 1 month ago
When creating a device, you can provide the symmetric keys. So I would go for answer C: recreate the devices using the same keys and the change the endpoint.
upvoted 3 times
jracabrera
4 years, 1 month ago
Thanks JeeBi. I think you are right about recreate the device using the same keys. But, in real life, instead go to 10 devices and change the endpoint, you would use the the twin desired properties for your devices to consume the IoT Hub host name. In that way you can use Hub2. For me, the better is option B.
upvoted 4 times
...
...
lukeross1504
4 years, 3 months ago
is the answer correct?
upvoted 3 times
jracabrera
4 years, 1 month ago
For me, yes it is. Option B.
upvoted 4 times
...
...
BoomJosh
4 years, 3 months ago
Appeared for exam on 3/24/2021 and successfully cleared it, this question was there.
upvoted 2 times
alexa123456789
4 years, 2 months ago
what did you choose?
upvoted 8 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 ...