0
0
Microservicessystem_design~20 mins

When to use microservices (and when not to) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Microservices Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identifying when microservices add value

Which scenario best justifies adopting a microservices architecture?

AA small startup with a simple app and a single development team.
BA static website with minimal backend logic and low traffic.
CA large e-commerce platform with multiple teams working on different features independently.
DA batch processing script that runs once a day without user interaction.
Attempts:
2 left
💡 Hint

Think about when splitting into smaller services helps manage complexity and team independence.

tradeoff
intermediate
2:00remaining
Tradeoffs of microservices in small projects

What is a common downside of using microservices for a small, simple project?

ABetter team autonomy and faster deployments.
BImproved fault isolation and easier scaling.
CAutomatic performance improvements without extra effort.
DIncreased complexity and overhead in managing multiple services.
Attempts:
2 left
💡 Hint

Consider the management effort required for multiple services versus a single app.

Architecture
advanced
2:00remaining
Choosing architecture for a growing application

A company has a monolithic app that is growing rapidly. Which architectural change best supports scaling development and deployment?

AKeep the monolith and add more servers to handle load.
BSplit the app into microservices based on business capabilities.
CRewrite the entire app in a new programming language.
DUse a single database for all features to simplify data management.
Attempts:
2 left
💡 Hint

Think about how to enable teams to work independently and deploy features separately.

scaling
advanced
2:00remaining
Scaling challenges with microservices

What is a common challenge when scaling microservices that does not typically occur in monolithic apps?

AManaging distributed data consistency across services.
BAdding more CPU and memory to a single server.
CWriting code in a single programming language.
DDeploying the entire app as one unit.
Attempts:
2 left
💡 Hint

Consider what happens when data is spread across multiple independent services.

estimation
expert
3:00remaining
Estimating operational overhead of microservices

A company plans to migrate from a monolith to 20 microservices. Which factor most increases operational overhead?

AThe need to monitor and log each service separately.
BWriting all services in the same programming language.
CDeploying all services together as a single package.
DUsing a single shared database for all services.
Attempts:
2 left
💡 Hint

Think about what multiplies as the number of services grows.