Question 1030
A prompt variable called customer_segment accepts arbitrary free text, and an attacker supplies a huge value that displaces the approved safety instructions from the context budget. What input validation is appropriate?
Explanation
Correct Answer
User-controlled template fields can exhaust context limits or alter structure; bounded inputs protect required instructions.
Incorrect Answers
Randomness cannot validate input length.
The variable name does not confer trust.
Removing checks leaves the prompt vulnerable.