0
0
Microservicessystem_design~20 mins

Netflix architecture overview in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Netflix Architecture Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Identify the core components in Netflix's microservices architecture

Netflix uses a microservices architecture to handle millions of users streaming videos simultaneously. Which of the following lists the main components involved in Netflix's architecture?

AAPI Gateway, Service Discovery, Load Balancer, Data Storage, Monitoring
BMonolithic Server, Single Database, Load Balancer, Cache, CDN
CAPI Gateway, Single Server, Data Warehouse, Cache, CDN
DService Discovery, Monolithic Server, Load Balancer, Data Storage, CDN
Attempts:
2 left
💡 Hint

Think about how Netflix breaks down its system into small independent services that communicate through APIs.

scaling
intermediate
2:00remaining
How does Netflix handle sudden spikes in user traffic?

Netflix experiences sudden spikes in user traffic during popular show releases. Which scaling strategy best describes how Netflix manages this?

AAuto-scaling microservices with container orchestration and cloud infrastructure
BUsing a single powerful server to handle all traffic
CManually adding more physical servers during spikes
DLimiting user access during peak times to reduce load
Attempts:
2 left
💡 Hint

Consider how cloud services and containers help scale automatically.

tradeoff
advanced
2:00remaining
Tradeoff between consistency and availability in Netflix's data storage

Netflix stores user data and video metadata across multiple data centers worldwide. What is the main tradeoff Netflix accepts in its data storage system?

ABalances consistency and availability equally without tradeoffs
BPrefers strict consistency over availability, causing occasional downtime
CUses neither consistency nor availability, focusing only on partition tolerance
DPrefers availability over strict consistency to ensure users can always stream content
Attempts:
2 left
💡 Hint

Think about what happens if a data center is unreachable but users still want to watch videos.

🧠 Conceptual
advanced
2:00remaining
Role of the API Gateway in Netflix architecture

What is the primary role of the API Gateway in Netflix's microservices architecture?

AIt monitors system health and logs errors
BIt balances load between physical servers only
CIt routes client requests to appropriate microservices and handles authentication and rate limiting
DIt stores all user data and video content
Attempts:
2 left
💡 Hint

Think about how a single entry point manages many microservices behind the scenes.

estimation
expert
3:00remaining
Estimate the number of microservice instances needed for 10 million concurrent Netflix users

Assuming each microservice instance can handle 10,000 concurrent users, estimate how many instances are needed to support 10 million concurrent users. Consider Netflix uses 5 critical microservices equally loaded.

A1000 instances total, 200 per microservice
B5000 instances total, 1000 per microservice
C50,000 instances total, 10,000 per microservice
D10,000 instances total, 2000 per microservice
Attempts:
2 left
💡 Hint

Divide total users by capacity per instance, then distribute evenly across microservices.