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. 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. 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. 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. aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Correct Answer:
Verified
Q156: A developer is testing an application that
Q157: A developer is using AWS CodeDeploy to
Q158: A company has an application where reading
Q159: A Developer has implemented a Lambda function
Q160: What are the steps to using the
Q162: A company has written a Java AWS
Q163: A web application is using Amazon Kinesis
Q164: A legacy service has an XML-based SOAP
Q165: The release process workflow of an application
Q166: An organization must store thousands of sensitive
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents