0
0
Microservicessystem_design~20 mins

Dynamic configuration updates in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Dynamic Config Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Designing a dynamic configuration update system for microservices

You need to design a system that allows microservices to update their configuration dynamically without restarting. Which architectural component is essential to achieve this?

AA centralized configuration service that microservices poll periodically for updates.
BEmbedding configuration files inside each microservice's container image.
CHardcoding configuration values in the microservice source code.
DUsing environment variables set only at microservice startup.
Attempts:
2 left
💡 Hint

Think about a component that can serve updated settings to many services without restarting them.

scaling
intermediate
2:00remaining
Scaling configuration updates in a large microservices environment

You have 1000 microservice instances needing configuration updates simultaneously. What is the best approach to efficiently propagate updates?

AEach instance polls the configuration service every second independently.
BUse a publish-subscribe system where the configuration service pushes updates to instances.
CRestart all microservices to reload configuration from local files.
DManually update configuration on each instance via SSH.
Attempts:
2 left
💡 Hint

Consider a method that avoids thousands of independent requests at once.

tradeoff
advanced
2:00remaining
Tradeoffs between push and pull models for configuration updates

Which statement best describes a tradeoff between push and pull models for dynamic configuration updates in microservices?

APull models guarantee immediate consistency; push models do not.
BPull models reduce latency but require persistent connections; push models increase latency but simplify client design.
CPush models reduce latency but require persistent connections; pull models increase latency but simplify client design.
DPush models always use less network bandwidth than pull models regardless of scale.
Attempts:
2 left
💡 Hint

Think about how updates reach clients and the connection types involved.

component
advanced
2:00remaining
Key component for ensuring consistency of dynamic configuration across microservices

Which component is critical to ensure all microservices see a consistent configuration version during dynamic updates?

AA versioning system that tags configuration snapshots and enforces atomic updates.
BA load balancer that routes requests to updated microservices only.
CA logging system that records configuration changes asynchronously.
DA caching layer that stores old configuration indefinitely.
Attempts:
2 left
💡 Hint

Think about how to prevent microservices from using mixed or partial configurations.

estimation
expert
2:00remaining
Estimating capacity for configuration update propagation

You have 10,000 microservice instances. Each configuration update is 50 KB. Updates occur once every 10 minutes. Estimate the minimum network bandwidth needed to propagate updates to all instances within 1 minute.

AApproximately 50 Mbps
BApproximately 67 Mbps
CApproximately 100 Mbps
DApproximately 83 Mbps
Attempts:
2 left
💡 Hint

Calculate total data size and divide by propagation time, then convert to Mbps.