Question 300
A pricing table admits negative unit prices despite a documented positive-price rule. Which technical reason BEST explains the proposed correction?
Explanation
Correct Answer
Application-layer validation alone can be bypassed by other writers. This explains why the corrective action is to use a CHECK constraint expressing the supported business condition. Confirm the diagnosis when direct SQL inserts with negative prices fail without affecting valid rows.
Incorrect Answers
Referential integrity prevents orphan children unless cascade or other actions are deliberately configured. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.
A sequence can allocate numbers independently of one table identity property. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.
Metadata-based partition switching requires strict schema and partition alignment. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.