
Ultimate access to all questions.
Your company seeks to eliminate the manual management of AWS Lambda functions via the AWS console and instead intends to automate the process of uploading and updating Lambda functions using AWS CloudFormation templates. This move aims to streamline deployment processes and ensure consistency. Given this scenario, could you explain how to declare an AWS Lambda function within an AWS CloudFormation template? (Select two)
A
Write the AWS Lambda code inline in CloudFormation in the AWS::Lambda::Function block as long as there are no third-party dependencies
B
Upload all the code as a folder to S3 and refer the folder in AWS::Lambda::Function block
C
Upload all the code to CodeCommit and refer to the CodeCommit Repository in AWS::Lambda::Function block
D
Write the AWS Lambda code inline in CloudFormation in the AWS::Lambda::Function block and reference the dependencies as a zip file stored in S3
E
Upload all the code as a zip to S3 and refer the object in AWS::Lambda::Function block