0
0
Microservicessystem_design~20 mins

Config server pattern in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Config Server Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary benefit of using a Config Server in microservices?

Consider a system with multiple microservices. What is the main advantage of introducing a Config Server pattern?

ACentralizes configuration management, allowing dynamic updates without redeploying services.
BImproves database query performance by caching configuration data locally.
CAutomatically scales microservices based on configuration changes.
DEncrypts all network traffic between microservices to enhance security.
Attempts:
2 left
💡 Hint

Think about how configuration changes are managed across many services.

Architecture
intermediate
1:30remaining
Which component is essential in a Config Server architecture to notify microservices of configuration changes?

In a Config Server pattern, how do microservices learn about configuration updates without polling continuously?

AA database trigger that updates service code automatically.
BA load balancer that redirects traffic to updated services.
CA message broker or event bus that pushes change notifications to services.
DA firewall that blocks outdated configuration requests.
Attempts:
2 left
💡 Hint

Think about how systems communicate asynchronously to inform about changes.

scaling
advanced
2:00remaining
How does a Config Server pattern help scale microservices efficiently?

When the number of microservices grows rapidly, what role does the Config Server play in scaling configuration management?

AIt reduces configuration duplication by serving a single source of truth, minimizing overhead during scaling.
BIt automatically provisions new microservices with default configurations without human intervention.
CIt caches all configurations locally on each microservice to avoid network calls entirely.
DIt replaces the need for service discovery by embedding configuration in DNS records.
Attempts:
2 left
💡 Hint

Consider how managing many copies of configuration can become inefficient.

tradeoff
advanced
2:00remaining
What is a potential drawback of using a Config Server pattern in microservices?

While Config Server centralizes configuration, what is a common tradeoff or risk introduced by this pattern?

AIt forces all microservices to use the same programming language.
BIt creates a single point of failure if the Config Server is not highly available.
CIt requires each microservice to maintain its own local configuration copy permanently.
DIt eliminates the need for environment-specific configurations.
Attempts:
2 left
💡 Hint

Think about what happens if the central configuration source becomes unreachable.

estimation
expert
2:30remaining
Estimate the approximate number of configuration requests per minute to a Config Server in a system with 500 microservices, each refreshing config every 5 minutes.

Assuming each of the 500 microservices requests configuration from the Config Server exactly once every 5 minutes, how many requests per minute does the Config Server handle?

A2500 requests per minute
B50 requests per minute
C500 requests per minute
D100 requests per minute
Attempts:
2 left
💡 Hint

Calculate total requests per 5 minutes, then divide by 5 to get per minute.