A team is building serverless infrastructure using the AWS Serverless Application Model (AWS SAM) and must deploy everything with CloudFormation templates. What change should they make to their CloudFormation templates to use AWS SAM?
Choose an answer
Tap an option to check your answer.
Correct answer: Add a Transform section to the CloudFormation template and use the AWS SAM syntax to define serverless resources..
Why this is the answer
To use AWS SAM with CloudFormation, you must include a Transform section in your CloudFormation template, specifying AWS::Serverless-2016-10-31. This transform tells CloudFormation to process the SAM syntax, which is a shorthand for defining serverless resources like Lambda functions, APIs, and DynamoDB tables. CloudFormation then expands these SAM resources into their full CloudFormation equivalents before deployment. The incorrect options are: Adding a Resources section with AWS::Lambda::Function directly uses standard CloudFormation, not SAM. A Mappings section is for defining conditional parameter values, not for specifying resource types. A Parameters section is for input values, and while SAM has a Globals section, it's not specified via CloudFormation Parameters for this purpose.
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