Provisioning IoT devices with a pre-provisioning hook that validates the X.509 serial number
Short answer
C Use a Lambda pre-provisioning hook to validate the serial number and enable auto-registration so the device is provisioned only on first connection.
Question
Key Takeaways
A Lambda pre-provisioning hook validates device attributes (here, the serial number) during provisioning; with auto-registration the thing is created only when the device first connects, satisfying the 'no data until installed' requirement.
Sensors ship with an X.509 certificate from a private CA and must not connect until installed. AWS IoT Core Fleet Provisioning with a Lambda pre-provisioning hook validates the SerialNumber parameter before a thing is registered, and auto-registration provisions the device only on its first connection at install time.
Common mistake: Calling RegisterThing during manufacturing (Option A) provisions the thing at manufacturing time, violating the requirement that devices cannot send data until they are installed.
Expert Analysis
Why the Answer Is Correct
Option C uses a Lambda pre-provisioning hook to validate the SerialNumber parameter, registers the private CA with IoT Core, and enables auto-registration. Auto-registration means the device is provisioned (thing created and policy attached) only when it first connects at installation, so it cannot send data before being installed. The pre-provisioning hook enforces that the certificate's serial number matches the expected value.
Why the Other Options Are Wrong
Option A calls RegisterThing during manufacturing, which provisions the thing at manufacturing time and breaks the 'not until installed' rule. Option B uses a Step Functions state machine rather than the supported Lambda pre-provisioning hook and calls StartThingRegistrationTask during installation without the serial-validation hook. Option D relies on claim certificates and template parameter validation but lacks the Lambda hook that validates the serial number against the CA-issued certificate.
Community Comment Notes
kejam highlights that Fleet Provisioning provides Lambda-based provisioning hooks for validating device attributes. The majority vote is C (77) over D (15). TomTom argues A meets the requirements, but A's manufacturing-time RegisterThing conflicts with the install-gated requirement.
Official Reference
- https://docs.aws.amazon.com/iot/latest/developerguide/iot-provision.html
- https://docs.aws.amazon.com/iot/latest/developerguide/pre-provisioning-hook.html
These links open the official vendor documentation in a new tab.
Community Votes
84% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 10 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 10
-
kejam 👍 8 Answered CIn addition to validating the bootstrap certificate presented by devices, Fleet Provisioning also provides Lambda-based provisioning hooks that enable appropriate validation for pertinent device attributes. Examples of device attributes could include a serial number ... https://aws.amazon.com/blogs/iot/how-to-automate-onboarding-of-iot-devices-to-aws-iot-core-at-scale-with-fleet-provisioning/
-
duriselvan 👍 3cANSGiven the requirements, Option C is the most suitable solution: It combines serial number validation using a Lambda function. The pre-provisioning hook ensures validation before registration. The allow-auto-registration parameter provides fine-grained control over auto-registration.
-
ele 👍 2 Answered DDevices can be manufactured with a provisioning claim certificate and private key (which are special purpose credentials) embedded in them. If these certificates are registered with AWS IoT, the service can exchange them for unique device certificates that the device can use for regular operations https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html#claim-based
-
duriselvan 👍 1AWS provides several different ways to provision a device and install unique client certificates on it. This section describes each way and how to select the best one for your IoT solution. These options are described in detail in the whitepaper titled Device Manufacturing and Provisioning with X.509 Certificates in AWS IoT Core.
-
TomTom 👍 1 Answered AOption A, meet the requirements. Why Not C, because C mentioned as Auto Provisioing, while the requirements is to have control.
Show 5 more comments
-
duriselvan 👍 1https://docs.aws.amazon.com/iot/latest/developerguide/iot-provision.html
-
alexis123456 👍 2Correct Answer is D
-
titi_r 👍 1 Answered CCorrect ans - C.
-
career360guru 👍 1 Answered COption C
-
duriselvan 👍 1C is ans
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →