
Answer-first summary for fast verification
Answer: Utilize S3Bucket and S3Key properties to reference the S3 bucket and key in the CloudFormation template.
The correct answer is D. To meet the requirements with the least development effort, the developer should use the S3Bucket and S3Key properties in the CloudFormation template. This approach directly references the S3 bucket and key where the Lambda function's deployment package is stored. This method is more straightforward and avoids the complexities of inlining code or specifying S3 keys in the ZipFile property.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a CloudFormation template for a demo involving AWS Lambda and S3, what is the least effort method for a developer to include an existing Lambda function's deployment package stored in S3?
A
Inline the function code in the CloudFormation template using the code property.
B
Use the ZipFile property in the CloudFormation template for the function code.
C
Specify the S3 key of the Lambda function's deployment package in the ZipFile property.
D
Utilize S3Bucket and S3Key properties to reference the S3 bucket and key in the CloudFormation template.
No comments yet.