Bird
0
0

If a microservice requests configuration from the Config Server but the profile specified does not exist, what is the expected behavior?

medium📝 Analysis Q5 of 15
Microservices - Configuration and Secrets Management
If a microservice requests configuration from the Config Server but the profile specified does not exist, what is the expected behavior?
AConfig Server returns an error and refuses connection
BConfig Server returns default configuration without profile-specific overrides
CConfig Server returns configuration for a random profile
DConfig Server shuts down to prevent errors
Step-by-Step Solution
Solution:
  1. Step 1: Understand profile fallback behavior

    If a profile is missing, Config Server returns default config without profile overrides.
  2. Step 2: Evaluate other options

    Options B, C, and D describe error or random behavior which is not standard.
  3. Final Answer:

    Config Server returns default configuration without profile-specific overrides -> Option B
  4. Quick Check:

    Missing profile = fallback to default config [OK]
Quick Trick: Missing profile returns default config, not error [OK]
Common Mistakes:
  • Expecting error on missing profile
  • Assuming random profile config is returned
  • Thinking Config Server crashes on missing profile

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes