Your company wants to move away from manually managing Lambda in the AWS console and wants to upload and update them using AWS CloudFormation. How do you declare an AWS Lambda function in CloudFormation? (select two)
AWS::Lambda::Function
Correct answer - 1) You upload all the code as a zip to S3 and refer the object in AWS::Lambda::Function block. 2) OR you can write the code inline for Node.js and Python as long as there are no dependencies for your code.
Read more here: