Which AWS service or tool should the developer use to define serverless resources in YAML?
CloudFormation serverless intrinsic functions
AWS Elastic Beanstalk
AWS Serverless Application Model (AWS SAM)
AWS Cloud Development Kit (AWS CDK)
Explanations:
CloudFormation serverless intrinsic functions are used to enhance CloudFormation templates, but they are not a tool specifically designed for defining serverless resources.
AWS Elastic Beanstalk is a platform-as-a-service (PaaS) for deploying web applications, not specifically designed for serverless architectures like AWS Lambda and API Gateway.
AWS Serverless Application Model (AWS SAM) is an extension of AWS CloudFormation designed specifically for defining serverless resources like Lambda, API Gateway, and DynamoDB.
AWS Cloud Development Kit (AWS CDK) is a developer-focused framework for defining cloud resources in code (e.g., TypeScript, Python) and not in YAML for serverless apps.