exam questions

Exam AZ-220 All Questions

View all questions & answers for the AZ-220 exam

Exam AZ-220 topic 3 question 10 discussion

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

DRAG DROP -
You have an Azure IoT Edge device named Edge1.
You need to configure the module container to link the module storage to the host storage.
How should you configure the deployment manifest? To answer, drag the appropriate keys to the correct targets. Each key may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: createOptions -
Every module has a settings property that contains the module image, an address for the container image in a container registry, and any createOptions to configure the image on startup.

Box 2: portbindings -
Use the PortBindings setting in the HostConfig group of the Docker container create options to map the exposed port in the module to a port on the host device.
For example, if you exposed port 8080 inside the module and want to map that to port 80 of the host device, the create options in the template.json file would look like the following example:
"createOptions": {
"HostConfig": {
"PortBindings": {
"8080/tcp": [
{
"HostPort": "80"
}
]
}
}
}
Reference:
https://docs.microsoft.com/en-us/azure/iot-edge/how-to-use-create-options

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
kohmaksimka
Highly Voted 3 years, 3 months ago
Answer is incorrect, should be: createOptions & binds No portmapping is done in the following code but accessing the device local storage instead of container temporary storage: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-access-host-storage-from-module?view=iotedge-2020-11
upvoted 20 times
Ouss7
2 years, 9 months ago
yeah you are right thank you
upvoted 1 times
...
[Removed]
2 years, 11 months ago
Yeah, you are right, it is path binding, not port.
upvoted 1 times
...
...
d0bermannn
Most Recent 3 years, 4 months ago
looks correct as we see link provided
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago