DVA-C02 · Question #383
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 applica
The correct answer is B. Build the application by using the AWS Serverless Application Model (AWS SAM). Use a. AWS SAM provides a declarative, framework-level abstraction for defining serverless resources with minimal code, and its CLI automates building, packaging, and deploying Lambda functions and related infrastructure via CloudFormation.
Question
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?
Options
- ABuild the application by using shell scripts to create .zip files for each Lambda function. Manually
- BBuild the application by using the AWS Serverless Application Model (AWS SAM). Use a
- CBuild the application by using shell scripts to create .zip files for each Lambda function. Upload
- DBuild a container for each Lambda function. Store the container images in AWS CodeArtifact.
How the community answered
(32 responses)- A13% (4)
- B78% (25)
- C6% (2)
- D3% (1)
Why each option
AWS SAM provides a declarative, framework-level abstraction for defining serverless resources with minimal code, and its CLI automates building, packaging, and deploying Lambda functions and related infrastructure via CloudFormation.
Manually creating .zip files with shell scripts and deploying them by hand introduces significant operational overhead and is error-prone, the opposite of least overhead.
AWS SAM allows developers to define Lambda functions, APIs, and event sources in a concise YAML/JSON template and uses a SAM pipeline (sam build, sam deploy) to automate the entire deployment lifecycle with minimal custom scripting or operational overhead.
Uploading .zip files via scripts to S3 reduces some manual steps but still requires custom scripting for each function and lacks the integrated infrastructure management that SAM provides.
AWS CodeArtifact is a package management repository for code artifacts like npm or Maven packages, not a container registry, and Lambda container images should be stored in Amazon ECR.
Concept tested: Serverless deployment automation with AWS SAM
Source: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html
Community Discussion
No community discussion yet for this question.