0
0
Microservicessystem_design~20 mins

Why microservices exist - Challenge Your Understanding

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
Why do microservices help with scaling?

Imagine a large online store that suddenly gets many visitors. Why would breaking the store's system into microservices help it handle more visitors better?

ABecause microservices combine all functions into one big program that runs faster.
BBecause each microservice can be scaled independently to handle specific tasks without scaling the whole system.
CBecause microservices reduce the number of servers needed by merging services.
DBecause microservices store all data in one place to speed up access.
Attempts:
2 left
💡 Hint

Think about how different parts of a system might need different amounts of resources.

Architecture
intermediate
2:00remaining
Which architecture best shows why microservices exist?

Look at these system designs. Which one best explains why microservices are used?

AMultiple small services each handling a specific function, communicating over a network.
BA single large application where all functions are tightly connected in one codebase.
CA monolithic database accessed by many small scripts running on one server.
DA desktop application that runs all services locally without network communication.
Attempts:
2 left
💡 Hint

Think about separation of concerns and independent deployment.

tradeoff
advanced
2:00remaining
What is a main tradeoff when choosing microservices?

Microservices offer many benefits but also have downsides. Which of these is a common tradeoff when using microservices?

AIncreased complexity in managing many services and their communication.
BReduced ability to update parts of the system independently.
CLower fault tolerance because all services run on one server.
DSimpler deployment since everything is in one package.
Attempts:
2 left
💡 Hint

Think about what happens when you have many small parts instead of one big part.

scaling
advanced
2:00remaining
How do microservices improve fault isolation?

When one part of a system fails, microservices can help limit the problem. How do microservices improve fault isolation?

ABy running all functions in one process so errors affect everything equally.
BBy combining all logs into one file to detect errors faster.
CBy sharing a single database that stops working if one service fails.
DBy isolating services so failure in one does not directly crash others.
Attempts:
2 left
💡 Hint

Think about how separating parts can prevent one failure from spreading.

estimation
expert
2:00remaining
Estimate the impact of microservices on deployment frequency

A company moves from a monolithic system to microservices. How does this change affect how often they can deploy updates?

ADeployment frequency stays the same because the system size does not change.
BDeployment frequency decreases because coordinating many services is harder.
CDeployment frequency increases because small services can be updated independently.
DDeployment frequency stops because microservices require full system redeployment.
Attempts:
2 left
💡 Hint

Think about how independent parts can be updated without waiting for others.