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

Posted by: Pdfprep Category: DVA-C01 Tags: , ,

Given the source code for an AWS Lambda function in the local store.pycontaining 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 compileto base64 encode and embed the source file into a modified CloudFormation template.
B . Use aws cloudformation packageto upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
C . Use aws lambda zipto package the source file together with the CloudFormation template and deploy the resulting zip archive.
D . Use aws serverless create-packageto embed the source file directly into the existing CloudFormation template.

Answer: D

Leave a Reply

Your email address will not be published.