Reconfiguring Edge Devices for Offline Operation | Microsoft Azure IoT Developer Exam

Improve Reliability by Enabling Offline Operation for Edge Devices

Question

You have 100 edge devices registered in your environment monitoring IoT infrastructure.

After several weeks of operation you experience that 20 of them installed at distant places where the network bandwidth and stability results in communication problems and data loss.

In order to improve reliability, you decide to reconfigure the devices for offline operation to cope with temporary network outages and you add this code to the edgeAgent and the edgeHub sections of your deployment manifest:

"createOptions": { "HostConfig": { "PortBindings": { "8080/tcp": [ { "HostPort": "80" } ] } } } 
Does it help you to achieve your goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

Correct Answer: B.

Option A is incorrect because it is actually the createOptions section of the deployment manifest that should be used, but the code snippet in the question is used to map the exposed port in the module to a port on the host device.

Use the PortBindings parameter to map exposed ports of the container to a port on the host device.

Option B is CORRECT because you need to specify the path to the local storage by the Binds parameter of the createOptions section of the deployment manifest.

The section must be added to both the edgeAgent and the edgeHub sections.

References:

The code snippet provided in the question does not relate to configuring devices for offline operation, instead, it shows how to configure a port binding for an edge module. Specifically, it maps the container port 8080 to the host port 80.

Therefore, this configuration has no effect on improving reliability or coping with temporary network outages. It only configures the container to listen on port 8080 and exposes it on the host's port 80.

So the correct answer is B, No, it does not help to achieve the goal of improving reliability for edge devices. To improve reliability and enable offline operation for edge devices, other mechanisms like local storage, offline caching, and local processing need to be implemented.