Q82 — AWS DVA-C02 Ch.2

Question 82 of 100 | ← Chapter 2

A company is adopting serverless computing for some of its new services. A development team wants to use the AWS Serverless Application Model (AWS SAM) to create serverless infrastructure. All infrastructure must be deployed using AWS CloudFormation templates. What should the development team do to meet these requirements?

Correct Answer: C. Add a Transform section in the CloudFormation template. Define resources using AWS SAM syntax.

Explanation

Option A describes using AWS::Lambda::Function, which creates Lambda functions directly, but the requirement is to use AWS SAM — so A is incorrect. Option B incorrectly places AWS::Serverless::Function and AWS::Serverless::API in a Mappings section; Mappings define key-value mappings and are unrelated here. Option C correctly recommends adding a Transform section and defining resources using AWS SAM syntax — this is the standard and correct approach for AWS SAM. Option D misuses Parameters and does not reference AWS SAM Globals appropriately — so it is incorrect.