Bird
0
0

A microservice uses externalized config but fails to load settings after deployment. What is the most likely cause?

medium📝 Analysis Q14 of 15
Microservices - Configuration and Secrets Management
A microservice uses externalized config but fails to load settings after deployment. What is the most likely cause?
AThe service does not need external config to run.
BThe service code has a syntax error unrelated to config.
CThe external config source (e.g., env vars or files) was not set or accessible.
DThe config is embedded inside the service binary.
Step-by-Step Solution
Solution:
  1. Step 1: Identify why external config might fail

    If the service cannot load config, the external source is likely missing or inaccessible.
  2. Step 2: Rule out unrelated causes

    Syntax errors or embedded config do not explain failure to load external config.
  3. Final Answer:

    The external config source (e.g., env vars or files) was not set or accessible. -> Option C
  4. Quick Check:

    Missing external config causes load failure [OK]
Quick Trick: Check if external config source is set and reachable [OK]
Common Mistakes:
  • Blaming code syntax for config load failure
  • Ignoring missing environment variables
  • Assuming embedded config is used

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes