AWS Certified Developer – Associate (DVA-C02) — Question 28

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?

Answer options

Correct answer: C

Explanation

The correct answer is C, AWS Serverless Application Model (AWS SAM), as it is specifically designed for defining serverless applications in YAML. Options A and D, while related to CloudFormation, do not provide the same level of abstraction and ease for serverless architecture as AWS SAM does. Option B, AWS Elastic Beanstalk, is primarily for managing traditional applications, not serverless resources.