ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 72 - DVA-C01 discussion

Report
Export

Given the source code for an AWS Lambda function in the local store.py containing a handler function called get_store and the following AWS CloudFormation template:

What should be done to prepare the template so that it can be deployed using the AWS CLI command aws cloudformation deploy?

A.
Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
Answers
A.
Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
B.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
Answers
B.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
C.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
Answers
C.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
D.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Answers
D.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Suggested answer: B

Explanation:

https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html

asked 16/09/2024
Dennis Rodrigues
21 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first