Bird
0
0

Consider this simplified flow:

medium📝 Analysis Q13 of 15
Microservices - Configuration and Secrets Management
Consider this simplified flow:
1. Microservice starts
2. Requests config from Config Server
3. Config Server returns config
4. Microservice uses config to connect to DB

What happens if the Config Server is down when the microservice starts?
AMicroservice connects to DB without any config
BMicroservice automatically generates default config and continues
CMicroservice uses cached config or fails to start if none available
DMicroservice waits indefinitely for Config Server to respond
Step-by-Step Solution
Solution:
  1. Step 1: Understand Config Server availability impact

    If Config Server is down, microservice cannot fetch fresh config at startup.
  2. Step 2: Consider typical microservice behavior

    Most microservices cache last known config or fail to start if no config is available.
  3. Final Answer:

    Microservice uses cached config or fails to start if none available -> Option C
  4. Quick Check:

    Config Server down = use cache or fail [OK]
Quick Trick: Microservices rely on cached config if Config Server is unreachable [OK]
Common Mistakes:
  • Assuming microservice generates default config automatically
  • Thinking microservice connects without config
  • Believing microservice waits forever

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes