Explain the relationship between Serverless Application Model (SAM) and CloudFormation.
SAM templates are an extension of CloudFormation templates (syntactic sugar over CloudFormation). When you want to run a SAM template, AWS first transpiles the SAM template into a CloudFormation template.