Which solution will meet these requirements?
Create an AWS Lambda function that can validate the serial number. Create an AWS IoT Core provisioning template. Include the SerialNumber parameter in the Parameters section. Add the Lambda function as a pre-provisioning hook. During manufacturing, call the RegisterThing API operation and specify the template and parameters.
Create an AWS Step Functions state machine that can validate the serial number. Create an AWS IoT Core provisioning template. Include the SerialNumber parameter in the Parameters section. Specify the Step Functions state machine to validate parameters. Call the StartThingRegistrationTask API operation during installation.
Create an AWS Lambda function that can validate the serial number. Create an AWS IoT Core provisioning template. Include the SerialNumber parameter in the Parameters section. Add the Lambda function as a pre-provisioning hook. Register the CA with AWS IoT Core, specify the provisioning template, and set the allow-auto-registration parameter.
Create an AWS IoT Core provisioning template. Include the SerialNumber parameter in the Parameters section. Include parameter validation in the template. Provision a claim certificate and a private key for each device that uses the CA. Grant AWS IoT Core service permissions to update AWS IoT things during provisioning.
Explanations:
AWS IoT Core provisioning templates support pre-provisioning hooks with Lambda functions. However, the solution does not specify the correct method for registering the CA with AWS IoT Core or how the installation process works. Additionally, the RegisterThing API is more relevant to device registration, not to the validation of the serial number during installation.
AWS Step Functions are not typically used for this type of validation. While Step Functions can orchestrate workflows, the solution does not clearly indicate how the installation phase links with validation of the serial number for each sensor before allowing data submission to AWS.
This option correctly integrates the use of a pre-provisioning Lambda function to validate the serial number and incorporates it into the AWS IoT Core provisioning template. Additionally, registering the CA with AWS IoT Core allows proper validation before the sensor is able to send data. This meets the requirement of ensuring sensors cannot send data until they are installed.
While the provisioning template is used correctly, this option suggests automatic provisioning and validation within the template itself, which doesn’t align with the specific requirement to validate the serial number during installation. Moreover, the process outlined lacks a proper pre-provisioning hook for validation of the serial number before allowing sensor communication.