AWS Certified Developer – Associate (DVA-C02) — Question 378
A company is working on a new serverless application. A developer needs to find an automated way to deploy AWS Lambda functions and the dependent infrastructure with minimum coding effort. The application also needs to be reliable.
Which method will meet these requirements with the LEAST operational overhead?
Answer options
- A. Build the application by using shell scripts to create .zip files for each Lambda function. Manually upload the .zip files to the AWS Management Console.
- B. Build the application by using the AWS Serverless Application Model (AWS SAM). Use a continuous integration and continuous delivery (CI/CD) pipeline and the SAM CLI to deploy the Lambda functions.
- C. Build the application by using shell scripts to create .zip files for each Lambda function. Upload the .zip files. Deploy the .zip files as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.
- D. Build a container for each Lambda function. Store the container images in AWS CodeArtifact. Deploy the containers as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.
Correct answer: B
Explanation
AWS Serverless Application Model (AWS SAM) is an open-source framework designed specifically for building serverless applications on AWS with minimal coding effort. Using the SAM CLI in conjunction with a CI/CD pipeline provides a reliable, automated deployment mechanism with the lowest operational overhead. Other options rely on manual processes, custom shell scripting, or incorrect storage services like AWS CodeArtifact (which is a package repository, not a container registry like Amazon ECR).