nerdexam
Amazon

DVA-C02 · Question #336

A developer is creating a simple proof-of-concept demo by using AWS CloudFormation and AWS Lambda functions. The demo will use a CloudFormation template to deploy an existing Lambda function. The…

The correct answer is D. Add the relevant key and bucket to the S3Bucket and S3Key properties in the CloudFormation. https://aws.amazon.com/blogs/infrastructure-and-automation/deploying-aws-lambda-functions- using-aws-cloudformation-the-portable-way/

Submitted by lucia.co· Mar 5, 2026Deployment

Question

A developer is creating a simple proof-of-concept demo by using AWS CloudFormation and AWS Lambda functions. The demo will use a CloudFormation template to deploy an existing Lambda function. The Lambda function uses deployment packages and dependencies stored in Amazon S3. The developer defined an AWS::Lambda::Function resource in a CloudFormation template. The developer needs to add the S3 bucket to the CloudFormation template. What should the developer do to meet these requirements with the LEAST development effort?

Options

  • AAdd the function code in the CloudFormation template inline as the code property.
  • BAdd the function code in the CloudFormation template as the ZipFile property.
  • CFind the S3 key for the Lambda function. Add the S3 key as the ZipFile property in the
  • DAdd the relevant key and bucket to the S3Bucket and S3Key properties in the CloudFormation

How the community answered

(60 responses)
  • A
    7% (4)
  • B
    18% (11)
  • C
    3% (2)
  • D
    72% (43)

Explanation

https://aws.amazon.com/blogs/infrastructure-and-automation/deploying-aws-lambda-functions- using-aws-cloudformation-the-portable-way/

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice