LearnThatStack Ace your next interview
Topic · part of System Design Concepts
Distributed Systems Fundamentals.
34 Qs 5 free
Change topic Change
Drill · questions

All questions

of 34
Beginner 11
01

What is a distributed system and what are its main characteristics?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A distributed system is a collection of independent computers that appear to users as a single coherent system. The main characteristics include:

  • Multiple nodes: Components run on separate machines connected by a network
  • Concurrency: Multiple processes execute simultaneously across different nodes
  • Lack of global clock: No single point of time reference across all nodes
  • Independent failures: Components can fail independently without affecting the entire system
  • Message passing: Communication happens through network messages rather than shared memory

Examples include web services like Google Search, Netflix streaming, or banking systems where multiple servers work together to serve user requests.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

Explain the CAP theorem and its implications.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The CAP theorem states that in a distributed system, you can only guarantee two out of three properties:

  • Consistency (C): All nodes see the same data simultaneously
  • Availability (A): System remains operational and responds to requests
  • Partition Tolerance (P): System continues operating despite network failures

Implications: Since network partitions are inevitable in distributed systems, you must choose between consistency and availability:

  • CP systems (like MongoDB): Sacrifice availability during partitions to maintain consistency
  • AP systems (like Cassandra): Sacrifice consistency to remain available during partitions

Real-world systems often implement "eventual consistency" to balance these trade-offs.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What is the difference between horizontal and vertical scaling?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Vertical Scaling (Scale Up):

  • Adding more power (CPU, RAM, storage) to existing machines
  • Simpler to implement and manage
  • Limited by hardware constraints
  • Single point of failure
  • Example: Upgrading server from 8GB to 32GB RAM

Horizontal Scaling (Scale Out):

  • Adding more machines to the system
  • Better fault tolerance and theoretically unlimited scaling
  • More complex to implement and coordinate
  • Requires load distribution mechanisms
  • Example: Adding more web servers behind a load balancer

Most modern distributed systems prefer horizontal scaling for better resilience and cost-effectiveness.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

Describe the difference between synchronous and asynchronous communication.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Synchronous Communication:

  • Sender waits for receiver's response before continuing
  • Blocking operation with immediate feedback
  • Simpler error handling and debugging
  • Can create cascading failures and reduce availability
  • Example: HTTP request-response, RPC calls

Asynchronous Communication:

  • Sender doesn't wait for response and continues processing
  • Non-blocking operation with eventual notification
  • Better performance and fault isolation
  • More complex error handling and state management
  • Example: Message queues, event-driven architectures
# Synchronous
response = api_call()  # Blocks until response
process(response)

# Asynchronous  
api_call_async(callback=process)  # Non-blocking
continue_other_work()
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

What is load balancing and what are the main types?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Load balancing distributes incoming requests across multiple servers to prevent overload and ensure high availability.

Main Types:

  1. Round Robin: Requests distributed sequentially to each server
  2. Least Connections: Routes to server with fewest active connections
  3. Weighted Round Robin: Assigns weights based on server capacity
  4. IP Hash: Routes based on client IP hash for session persistence
  5. Least Response Time: Routes to server with fastest response

Layers:

  • Layer 4 (Transport): Routes based on IP and port
  • Layer 7 (Application): Routes based on content (HTTP headers, URLs)

Load balancers can be hardware-based, software-based, or cloud-managed services like AWS ALB.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

06

What is a Content Delivery Network (CDN) and how does it improve performance?

Part of Pro
07

What is the difference between ACID and BASE properties?

Part of Pro
08

Explain the concept of eventual consistency with examples.

Part of Pro
09

What are the differences between REST and GraphQL APIs?

Part of Pro
10

Explain message queues and their benefits in distributed systems.

Part of Pro
11

What is the difference between stateful and stateless services?

Part of Pro
Intermediate 20
12

Explain different consistency models in distributed systems.

Part of Pro
13

What is the Raft consensus algorithm and how does it work?

Part of Pro
14

What is the difference between 2PC and 3PC protocols?

Part of Pro
15

What is database sharding and what are the different sharding strategies?

Part of Pro
16

Explain different caching strategies and their use cases.

Part of Pro
17

Explain the concept of microservices and their advantages/disadvantages.

Part of Pro
18

What is the circuit breaker pattern and how does it work?

Part of Pro
19

Explain different types of failures in distributed systems.

Part of Pro
20

What is graceful degradation and how do you implement it?

Part of Pro
21

Explain the concept of bulkhead pattern in distributed systems.

Part of Pro
22

What is event sourcing and what are its benefits?

Part of Pro
23

Explain Command Query Responsibility Segregation (CQRS).

Part of Pro
24

What is the difference between message queues and event streams?

Part of Pro
25

Explain service discovery and its implementation approaches.

Part of Pro
26

What is the difference between optimistic and pessimistic concurrency control?

Part of Pro
27

Explain the concept of data lakes vs data warehouses.

Part of Pro
28

What is chaos engineering and how do you implement it?

Part of Pro
29

Explain the concept of distributed caching and cache invalidation strategies.

Part of Pro
30

What are idempotent operations and why are they important in distributed systems?

Part of Pro
31

Explain the concept of backpressure and how to handle it.

Part of Pro
Expert 3
32

Explain vector clocks and their use in distributed systems.

Part of Pro
33

What is Byzantine Fault Tolerance and when is it needed?

Part of Pro
34

Explain the saga pattern for managing distributed transactions.

Part of Pro

No matches

Try a different filter or search term.

Learn · video

Distributed Systems Fundamentals, in short videos.

Pro · $10/mo

29 of 34 Distributed Systems Fundamentals answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.