Skip to content
Sharp

Architecture · interview question

A bug appears around environment-based deployment. What is the strongest first debugging move?

Multiple choiceMediumchapter-18-curatedpremiumarchitectureenvironment-based-deployment
python
settings = {
    "app_env": os.environ.get("APP_ENV", "dev"),
    "cache_ttl_seconds": int(os.environ.get("CACHE_TTL_SECONDS", "60")),
}
Choose one answer
Answer and explanation

Correct answer

C. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.

Why

That approach is reliable because it creates evidence. Hidden deploy-time assumptions cause the same code to behave differently across environments with little explanation.

Test yourself on Architecture

A free test with instant, explained results. No account needed.

Start free test
All Architecture questions →