🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Secrets and Configuration: all 10 questions

Quiz: Secrets and Configuration · Question 2 of 10

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

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

  1. A.To make startup slower
  2. B.Because environment variables expire
  3. C.So it can print the secrets for checking
  4. D.To fail fast with a clear message instead of crashing later while serving users
Answer & explanation

Correct answer: To fail fast with a clear message instead of crashing later while serving users

A clear error at deploy time is far better than a failure in the middle of real traffic.

Can you get the rest right without peeking?

Take the timed Quiz: Secrets and Configuration quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →