0 votes
in AWS by

You have the following YAML file given to you which is required to deploy a Lambda function using serverless deployment. AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: TestFunction: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs6.10 Environment: Variables: S3_BUCKET: demobucket Which of the following is required to ensure the deployment can take place? Please select 2 correct answers.

A. Use the cloudformation package command to package the deployment.

B. Use the cloudformation package command to deploy the template.

C. Place the function code at the root level of the working directory along with the YAML file.

D. Place the function code in the .eb extensions folder

1 Answer

0 votes
by

Answer - A and C.

The above snippet is used to create a serverless application that is deployed using the serverless deployment language.

You need to ensure that the Lambda function is present as part of the deployment package.

Option B is incorrect since these are not CloudFormation specific templates.

Option D is incorrect since this is normally used for Elastic Beanstalk deployments.

Related questions

0 votes
asked Apr 27 in AWS by DavidAnderson
0 votes
asked May 15 in AWS by DavidAnderson
...