
Answer-first summary for fast verification
Answer: Presence of Transform section indicates it is a Serverless Application Model (SAM) template
AWS CloudFormation template is a JSON- or YAML-formatted text file that describes your AWS infrastructure. Templates include several major sections. The "Resources" section is the only required section. The optional "Transform" section specifies one or more macros that AWS CloudFormation uses to process your template. Presence of Transform section indicates it is a Serverless Application Model (SAM) template - The AWS::Serverless transform, which is a macro hosted by AWS CloudFormation, takes an entire template written in the AWS Serverless Application Model (AWS SAM) syntax and transforms and expands it into a compliant AWS CloudFormation template. So, the presence of the Transform section indicates, the document is a SAM template. Incorrect options: It represents a Lambda function definition - Lambda function is created using "AWS::Lambda::Function" resource and has no connection to Transform section. It represents an intrinsic function - Intrinsic Functions in templates are used to assign values to properties that are not available until runtime. They usually start with Fn:: or !. Example: !Sub or Fn::Sub. Presence of 'Transform' section indicates it is a CloudFormation Parameter - CloudFormation parameters are part of Parameters block of the template, similar to below code: References: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In your role as a Developer working with AWS, you are provided with a YAML document that outlines the framework of a serverless application. Notably, the initial line of this document reads "Transform: 'AWS::Serverless-2016-10-31'".
Could you explain the function and significance of the Transform section within this YAML document?
A
It represents a Lambda function definition
B
It represents an intrinsic function
C
Presence of Transform section indicates it is a CloudFormation Parameter
D
Presence of Transform section indicates it is a Serverless Application Model (SAM) template
No comments yet.