服务 · Application Integration · 基于 SAA-C03
AWS Step Functions
Run SageMaker AI and Bedrock jobs from a workflow, with waits, branches and retries.
本课尚未翻译,暂以英文显示。
你在Solutions Architect Associate中已学过
- Step Functions orchestrates services as a state machine, with branching, retries and waits.
- Standard workflows run long. Express workflows run short and fast.
- 1A processing job runs and the state waits for it.
- 2A training job runs and the state waits for it.
分步说明
- 1A processing job runs and the state waits for it.
- 2A training job runs and the state waits for it.
A small ML workflow: two jobs, then a choice.
Service integrations
- It does
- Call SageMaker AI and Bedrock directly
- Note
- No Lambda glue needed
Run a job and callback
- It does
- .sync waits. .waitForTaskToken pauses
- Note
- Standard workflows only
Map and Parallel
- It does
- Per item, or different branches
- Note
- Limit concurrency
Retry and Catch
- It does
- Back-off, then fallback state
- Note
- Set per state
Standard or Express
- It does
- Long and exact, or short and fast
- Note
- ML training uses Standard
| Feature | It does | Note |
|---|---|---|
| Service integrations | Call SageMaker AI and Bedrock directly | No Lambda glue needed |
| Run a job and callback | .sync waits. .waitForTaskToken pauses | Standard workflows only |
| Map and Parallel | Per item, or different branches | Limit concurrency |
| Retry and Catch | Back-off, then fallback state | Set per state |
| Standard or Express | Long and exact, or short and fast | ML training uses Standard |
1 / 2
Service integrations
- It does
- Call SageMaker AI and Bedrock directly
- Note
- No Lambda glue needed
Run a job and callback
- It does
- .sync waits. .waitForTaskToken pauses
- Note
- Standard workflows only
Map and Parallel
- It does
- Per item, or different branches
- Note
- Limit concurrency
| Feature | It does | Note |
|---|---|---|
| Service integrations | Call SageMaker AI and Bedrock directly | No Lambda glue needed |
| Run a job and callback | .sync waits. .waitForTaskToken pauses | Standard workflows only |
| Map and Parallel | Per item, or different branches | Limit concurrency |
2 / 2
Retry and Catch
- It does
- Back-off, then fallback state
- Note
- Set per state
Standard or Express
- It does
- Long and exact, or short and fast
- Note
- ML training uses Standard
| Feature | It does | Note |
|---|---|---|
| Retry and Catch | Back-off, then fallback state | Set per state |
| Standard or Express | Long and exact, or short and fast | ML training uses Standard |
是什么
Step Functions calls SageMaker AI and Bedrock directly, without Lambda glue. It has integrations for SageMaker AI jobs (processing, training, tuning, transform) and for creating models and endpoints, and for Bedrock model invocation and customization jobs. Choose the pattern in the resource name. A plain call returns at once. Adding .sync waits until the job finishes. Adding .waitForTaskToken pauses until something sends back the token, for example a person approving. Both waiting patterns need a Standard workflow.
是什么
A Map state runs the same steps for each item in a list, such as one batch transform per file, with a limit on concurrency. A Parallel state runs different branches together, such as training two algorithms. A Choice state branches on a value, such as a metric from the evaluation. Retry and Catch handle errors in the state: retry transient failures with back-off, and send other errors to a clean-up or alert state.
是什么
Standard workflows run up to a year and show their history, and are billed per state transition. Express workflows run up to five minutes and suit high-rate, short tasks. For ML training pipelines, use Standard. Compared with SageMaker Pipelines, Step Functions is the better fit when the workflow mixes in other services.
要记住
- Direct integrations for SageMaker AI jobs and Bedrock calls.
- .sync waits for a job. .waitForTaskToken waits for a callback. Both need Standard.
- Map: same steps per item. Parallel: different branches together. Choice: branch on a value.
- Retry with back-off, and Catch to a fallback state.
要记住
- Standard: up to a year. Express: up to five minutes, no job-run or callback.
考试中
- “Wait for a SageMaker AI training job to finish, then continue” points to the .sync pattern in a Standard workflow.
- “Pause until a manager approves the model” points to .waitForTaskToken.
- “Run batch transform on every file in a list” points to a Map state.
- “Retry a throttled call, then alert on other errors” points to Retry and Catch.
本任务内容 · 3.3
- Deployment strategies and rollback
CodePipeline
CodeBuild
CodeDeploy
SageMaker Pipelines
- Automated testing in ML pipelines
- Triggering retraining
Model Registry
Prompt Management
- Agent deployment pipelines and versions
- AI model and prompt testing
- Automating FM deployment and fine-tuned model versions
- RAG update and knowledge base refresh pipelines
Step Functions