0
0
Microservicessystem_design~20 mins

Strangler fig pattern in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Strangler Fig Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the core idea of the Strangler Fig Pattern

Which of the following best describes the main goal of the Strangler Fig Pattern in system design?

ATo replace a legacy system gradually by building new features as separate components that eventually take over all functionality.
BTo immediately rewrite the entire legacy system from scratch to improve performance and scalability.
CTo run the legacy system and new system in parallel indefinitely without integration.
DTo create a monolithic application that handles all legacy and new features in one codebase.
Attempts:
2 left
💡 Hint

Think about how the pattern helps in transitioning from old to new without big risks.

Architecture
intermediate
2:00remaining
Identifying components in a Strangler Fig architecture

In a Strangler Fig Pattern implementation, which component acts as the traffic director that routes requests between the legacy system and new microservices?

AMessage Queue
BLoad Balancer
CAPI Gateway
DDatabase
Attempts:
2 left
💡 Hint

Consider which component controls request routing and can decide where to send each request.

scaling
advanced
2:30remaining
Scaling challenges during Strangler Fig migration

What is a common scaling challenge when running both legacy and new systems simultaneously in a Strangler Fig migration?

AReducing the number of microservices to avoid complexity.
BEnsuring consistent data synchronization between legacy and new components.
CEliminating all legacy system dependencies immediately.
DDeploying the new system on the same hardware as the legacy system.
Attempts:
2 left
💡 Hint

Think about data consistency when two systems handle parts of the workload.

tradeoff
advanced
2:30remaining
Tradeoffs in choosing Strangler Fig Pattern

Which tradeoff is most associated with using the Strangler Fig Pattern for system migration?

ANo need for testing since old system remains untouched.
BFaster migration but higher risk of breaking existing features.
CComplete system rewrite with no backward compatibility.
DLonger migration time but reduced risk of system downtime.
Attempts:
2 left
💡 Hint

Consider the balance between speed and safety in migration strategies.

estimation
expert
3:00remaining
Estimating capacity needs during Strangler Fig migration

You are migrating a legacy monolith to microservices using the Strangler Fig Pattern. The legacy system handles 10,000 requests per second. You plan to migrate 30% of functionality to new microservices initially. What is the minimum expected request load on the new microservices after migration starts?

A3,000 requests per second
B7,000 requests per second
C10,000 requests per second
D30,000 requests per second
Attempts:
2 left
💡 Hint

Calculate the portion of total requests handled by new microservices based on migrated functionality percentage.