Skills101
← All practice quizzes

Quiz: Secrets and Configuration

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Keep one build of your app and change only its configuration between laptop, staging and production. Learn where passwords and API keys should live, why Kubernetes Secrets are not encrypted by default, how leaks are detected, and what to do in the first hour after a key leaks.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    According to the Twelve-Factor App idea, where should configuration like the database URL live?

  2. Question 2

    Why should an app check its required configuration at startup and refuse to start if something is missing?

  3. Question 3

    What does this print?

    env = {"PORT": "8080"}
    port = int(env.get("PORT", "3000"))
    level = env.get("LOG_LEVEL", "info")
    print(port + 1, level)
    
  4. Question 4

    Which file should be committed to Git?

  5. Question 5

    What does this print?

    import base64
    print(base64.b64decode("YWRtaW4=").decode())
    
🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →