What the interviewer grades
You already know which steps the 45 minutes split into. Now let's look at them through the interviewer's eyes: what they write down while you reason.
Think of figure skating. The judges give separate marks for technique and for the program, and one beautiful jump cannot cover a failure in another part. An interview is the same: a brilliant diagram with no questions about the requirements loses a whole dimension.
The comparison is incomplete. The judges know a skater's program in advance, while here the interviewer changes the conditions as the talk goes on. So what is graded is not a memorized answer but how you handle new input.
Six dimensions
A solution is usually graded on six dimensions:
- Requirements.
- API and data model.
- Architecture.
- Scaling.
- Reliability.
- Trade-offs.
The practice on the site checks the same six. In each dimension the interviewer has several points, and each point is credited in full, in part or not at all.
Requirements
The point is credited when you found out the essentials. What does the service do, how many users and requests does it have, what latency and availability does it need, what stays out of scope? You can get the answer by asking. If the interviewer says "your call", state your assumption out loud — it counts the same.
A point is lost when an important side of the prompt was neither asked about nor assumed. For example, nobody found out how fresh the statistics must be.
API and data model
The interviewer expects the service's main calls: what comes in and what goes back. For the data: which entities are stored, by which key they are looked up and what sits next to them. A detailed schema of every field is not needed; the keys and the access patterns matter.
Architecture
A diagram is credited when it meets every requirement and every block in it has a reason. The interviewer checks whether paths with different loads are separated, and whether a block is missing without which a requirement cannot be met.
An extra block with no reason is noticed too. It does not cost points at once, but you will be asked why it is there, and "that is the usual way" will not be credited.
Scaling
Here the interviewer checks how the diagram holds the load from your estimates. Where is the bottleneck? What happens if users grow tenfold? A cache, replicas and data partitioning are credited when the numbers call for them, not when they sit on the diagram in case they are ever needed.
Reliability
The interviewer asks what happens on a failure: a service instance, the database, the cache or a whole region goes down. An answer is credited when it says what keeps working, what is lost and how the system recovers.
Trade-offs
Every choice is paid for with something. A cache speeds up reads, but its data may go stale. Asynchronous counting does not slow down the request, but the statistics lag. The point is credited when you name both the gain and the price, and better still the option you dropped and why.
A reason outweighs a technology
In all six dimensions the interviewer listens for reasons. "Let's take Cassandra" on its own gives almost nothing. A reason says much more: the data is looked up by one key, there is 1.2 TB of it, and writes must survive a node failure. Such a reason shows you understand the prompt, even without naming a technology.
So do not be afraid to say you do not remember a product's exact name. Describing the property a store or a queue needs is worth more than naming a product with no explanation.
Signals that stick
Besides the points per dimension, the interviewer writes down an overall impression. Most often their notes record:
- whether you ask questions before designing;
- whether you keep the plan and the time;
- whether you hear hints and adjust to them;
- whether you admit the weak spots of your solution.
Common mistake
Keeping quiet about a weak spot of your design, hoping the interviewer will not notice. They will, and then it looks like a gap in understanding. Say it yourself: "There is a single database here; if it fails, writes stop; I'll fix that with a replica." Then the reliability point is credited at least in part.
Key points
- Six dimensions: requirements, API and data model, architecture, scaling, reliability, trade-offs.
- An assumption stated out loud counts the same as the interviewer's answer.
- The reason for a choice outweighs the name of a technology.