The quiz submission endpoint stores answer records without validating that answers are non-empty and properly formatted.
Problem: Empty answers accepted and persisted to database
Impact: Broken quiz analytics, invalid score calculations, data corruption
Solution: Validate all answers before database write:
- Check non-empty
- Check answer format matches expected type
- Validate against question options
- Return 400 if validation fails
Expected NSOC points: Level 2
Checklist:
The quiz submission endpoint stores answer records without validating that answers are non-empty and properly formatted.
Problem: Empty answers accepted and persisted to database
Impact: Broken quiz analytics, invalid score calculations, data corruption
Solution: Validate all answers before database write:
Expected NSOC points: Level 2
Checklist: