Question 140
A model generates unrecognized status codes. Which change is necessary before this prompt flow is promoted?
Explanation
Correct Answer
Constrain output to the supported schema where available and validate enum values in application code; syntax correctness alone does not ensure business validity.
Incorrect Answers
A valid string may still be an unauthorized enum value.
Random sampling does not enforce a stable contract.
Unknown states must be rejected or handled explicitly, not silently authorized.



AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests