KatInterview

Design a Cloud Workstation Platform for Engineers

System DesignModel answer
HardModel answerSystem Designsystem-designcontrol-planeprovisioning

Last updated

Design a service that gives engineers on-demand remote workstations they reach from a laptop, keep across stops and restarts, and have reclaimed automatically when idle.

Your company wants to stop engineers from building and running code only on their laptops. Design a cloud workstation platform: an engineer asks for a remote development machine, connects to it from their own laptop, keeps working over days or weeks, and the system reclaims resources once the machine is no longer needed.

The prompt is intentionally open. Deciding what the product has to do is part of the task. If you end up designing a generic container scheduler and never describe the experience an engineer has from request to cleanup, you have answered a different question.

What is expected

  • Open by asking clarifying questions and writing down the scope you agree on (users, machine types, how people connect, what must survive a stop, time-to-ready targets, cost rules, what the machine may access).
  • Describe the workstation lifecycle: create, connect, stop, resume, delete, and automatic idle shutdown.
  • Present the architecture: API, control plane, placement, connection routing, storage.
  • Explain how you make provisioning fast for large repositories and heavy toolchains.
  • Cover isolation, authentication and secrets, network policy, quotas and cost control.
  • Cover failure handling and the metrics that tell you engineers are being served well.

Logistics: treat this as a roughly 45-minute whiteboard conversation. No scale, latency or technology targets are given, so propose numbers and confirm them.

Hints

Hint 1

Before drawing anything, write the lifecycle as a state machine (requested, provisioning, running, stopping, stopped, deleted, failed) and ask what the engineer sees at each step.

Hint 2

Separate disposable compute from the durable workspace. If the home directory and repository checkout live on a volume or snapshot that outlives the machine, stop, resume, host failure and idle shutdown all become much easier.

Hint 3

Slow starts come from pulling images and cloning huge repositories. Think about prebuilt images, warm pools of capacity, and prebuilt workspace snapshots or cached repo mirrors so that a new box is a clone-on-write copy rather than a fresh checkout.