A serverless pipeline processes thousands of short events per second, each step is idempotent, and each run finishes in seconds. Which Step Functions workflow type fits?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Hard
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.3: Orchestrate data pipelines.
Objective in the exam guide: Implement and maintain serverless workflows.
Choosing the wrong workflow type costs money at high volume or breaks guarantees for non-idempotent steps. It is a frequent exam distinction.
Why B is the answer
Express workflows
Express workflows suit high-volume, short-running work with idempotent steps.
Remember: Short, high-volume, idempotent: Express. Long or non-idempotent: Standard.
How it works
Step Functions has two workflow types: Standard and Express.
Express workflows run for up to five minutes and use at-least-once execution, which suits high-volume, idempotent steps.
Standard workflows use exactly-once execution, which suits long-running or non-idempotent work.
Clues in the question
The words that point to the answer, and what each one tells you.
- Thousands of short events per second
- High volume, short runs.
- Each step is idempotent
- At-least-once is safe.
In detail
- Express workflows run for up to five minutes, with at-least-once execution.
- Standard workflows use exactly-once execution, suited to non-idempotent actions such as payments.
Side by side with look-alikes
| Type | Execution model | Suits |
|---|---|---|
| Express | At-least-once, up to 5 minutes | High-volume, idempotent |
| Standard | Exactly-once | Long-running, non-idempotent |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Manual executionWrong
Manual runs cannot handle thousands per second.
B. Express workflowsRight
Short, high-volume, idempotent: Express. Long or non-idempotent: Standard.
C. Standard workflowsWrongMost tempting
Standard suits long-running or non-idempotent work, at higher cost per transition for this volume.
Why it tempts: Standard is the default type, so it feels like the safe choice. But for thousands of short, idempotent runs, Express is the better fit.
D. A cron job on EC2Wrong
A cron job is not serverless or event-driven.
In practice
- Keep steps idempotent if you use Express workflows.
Use case
An illustrative scenario, not a real incident.
A team moves its event-enrichment flow to Express workflows and handles a sale-day spike without changes.
See how it works
flowchart TD
A{"Are steps idempotent and runs under five minutes?"} -->|"Yes, high volume"| E["Express workflow"]
A -->|"No, or long-running"| S["Standard workflow"]How to read this chart
- At "Are steps idempotent and runs under five minutes?": if "Yes, high volume", go to "Express workflow"; if "No, or long-running", go to "Standard workflow".