exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 322 discussion

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?

  • 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.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tgv
Highly Voted 1 year, 2 months ago
Selected Answer: D
The correct solution would be D, to add the S3Bucket and S3Key properties in the CloudFormation template.
upvoted 8 times
...
albert_kuo
Most Recent 9 months, 1 week ago
Selected Answer: D
AWSTemplateFormatVersion: '2010-09-09' Resources: MyLambdaFunction: Type: 'AWS::Lambda::Function' Properties: FunctionName: MyLambdaFunction Handler: index.handler Role: arn:aws:iam::123456789012:role/execution_role Code: S3Bucket: my-lambda-functions-bucket S3Key: path/to/my-deployment-package.zip Runtime: python3.8 Timeout: 300 MemorySize: 128
upvoted 3 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
KarBiswa
1 year, 2 months ago
Selected Answer: D
https://aws.amazon.com/blogs/infrastructure-and-automation/deploying-aws-lambda-functions-using-aws-cloudformation-the-portable-way/
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago