A serverless pipeline made of Lambda functions, a Step Functions state machine and a DynamoDB table must be packaged and deployed together. Which tool is built for this?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Medium
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.4: Apply programming concepts.
Objective in the exam guide: Use AWS SAM to package and deploy serverless data pipelines (for example, Lambda functions, Step Functions, DynamoDB tables).
Serverless pipelines have many small parts. Deploying them together, consistently, needs a tool built for serverless.
Why A is the answer
The AWS Serverless Application Model (AWS SAM)
AWS SAM packages and deploys serverless applications, including functions, state machines and tables.
Remember: Package and deploy serverless pipelines: AWS SAM.
How it works
AWS SAM is a framework for defining serverless applications, with simplified syntax for functions, APIs, state machines and tables.
SAM templates extend CloudFormation, so deployments are repeatable.
The SAM CLI builds packages, supports local testing and deploys.
Clues in the question
The words that point to the answer, and what each one tells you.
- Lambda, Step Functions and DynamoDB together
- A serverless application.
- Packaged and deployed
- SAM.
In detail
- SAM templates are an extension of CloudFormation.
- The SAM CLI builds, tests locally and deploys.
Side by side with look-alikes
| Tool | Deploys serverless apps? |
|---|---|
| AWS SAM | Yes |
| DataBrew | No |
| Athena | No |
| Snowball | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The AWS Serverless Application Model (AWS SAM)Right
Package and deploy serverless pipelines: AWS SAM.
B. AWS Glue DataBrewWrongMost tempting
DataBrew prepares data.
Why it tempts: It is a data tool, which fits the data context. But it prepares data; it does not deploy applications.
C. Amazon AthenaWrong
Athena queries data.
D. AWS SnowballWrong
Snowball moves data physically.
In practice
- Deploy SAM templates from CI, not from laptops.
Use case
An illustrative scenario, not a real incident.
A team defines its Lambda functions and state machine in one SAM template and deploys with a single command.
See how it works
flowchart LR T["SAM template"] --> F["Lambda functions"] T --> S["Step Functions state machine"] T --> D["DynamoDB table"]
How to read this chart
- "SAM template" leads to "Lambda functions" and "Step Functions state machine" and "DynamoDB table".