A model must return customer categories as JSON.
Do not pass invalid types or extra instructions to a downstream system.
Choose two appropriate practices.
Validate the schema, allowed values, lengths, and required fields, then regenerate, defer, or route failures to human review.
Detailed explanation
The downstream system receives an interpretable structure.
The downstream system receives an interpretable structure.
Invalid output is not executed directly.
Invalid output is not executed directly.
Types, fields, and values are not guaranteed.
Types, fields, and values are not guaranteed.
Injection and display attacks remain possible.
Injection and display attacks remain possible.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 2.3の出力制御、Guardrails、アプリケーション検証を確認する。Expected result
モデル出力をデータとして検証し、失敗時に安全な処理へ分岐できる。Key points
- Schema
- Enum values
- Failure routing
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.