AWS Certified SysOps Administrator – AssociateDeployment, Provisioning, and AutomationEasy

A company is using AWS Lambda functions for several microservices. They need to ensure that all Lambda functions are deployed with consistent configurations, including environment variables, memory settings, and timeout values, and that updates are applied in a controlled manner. Which AWS service can help automate the deployment and configuration management of these Lambda functions?

  1. AAWS CodeDeploy
  2. BAWS Serverless Application Model (SAM)
  3. CAWS Elastic Container Registry (ECR)
  4. DAWS CloudFormation
Show answer & explanation

Correct answer: B. AWS Serverless Application Model (SAM)

AWS Serverless Application Model (SAM) is an open-source framework that extends AWS CloudFormation to provide a simplified way of defining serverless applications. It allows you to specify Lambda functions, APIs, databases, and event source mappings using a concise syntax, ensuring consistent configuration and controlled deployments.

Why the other options are wrong

  • A. AWS CodeDeploy can deploy Lambda functions, but SAM provides a more comprehensive framework for defining the entire serverless application, including its configurations.
  • C. ECR is for storing Docker container images; it's not directly for deploying or managing Lambda function configurations.
  • D. While SAM is built on CloudFormation, SAM provides a higher-level abstraction and simplified syntax specifically for serverless applications, making it more efficient for this use case.

AWS Serverless Application Model (SAM)

An open-source framework for building serverless applications on AWS, providing a simplified way to define Lambda functions, APIs, and event sources using a CloudFormation extension.

  • Simplifies serverless application definition.
  • Extends AWS CloudFormation.
  • Supports local debugging and testing.

Memory trick: SAM crafts lambda, simple and grand.

More Deployment, Provisioning, and Automation questions