Question 330
Architecture principle case — An order API accepts negative item counts because its schema checks only that numbers are present. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0330, the fictional organizational observation is: An order API accepts negative item counts because its schema checks only that numbers are present. The distinct underlying risk mechanism is: Input validation checks shape but not business semantics or cross-field constraints. Choice A addresses the governing security-design principle because it states: Syntactically valid data may still violate security-relevant business invariants. This fits the governing design principle: Syntactically valid data may still violate security-relevant business invariants. For measurable acceptance, the team should: Property-based cases show invalid combinations are rejected while boundary-valid requests succeed. Sustained prevention requires: Maintain canonical request schemas and business-rule tests independent of UI form checks.
Incorrect Answers
Choice B describes a plausible governing security-design principle for a separate security issue, hardcoded credential in source repository: Long-lived secrets were embedded in distributable and reviewable source artifacts. Its proposed response, “Secrets that enter source history should be treated as exposed even if later deleted”, does not directly resolve this case. The discriminating cause is: Input validation checks shape but not business semantics or cross-field constraints. A stronger governing security-design principle would be: Syntactically valid data may still violate security-relevant business invariants. An objective reviewer would test: Property-based cases show invalid combinations are rejected while boundary-valid requests succeed.
Choice C describes a plausible governing security-design principle for a separate security issue, unsafe reflection of redirect targets: Untrusted redirect destinations can route users into attacker-controlled follow-up flows. Its proposed response, “Navigation after authentication must not transfer trust to arbitrary destinations”, does not directly resolve this case. The discriminating cause is: Input validation checks shape but not business semantics or cross-field constraints. A stronger governing security-design principle would be: Syntactically valid data may still violate security-relevant business invariants. An objective reviewer would test: Property-based cases show invalid combinations are rejected while boundary-valid requests succeed.
Choice D describes a plausible governing security-design principle for a separate security issue, unsafe default debug mode in production: Build and environment configuration left high-detail developer features exposed to ordinary users. Its proposed response, “Development convenience settings must not silently become runtime production capabilities”, does not directly resolve this case. The discriminating cause is: Input validation checks shape but not business semantics or cross-field constraints. A stronger governing security-design principle would be: Syntactically valid data may still violate security-relevant business invariants. An objective reviewer would test: Property-based cases show invalid combinations are rejected while boundary-valid requests succeed.



Secure Software Design (KEO1) Practice Tests