Enforcement pattern drill — CCA-F Exam Prep

PencilPrepPencilPrep
L3.02|Enforcement pattern drill
1/12
Rapid-fire drill

Code or prompt? 10 scenarios. No time to overthink.

The single most tested pattern on the CCA-F: should this rule be enforced in code (locked door) or in the prompt (sign on the door)?

This lesson gives you 10 mini-scenarios. Each one is a rule that needs enforcement. Your job: pick the right mechanism.

CODE (LOCKED DOOR)
Deterministic. Cannot be bypassed. Use when: stakes are high, rule is clear, no judgment needed.
PROMPT (SIGN)
Probabilistic. Can be circumvented. Use when: rule needs interpretation, context matters, language understanding required.