ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 194 - DVA-C02 discussion

Report
Export

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 anAWS 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?

A.
Add the function code in the CloudFormation template inline as the code property
Answers
A.
Add the function code in the CloudFormation template inline as the code property
B.
Add the function code in the CloudFormation template as the ZipFile property.
Answers
B.
Add the function code in the CloudFormation template as the ZipFile property.
C.
Find the S3 key for the Lambda function Add the S3 key as the ZipFile property in the CloudFormation template.
Answers
C.
Find the S3 key for the Lambda function Add the S3 key as the ZipFile property in the CloudFormation template.
D.
Add the relevant key and bucket to the S3Bucket and S3Key properties in the CloudFormation template
Answers
D.
Add the relevant key and bucket to the S3Bucket and S3Key properties in the CloudFormation template
Suggested answer: D

Explanation:

S3BucketandS3Key:These properties in a CloudFormationAWS::Lambda::Functionresource specify the location of the function's code in S3.

Least Development Effort:This solution minimizes code changes, relying on CloudFormation to reference the existing S3 deployment package.

AWS::Lambda::Function Resourcehttps://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html

asked 16/09/2024
Ages Handriyanto
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first