0
0
Microservicessystem_design~20 mins

Uber architecture overview in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Uber 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 Uber's microservices architecture

Uber uses a microservices architecture to handle its complex ride-hailing system. Which of the following lists correctly identifies the core microservices involved in Uber's architecture?

AUser Service, Ride Matching Service, Payment Service, Notification Service
BUser Interface Service, Database Service, Cache Service, Logging Service
CAuthentication Service, File Storage Service, Analytics Service, Email Service
DLoad Balancer, DNS Service, CDN Service, Firewall Service
Attempts:
2 left
💡 Hint

Think about the services that directly relate to users booking rides and payments.

scaling
intermediate
2:00remaining
Scaling the Ride Matching Service

Uber's Ride Matching Service must handle millions of requests per minute. Which scaling strategy best suits this service to maintain low latency and high availability?

AVertical scaling by upgrading server hardware to the highest specs
BHorizontal scaling by adding more instances of the Ride Matching Service behind a load balancer
CUsing a single monolithic server to avoid network overhead
DDisabling caching to ensure fresh data on every request
Attempts:
2 left
💡 Hint

Consider how to handle many requests simultaneously with fault tolerance.

tradeoff
advanced
2:30remaining
Tradeoffs in Data Consistency for Uber's Payment Service

Uber's Payment Service must balance consistency and availability. Which tradeoff is most appropriate for this service?

AFavor strong consistency to ensure accurate transaction records even if it reduces availability temporarily
BIgnore consistency and focus only on speed of processing
CFavor eventual consistency to maximize availability during network partitions
DUse no replication to avoid data conflicts
Attempts:
2 left
💡 Hint

Think about the importance of accurate payment records.

🧠 Conceptual
advanced
2:30remaining
Understanding Event-Driven Architecture in Uber

Uber uses event-driven architecture to decouple services. Which statement best describes this approach?

AServices communicate synchronously using direct API calls only
BAll services share a single database to coordinate actions
CServices emit events to a message broker, allowing other services to react asynchronously
DServices are tightly coupled and depend on each other's internal logic
Attempts:
2 left
💡 Hint

Think about how services can work independently yet stay coordinated.

estimation
expert
3:00remaining
Estimating Storage Needs for Uber's Trip Data

Uber stores trip data for millions of rides daily. If each trip record is approximately 2 KB and Uber processes 10 million trips per day, what is the estimated storage needed for one year of trip data (in terabytes)?

AApproximately 730 TB
BApproximately 73 TB
CApproximately 0.73 TB
DApproximately 7.3 TB
Attempts:
2 left
💡 Hint

Calculate total bytes per day, then multiply by 365 days, and convert to terabytes (1 TB = 10^12 bytes).