Q86 — AWS DVA-C02 Ch.2
Question 86 of 100 | ← Chapter 2
A company is developing a new serverless application. Developers want an automated mechanism to deploy AWS Lambda functions and their dependent infrastructure while minimizing coding effort. The application must also be reliable. Which mechanism meets these requirements with the lowest operational overhead?
- A. Build the application using shell scripts to create a .zip file for each Lambda function. Manually upload the .zip files via the AWS Management Console.
- B. Build the application using the AWS Serverless Application Model (AWS SAM). Deploy Lambda functions using a CI/CD pipeline and the SAM CLI. ✓
- C. Build the application using shell scripts to create a .zip file for each Lambda function. Upload the .zip files and use the AWS CLI within a CI/CD pipeline to deploy them as Lambda functions.
- D. Build a container for each Lambda function. Store container images in AWS CodeArtifact. Use the AWS CLI in a CI/CD pipeline to deploy containers as Lambda functions.
Correct Answer: B. Build the application using the AWS Serverless Application Model (AWS SAM). Deploy Lambda functions using a CI/CD pipeline and the SAM CLI.
Explanation
Option B is correct because the AWS Serverless Application Model (AWS SAM) provides a framework specifically designed to simplify serverless application deployment. With AWS SAM, developers can declaratively define Lambda functions and related resources (e.g., API Gateway, DynamoDB tables) and automate deployment using SAM CLI and CI/CD pipelines. This approach minimizes custom code, reduces manual effort, and delivers reliable, repeatable deployments.