0
0
Microservicessystem_design~20 mins

Why externalized config enables flexibility in Microservices - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Externalized Config Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why does externalized configuration improve microservice flexibility?

Consider a microservice architecture where configuration settings are stored outside the service code. Which of the following best explains why this approach improves flexibility?

AIt allows changing configuration without redeploying the service, enabling quick updates and environment-specific settings.
BIt embeds configuration inside the service code, making it easier to track changes with version control.
CIt forces all services to use the same configuration, reducing customization and complexity.
DIt requires restarting the entire system for any configuration change, ensuring consistency.
Attempts:
2 left
💡 Hint

Think about how changing settings without touching code affects deployment speed and environment differences.

Architecture
intermediate
2:00remaining
Which architecture best supports externalized configuration in microservices?

In a microservice system, which architecture pattern best supports externalized configuration for flexibility and scalability?

AHardcoded configuration inside each microservice's source code.
BEmbedding configuration in environment variables only during build time.
CStoring configuration in local files inside each service container without sharing.
DCentralized configuration server that all services query at startup or runtime.
Attempts:
2 left
💡 Hint

Consider how to manage configuration changes centrally and propagate them to many services efficiently.

scaling
advanced
2:00remaining
How does externalized configuration help scale microservices efficiently?

When scaling microservices horizontally, how does externalized configuration contribute to efficient scaling?

AIt allows new instances to fetch the latest configuration dynamically without manual updates or redeployment.
BIt requires each new instance to have a unique hardcoded configuration to avoid conflicts.
CIt forces all instances to share the same static configuration baked into their images.
DIt disables configuration updates during scaling to maintain stability.
Attempts:
2 left
💡 Hint

Think about how new service instances get their settings when they start.

tradeoff
advanced
2:00remaining
What is a tradeoff of using externalized configuration in microservices?

While externalized configuration offers flexibility, what is a common tradeoff or challenge it introduces?

AIt guarantees zero downtime during configuration changes without any additional setup.
BIt adds complexity and potential latency due to network calls to fetch configuration at runtime.
CIt eliminates the need for any configuration management tools or processes.
DIt forces all microservices to use identical configurations, reducing flexibility.
Attempts:
2 left
💡 Hint

Consider what extra steps or risks come with fetching config from outside the service.

estimation
expert
3:00remaining
Estimate the impact of externalized config on deployment time in a large microservice system

A company has 100 microservices. Without externalized configuration, each service requires a redeploy to change config, taking 10 minutes per service. With externalized config, config changes do not require redeploy. Estimate the total time saved for a config update affecting all services.

ANo time saved because config changes still require redeploy for consistency.
BApproximately 10 minutes saved because only one service needs redeploy.
CApproximately 1000 minutes saved because no redeploys are needed.
DApproximately 500 minutes saved because half the services need redeploy.
Attempts:
2 left
💡 Hint

Calculate total redeploy time without externalized config and compare to zero redeploy time with it.