A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway, Amazon DynamoDB, and AWS Lambda.
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)
Answer(s): C
Explanation:
The recommended AWS service for defining serverless resources in YAML is the AWS Serverless Application Model (AWS SAM).
AWS SAM is an open-source framework that extends AWS CloudFormation to provide a simplified way to define the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application. You can define your serverless resources in a YAML template and then use the AWS SAM CLI to package and deploy your application.
AWS CloudFormation serverless intrinsic functions can also be used to define serverless resources in YAML, but they have some limitations compared to AWS SAM. AWS Elastic Beanstalk is a platform as a service (PaaS) that is not serverless specific, while the AWS Cloud Development Kit (AWS CDK) is an alternative to YAML-based templates that uses familiar programming languages like TypeScript, Python, and Java to define AWS infrastructure.
Reference:
https://aws.amazon.com/serverless/sam/
Reveal Solution
Next Question