Question 340
Architecture principle case — A commerce service displays full stack traces with database connection details after rejected orders. The design review is extracting the transferable lesson for later software projects. Which security principle best governs the observation?
Explanation
Correct Answer
In Q0340, the fictional organizational observation is: A commerce service displays full stack traces with database connection details after rejected orders. The distinct underlying risk mechanism is: Error handling leaks implementation details while failing to provide actionable safe client responses. Choice D addresses the governing security-design principle because it states: Detailed diagnostics belong in protected telemetry, not public error surfaces. This fits the governing design principle: Detailed diagnostics belong in protected telemetry, not public error surfaces. For measurable acceptance, the team should: Failure tests reveal no stack traces, credentials or internal schema details to unauthorized callers. Sustained prevention requires: Enforce centralized exception translation and secure logging standards.
Incorrect Answers
Choice A describes a plausible governing security-design principle for a separate security issue, insufficient rate control for credential endpoints: Authentication-related entry points lack abuse detection, pacing and bounded attempt controls. Its proposed response, “Identity endpoints need resilient controls against repeated guessing and automated abuse”, does not directly resolve this case. The discriminating cause is: Error handling leaks implementation details while failing to provide actionable safe client responses. A stronger governing security-design principle would be: Detailed diagnostics belong in protected telemetry, not public error surfaces. An objective reviewer would test: Failure tests reveal no stack traces, credentials or internal schema details to unauthorized callers.
Choice B describes a plausible governing security-design principle for a separate security issue, trusting http headers without proxy provenance: The code assumes transport metadata is authenticated even when supplied by untrusted clients. Its proposed response, “Headers have no inherent authenticity unless the trusted network path establishes it”, does not directly resolve this case. The discriminating cause is: Error handling leaks implementation details while failing to provide actionable safe client responses. A stronger governing security-design principle would be: Detailed diagnostics belong in protected telemetry, not public error surfaces. An objective reviewer would test: Failure tests reveal no stack traces, credentials or internal schema details to unauthorized callers.
Choice C describes a plausible governing security-design principle for a separate security issue, improper fallback to a default tenant: Uncertain tenant context defaults to a real customer instead of being rejected. Its proposed response, “Tenant context is a security principal and must never be silently guessed”, does not directly resolve this case. The discriminating cause is: Error handling leaks implementation details while failing to provide actionable safe client responses. A stronger governing security-design principle would be: Detailed diagnostics belong in protected telemetry, not public error surfaces. An objective reviewer would test: Failure tests reveal no stack traces, credentials or internal schema details to unauthorized callers.



Secure Software Design (KEO1) Practice Tests