Step Functions
여러 단계를 상태 기계로 오케스트레이션. 재시도·분기 내장
이게 뭔가요? / What is this?
Step Functions는 서버가 아니라, 여러 작업 단계를 순서·조건·재시도까지 정해둔 대로 자동 진행시키는 가상의 상태 기계(워크플로 엔진)입니다. 종이에 그려둔 업무 흐름도를 그대로 따라 움직이는 자동 현장 감독처럼, 각 단계가 끝나면 다음으로 넘기고 실패하면 정해둔 대로 재시도하거나 다른 길로 분기합니다.
개요 / Overview
Step Functions는 Lambda 등 여러 작업을 순서·조건·병렬로 엮고 실패 시 재시도와 보상 처리를 선언적으로 정의합니다. Lambda 하나로 15분을 넘기거나 복잡한 흐름 제어가 필요할 때 정답입니다.
동작 원리 / How it works
Step Functions는 워크플로를 상태 기계로 정의합니다. Task(작업 실행), Choice(분기), Parallel(병렬), Map(반복), Wait(대기), Retry·Catch(오류 처리)를 JSON으로 선언하면, 서비스가 각 단계의 입출력과 실행 이력을 관리합니다. 즉 오류 처리와 재시도 로직이 코드에서 사라져 선언으로 바뀝니다.
Standard 워크플로는 최대 1년까지 실행되며 정확히 한 번 실행을 보장하고 전체 이력을 남깁니다. Express 워크플로는 5분 이내의 고빈도 흐름용으로 훨씬 저렴하지만 이력이 CloudWatch Logs로만 남습니다.
시험은 무엇을 보는가 / What the exam is testing
시험 신호는 "여러 단계", "단계별 오류 처리와 재시도", "사람의 승인 대기", "Lambda 15분 초과를 단계로 쪼개기"입니다. Lambda가 다른 Lambda를 직접 호출하는 선택지보다 관측성과 신뢰성이 높아 정답이 됩니다.
시험 포인트 / Exam points
Standard 워크플로는 최대 1년까지 실행되어 사람의 승인 대기 같은 장기 흐름도 처리합니다. Express는 짧고 대량인 흐름에 씁니다.
Lambda가 다른 Lambda를 직접 호출하며 오류 처리를 코드로 짜는 선택지보다, Step Functions로 흐름을 외부화하는 편이 관측성과 재시도 면에서 낫습니다.
자주 틀리는 함정 / Common traps
단일 단계 작업에 Step Functions를 도입하는 것 — 불필요한 복잡도와 비용입니다.
Step Functions
Orchestrates multi-step workflows as a state machine with built-in retries and branching
이게 뭔가요? / What is this?
Step Functions is not a server — it is a virtual state machine (a workflow engine) that automatically advances through steps in a defined order, with conditions and retries built in. It is like an automatic site foreman following a written flowchart: it moves to the next step when one finishes, and retries or branches exactly as instructed when something fails.
개요 / Overview
Step Functions chains tasks in sequence, branches, and parallel, declaring retries and compensation on failure. It is the answer when one Lambda exceeds 15 minutes or the flow control gets complex.
동작 원리 / How it works
Step Functions defines a workflow as a state machine. Declaring Task, Choice, Parallel, Map, Wait, plus Retry and Catch in JSON hands input/output plumbing and execution history to the service, so error handling and retry logic leave your code and become declarations.
Standard workflows run up to a year, guarantee exactly-once execution, and keep full history. Express workflows target high-volume flows under five minutes at far lower cost, with history only in CloudWatch Logs.
시험은 무엇을 보는가 / What the exam is testing
The signals are multiple steps, per-step error handling and retries, waiting for human approval, and splitting work that exceeds Lambda's 15 minutes. It beats options where Lambdas invoke each other on observability and reliability.
시험 포인트 / Exam points
Standard workflows run up to a year, covering long waits such as human approval; Express workflows suit short, high-volume flows.
Externalising the flow into Step Functions beats having Lambdas invoke each other with hand-written error handling, for observability and retries.
자주 틀리는 함정 / Common traps
Introducing Step Functions for single-step work — unnecessary complexity and cost.
AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.