Q73 — AWS DVA-C02 Ch.1

Question 73 of 100 | ← Chapter 1

A developer is using AWS CloudFormation and an AWS Lambda function to create a proof-of-concept demonstration. The demonstration will deploy an existing Lambda function using a CloudFormation template. The Lambda function uses a deployment package and dependencies stored in Amazon S3. The developer has defined an AWS::Lambda::Function resource in the CloudFormation template. The developer needs to add the S3 bucket to the CloudFormation template. What action should the developer take to meet these requirements with the least development effort?

Correct Answer: D. Add the relevant bucket and key in the S3Bucket and S3Key properties in the CloudFormation template.

Explanation

Option D is correct: the developer should specify the S3 bucket and key for the Lambda function’s deployment package in the S3Bucket and S3Key properties of the AWS::Lambda::Function resource. This requires minimal development effort because it avoids inlining code or embedding ZipFile content directly in the template.