← Questions

Design an artifact store on Kubernetes and Cassandra

0
NvidiaSystem designLast asked Sep 2025

A system design interview question asked in Nvidia's technical phone screen, last asked Sep 2025. It tests kubernetes, cassandra and idempotency.

A Java web API runs on Kubernetes and stores artifacts in a Cassandra cluster. Each artifact is identified by a name the user chooses, and each name must be created exactly once, even when several create requests for the same name hit different pods at the same moment. Design the create path, then deletes, then the read path.

Requirements

  • Part 1, create: concurrent creates of one name produce exactly one success; retries are safe.
  • Part 2, delete: a delete capability is added later; deletes and re-creates of the same name must not race or produce duplicates.
  • Part 3, read: a fast, high-throughput read API with controlled consistency, including during partial outages.
  • Non-functional: many pods behind a load balancer, multi-node Cassandra with replication, pods and nodes that fail at any time.

Clarifying questions

  • How large are artifacts: small metadata, or large blobs that belong in object storage?
  • Can a deleted name be reused, and how soon?
  • What read consistency do clients need after a successful create?
  • Is the cluster in one region or several?
  • What request rates for creates and reads?

What a strong answer covers

  • A schema with the artifact name as partition key, and INSERT … IF NOT EXISTS (a lightweight transaction, Paxos at SERIAL consistency) for unique creation; its latency cost, and why a plain write or read-then-write is not safe.
  • Idempotency keys so a client retrying after a timeout learns whether its own create succeeded; handling of LWT timeouts whose outcome is unknown.
  • Alternatives compared: a name-reservation table, a distributed lock (and why it is weaker).
  • Deletes as soft deletes with a state and a generation number, conditional updates for delete and re-create, tombstones, gc_grace_seconds and compaction effects, and a name reuse policy.
  • Reads: consistency levels (LOCAL_QUORUM versus ONE), replication factor, caching with invalidation on delete, pagination, read repair, hot-partition mitigation, and fallbacks during partial outages.

Follow-ups

  • An LWT create times out: did it succeed? What does the API return?
  • A delete and a create of the same name arrive at the same moment.
  • One artifact is read thousands of times a second.
  • The service goes multi-region: what happens to LWT latency, and what would you change?

Where it's asked

What it tests

kubernetes · cassandra · idempotency · storage

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing