Bird
0
0

You are deploying a microservice to development, staging, and production environments. Which approach best minimizes configuration errors across these environments?

hard📝 Trade-off Q8 of 15
Microservices - Configuration and Secrets Management
You are deploying a microservice to development, staging, and production environments. Which approach best minimizes configuration errors across these environments?
AUse a centralized configuration service that provides environment-specific settings dynamically
BHardcode all environment variables in the microservice source code for consistency
CManually set environment variables on each server without automation
DUse the same environment variables for all environments without differentiation
Step-by-Step Solution
Solution:
  1. Step 1: Understand the problem

    Managing environment-specific configuration for multiple environments can lead to errors if done manually or hardcoded.
  2. Step 2: Evaluate options

    Centralized configuration services allow dynamic retrieval of environment-specific settings, reducing manual errors.
  3. Step 3: Exclude incorrect options

    Hardcoding or manual setting increases risk of errors; using identical variables ignores environment differences.
  4. Final Answer:

    Use a centralized configuration service that provides environment-specific settings dynamically -> Option A
  5. Quick Check:

    Centralized config reduces manual errors [OK]
Quick Trick: Centralize config management for multiple environments [OK]
Common Mistakes:
  • Hardcoding environment variables
  • Manual environment variable management
  • Using identical configs for all environments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes