You are setting up a custom allocation policy for DPS. What must your custom allocation Webhook (Azure Function) return in its HTTP response payload to specify the target hub?

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

Correct Answer: A JSON object containing 'iotHubHostName' and optionally initial device twin data

The response from the custom allocation Webhook must be a JSON object that includes the iotHubHostName property. It can also include initial device twin tags and properties to conf...

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

You are setting up a custom allocation policy for DPS. What must your custom allocation Webhook (Azure Function) return in its HTTP response payload to specify the target hub?

โœ“ Correct Answer & ExplanationAzure Device Provisioning Service

Correct Answer

A JSON object containing 'iotHubHostName' and optionally initial device twin data

Why This Answer Is Correct

The response from the custom allocation Webhook must be a JSON object that includes the iotHubHostName property. It can also include initial device twin tags and properties to configure the device upon registration.

๐Ÿ“š 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.