Question 320
Architecture principle case — A claims API reconstructs arbitrary object types from caller-provided serialized blobs. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0320, the fictional organizational observation is: A claims API reconstructs arbitrary object types from caller-provided serialized blobs. The distinct underlying risk mechanism is: Untrusted serialized content can select executable types or unsafe object initialization paths. Choice A addresses the governing security-design principle because it states: Serialization convenience must not let untrusted data dictate executable application behavior. This fits the governing design principle: Serialization convenience must not let untrusted data dictate executable application behavior. For measurable acceptance, the team should: Malformed or unexpected type payloads are rejected without object construction side effects. Sustained prevention requires: Review deserialization formats and dependencies when adding external interfaces.
Incorrect Answers
Choice B describes a plausible governing security-design principle for a separate security issue, output encoding applied in wrong context: The encoder did not match the parser context where untrusted data was eventually interpreted. Its proposed response, “Encoding works only when tailored to the grammar of the final output context”, does not directly resolve this case. The discriminating cause is: Untrusted serialized content can select executable types or unsafe object initialization paths. A stronger governing security-design principle would be: Serialization convenience must not let untrusted data dictate executable application behavior. An objective reviewer would test: Malformed or unexpected type payloads are rejected without object construction side effects.
Choice C describes a plausible governing security-design principle for a separate security issue, unsafe exception text returned to browser: Error handling leaks implementation details while failing to provide actionable safe client responses. Its proposed response, “Detailed diagnostics belong in protected telemetry, not public error surfaces”, does not directly resolve this case. The discriminating cause is: Untrusted serialized content can select executable types or unsafe object initialization paths. A stronger governing security-design principle would be: Serialization convenience must not let untrusted data dictate executable application behavior. An objective reviewer would test: Malformed or unexpected type payloads are rejected without object construction side effects.
Choice D describes a plausible governing security-design principle for a separate security issue, business logic race in inventory redemption: The resource constraint was checked outside an atomic transaction or concurrency control. Its proposed response, “Security-sensitive business constraints must hold under simultaneous requests, not only serial tests”, does not directly resolve this case. The discriminating cause is: Untrusted serialized content can select executable types or unsafe object initialization paths. A stronger governing security-design principle would be: Serialization convenience must not let untrusted data dictate executable application behavior. An objective reviewer would test: Malformed or unexpected type payloads are rejected without object construction side effects.



Secure Software Design (KEO1) Practice Tests