You are authoring a CloudFormation template to deploy a serverless application that uses API Gateway, DynamoDB, and Lambda. Which AWS tool or framework should you use to define serverless resources in YAML?
Choose an answer
Tap an option to check your answer.
Correct answer: AWS Serverless Application Model (AWS SAM).
Why this is the answer
AWS Serverless Application Model (AWS SAM) is an open-source framework specifically designed for building serverless applications. It extends CloudFormation with a simplified syntax for defining serverless resources like APIs, Lambda functions, and DynamoDB tables, making it the most suitable tool for this scenario. CloudFormation serverless intrinsic functions do not exist; CloudFormation itself is the underlying infrastructure as code service, but SAM provides the serverless-specific abstractions. AWS Elastic Beanstalk is a platform-as-a-service (PaaS) for deploying web applications and services, not specifically for serverless architectures. AWS Cloud Development Kit (AWS CDK) allows you to define cloud infrastructure using familiar programming languages, but SAM offers a more direct and opinionated approach for serverless applications.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed