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.

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.

...