Black Friday Reward - Upto 80% off - Ends in 0d 00h 00m 00s - Coupon code: VIP80

Amazon Web Services AWS Certified Developer - Associate DVA-C03 Question # 151 Topic 16 Discussion

Amazon Web Services AWS Certified Developer - Associate DVA-C03 Question # 151 Topic 16 Discussion

DVA-C03 Exam Topic 16 Question 151 Discussion:
Question #: 151
Topic #: 16

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

Transform: AWS::Serverless-2016-10-31

Resources:

StoreFunc:

Type: AWS::Serverless::Function

Properties:

Handler: store.getstore

Runtime: python3.13

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.


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.


D.

Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.


Get Premium DVA-C03 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.