AWS Certified Developer Associate (#14)

A Developer must deploy a new AWS Lambda function using an AWS CloudFormation template. Which procedures will deploy a Lambda function? (Select TWO.)

Upload the code to an AWS CodeCommit repository, then add a reference to it in an
AWS::Lambda::Function
resource in the template.
Create an
AWS::Lambda::Function
resource in the template, then write the code directly inside the CloudFormation template.
Upload a .ZIP file containing the function code to Amazon S3, then add a reference to it in an
AWS::Lambda::Function
resource in the template.
Upload a .ZIP file to AWS CloudFormation containing the function code, then add a reference to it in an
AWS::Lambda::Function
resource in the template.
Upload the function code to a private Git repository, then add a reference to it in an
AWS::Lambda::Function
resource in the template.