You need to deploy an IoT Edge custom module that requires access to a hardware device (e.g., /dev/ttyUSB0 for serial communication) on the host gateway. How should you configure this module in the deployment manifest?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Add hostConfig settings using the Binds or Devices parameter under the module's Container Create Options

To allow an IoT Edge module container to interact with host-level devices or paths, you must specify the mappings in the Docker Container Create Options inside the hostConfig secti...

๐Ÿ“‹Part of Microsoft Certified: Azure IoT Developer Specialty (AZ-220) ยท Azure Certification Practice
Real Exam ScenarioAzure IoT Edge

You need to deploy an IoT Edge custom module that requires access to a hardware device (e.g., /dev/ttyUSB0 for serial communication) on the host gateway. How should you configure this module in the deployment manifest?

โœ“ Correct Answer & ExplanationAzure IoT Edge

Correct Answer

Add hostConfig settings using the Binds or Devices parameter under the module's Container Create Options

Why This Answer Is Correct

To allow an IoT Edge module container to interact with host-level devices or paths, you must specify the mappings in the Docker Container Create Options inside the hostConfig section using the Binds or Devices fields.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure IoT Edge โ€” a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure IoT Edge is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.