JSON from a model is passed to a business workflow.
Prevent unsafe values and fields.
Choose two controls.
Validate schema, types, required fields, ranges, and business rules, and reject or review invalid output before side effects.
Detailed explanation
Downstream assumptions are protected.
Downstream assumptions are protected.
Meaning and safety are verified.
Meaning and safety are verified.
Syntax and meaning differ.
Syntax and meaning differ.
Injection and mistakes can execute.
Injection and mistakes can execute.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 2.3・5.2の構造化出力、入力検証、ツール安全性を確認する。Expected result
JSONの構文だけでなくスキーマと業務上の安全性を検証できる。Key points
- JSON Schema
- Range
- Side effect
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.