exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 3 question 33 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure subscription that contains an Azure IoT hub named Hub1 and an Azure IoT Edge device named Device1.

You need to configure Device1 to operate in extended offline mode and to support modifying the configuration of modules deployed to Device1 while the device offline.

Solution: From Azure Cloud Shell, you run the following Azure CLI command.

az lot edge set-modules --device-id Device1 --hub-name Hub1 --content deployment.json

Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
j_c_000
2 years, 1 month ago
Selected Answer: B
Answer here is "no". Simply deploying the modules does not solve the requirement to configure modules while the device is offline. See https://github.com/Azure/iotedge/blob/main/edge-agent/README.md ConfigSource May be set to "twin" or "local". When set to "twin", the edge device twin is used as a configuration source for modules. When set to "local", a file (config.json) is used as a configuration source for modules. A custom configuration JSON file can be used by bind mounting a directory containing the custom configuration file into the edge agent container and specifying the path to the configuration file in the container using the LocalConfigPath environment variable. DeviceConnectionString must be set to a device connection string if ConfigSource is set to "twin". LocalConfigPath Path to the custom configuration JSON file used as the configuration source in the "local" mode.
upvoted 2 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 ...