One prompt performs extraction, validation, and answer generation.
Isolate errors and sensitive actions.
Choose two designs.
Split extraction, validation, and generation into steps, validate each schema, minimize inter-step data, and authorize tools independently.
Detailed explanation
Quality and failures can be tracked per step.
Quality and failures can be tracked per step.
Sensitive propagation and privilege escalation are reduced.
Sensitive propagation and privilege escalation are reduced.
Errors and injections can cascade.
Errors and injections can cascade.
Root cause and retry units disappear.
Root cause and retry units disappear.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 2.3のプロンプトチェーン、出力検証、生成AIセキュリティを確認する。Expected result
複数プロンプトの品質・権限・失敗を工程ごとに管理できる。Key points
- Chaining
- Schema validation
- Authorization
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.