You need to implement a dynamic allocation policy in DPS to assign devices to the nearest geographical IoT Hub based on a real-time lookup in a custom database. Which allocation policy should you configure?

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

Correct Answer: Custom allocation policy using an Azure Function

If the allocation logic depends on custom database lookups or external Webhooks, you must use a Custom Allocation Policy using an Azure Function. The built-in lowest latency policy...

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

You need to implement a dynamic allocation policy in DPS to assign devices to the nearest geographical IoT Hub based on a real-time lookup in a custom database. Which allocation policy should you configure?

โœ“ Correct Answer & ExplanationAzure Device Provisioning Service

Correct Answer

Custom allocation policy using an Azure Function

Why This Answer Is Correct

If the allocation logic depends on custom database lookups or external Webhooks, you must use a Custom Allocation Policy using an Azure Function. The built-in lowest latency policy only looks at network latency between the device and IoT Hubs.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Device Provisioning Service โ€” a core concept tested in Microsoft Certified: Azure IoT Developer Specialty (AZ-220). Understanding Azure Device Provisioning Service 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.