0
0
Microservicessystem_design~20 mins

Why advanced patterns solve edge cases in Microservices - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Advanced Microservices Architect
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why use the Circuit Breaker pattern in microservices?

In a microservices system, what problem does the Circuit Breaker pattern primarily solve?

AIt prevents a failing service from being called repeatedly, avoiding cascading failures.
BIt encrypts data between microservices for security.
CIt automatically scales services based on CPU usage.
DIt balances load evenly across all service instances.
Attempts:
2 left
💡 Hint

Think about what happens when one service is down and others keep trying to call it.

Architecture
intermediate
2:00remaining
How does the Saga pattern handle distributed transactions?

In microservices, which statement best describes how the Saga pattern manages transactions across multiple services?

AIt uses a central database to lock all resources during the transaction.
BIt queues all requests and processes them sequentially to maintain consistency.
CIt breaks a transaction into a series of local transactions with compensating actions on failure.
DIt duplicates data across services to avoid coordination.
Attempts:
2 left
💡 Hint

Think about how to keep data consistent without locking everything at once.

scaling
advanced
2:00remaining
Why does the Bulkhead pattern improve system stability under load?

How does the Bulkhead pattern help microservices handle sudden spikes in traffic without crashing the entire system?

AIt isolates resources for different services so one overloaded service doesn't affect others.
BIt caches all requests to reduce load on services.
CIt merges all services into one to simplify scaling.
DIt delays requests until the system is less busy.
Attempts:
2 left
💡 Hint

Think about how compartments in a ship prevent sinking if one part is damaged.

tradeoff
advanced
2:00remaining
What is a tradeoff when using Event Sourcing in microservices?

Which statement best describes a common tradeoff when implementing Event Sourcing?

AIt simplifies querying data but makes recovery harder.
BIt reduces storage needs but increases network latency.
CIt eliminates the need for backups but requires synchronous communication.
DIt improves write performance but complicates data consistency and querying.
Attempts:
2 left
💡 Hint

Consider how storing all changes as events affects reading and consistency.

estimation
expert
2:00remaining
Estimating capacity for a microservices system using CQRS

You design a microservices system using CQRS (Command Query Responsibility Segregation). Write requests are 10% of total, queries 90%. If the system expects 10,000 total requests per second, how many write and read requests per second should you plan capacity for?

AWrite: 9,000 requests/sec, Read: 1,000 requests/sec
BWrite: 1,000 requests/sec, Read: 9,000 requests/sec
CWrite: 5,000 requests/sec, Read: 5,000 requests/sec
DWrite: 10,000 requests/sec, Read: 10,000 requests/sec
Attempts:
2 left
💡 Hint

Calculate 10% and 90% of total requests separately.