Command Palette

Search for a command to run...

Hectal
PHASE 17Advanced ~6 min· topic 3 of 5

Topic 17.3

Question Bank: Scaling, Distributed Systems and Production

In one line

Eighteen questions on replication, sharding, hot partitions, CAP and PACELC, quorums, consistency, outbox and CDC, zero-downtime migrations, backups, RPO/RTO and monitoring, with model answers aimed at senior-level depth.

0/5 · 0%

Think of it like this

The second round of a quiz, where questions are about judgement rather than definitions.

Key ideas

  1. 01

    At senior level, answers are expected to include numbers, failure behaviour and trade-offs, not just definitions.

  2. 02

    When unsure, reason from first principles: where is the data, who writes it, how does it get copied, and what happens when a copy is late or missing.

Code & diagrams

senior-answer.txttext
Definition -> mechanism -> when to use -> what breaks -> how you'd detect it -> alternative

Explain it without notes

01

Replication vs sharding?

02

How do you choose a shard key?

03

What causes hot partitions and how do you fix them?

04

How do you reshard without downtime?

05

How do you handle cross-shard queries?

06

Explain CAP.

07

Explain PACELC.

08

What is a quorum?

09

Strong vs eventual consistency?

10

Leader-based vs leaderless replication?

11

How do you guarantee read-your-writes with replicas?

12

Why do dual writes fail and what's the fix?

13

How do you perform a zero-downtime migration?

14

How do you recover a failed or damaged database?

15

What are RPO and RTO?

16

How do you monitor a database?

17

What happens when VACUUM can't keep up?

18

When would you pick Cassandra or DynamoDB over PostgreSQL?

Practice

01

Pick six questions at random and answer each with a number and a failure mode.

Trade-offs

  • ↔

    Depth beats breadth in senior interviews: fewer topics, explained with mechanisms, numbers and failure behaviour.

Done when you can

  • I can answer scaling, distributed and production questions with numbers and failure handling.