Question 300
A generative SQL tool proposes DROP TABLE. Which safety control actually addresses the reported weakness?
Explanation
Correct Answer
Apply SQL parsing/allowlisting, least-privilege DB identity and explicit destructive-action approval before any model-generated query executes.
Incorrect Answers
Syntax and text intent do not authorize destructive database operations.
Broad DB permissions can bypass safe operation boundaries.
Prompt text cannot enforce allowed database operations at commit time.



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