
Answer-first summary for fast verification
Answer: Ensure the Lambda function code returns a response to the pre-signed URL.
The correct answer is B. When using a CloudFormation custom resource, the AWS Lambda function that handles the resource creation needs to send a response to the pre-signed URL provided by CloudFormation. This response is essential because it informs CloudFormation about the status of the custom resource creation process. If the Lambda function does not send a response, CloudFormation will remain in the CREATE_IN_PROGRESS state. Therefore, the engineer should ensure the Lambda function code returns a response to the pre-signed URL.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A DevOps engineer has implemented an AWS CloudFormation custom resource to configure an AD Connector using an AWS Lambda function. Despite the Lambda function successfully creating the AD Connector, CloudFormation is not updating its status from CREATE_IN_PROGRESS to CREATE_COMPLETE. What should the engineer do to address this problem?
A
Ensure the Lambda function code has exited successfully.
B
Ensure the Lambda function code returns a response to the pre-signed URL.
C
Ensure the Lambda function IAM role has cloudformation:UpdateStack permissions for the stack ARN.
D
Ensure the Lambda function IAM role has ds:ConnectDirectory permissions for the AWS account.
No comments yet.