Sample interview questions
A handful of hand-picked questions per role, each with a real source -- a taste of what a prep plan looks like. These are fixed samples, not generated for you; a free account turns this into a full plan built around your own skill gaps and the job you're preparing for.
Backend Engineer
1. In the ACID properties of a database transaction, what does the “I” (Isolation) guarantee?
- Concurrent transactions don't see each other's uncommitted changes — correct
- A transaction either fully happens or not at all
- Committed data survives a crash
- Every query runs on its own database connection
Isolation means concurrent transactions behave as if they ran one after another, even though the database may actually interleave them for performance. The other options describe Atomicity and Durability.
2. A request is authenticated but the server still refuses it because the account lacks permission. Which HTTP status code fits?
- 401 Unauthorized
- 403 Forbidden — correct
- 400 Bad Request
- 409 Conflict
401 means the request has no (or invalid) credentials; 403 means the server recognised who's asking and is refusing anyway.
Source: MDN: 403 Forbidden
3. Which of these HTTP methods is NOT idempotent (repeating the same request can have a different effect each time)?
- GET
- PUT
- DELETE
- POST — correct
GET, PUT and DELETE are defined to be idempotent -- sending the same request twice leaves the server in the same state as sending it once. POST has no such guarantee (e.g. it might create a second order).
Source: MDN: HTTP request methods
Frontend Engineer
1. In a React list, what is the `key` prop mainly used for?
- Styling the list item
- Helping React tell which items changed, were added or removed between renders — correct
- Setting the HTML id attribute
- Sorting the list automatically
React uses the key to match list items across renders so it can update, reorder or remove the right DOM nodes instead of re-rendering the whole list.
Source: React: Rendering Lists
2. In CSS, which generally wins when a class selector and an ID selector both target the same element with conflicting rules?
- The class selector
- The ID selector — correct
- Whichever is declared last, regardless of selector
- Neither applies
ID selectors have higher specificity than class selectors, so the ID's rule wins regardless of source order (an !important rule or inline style can still override it).
Source: MDN: Specificity
3. What does `await` do when used on a Promise inside an `async` function?
- Runs the rest of the function in a new thread
- Pauses that function until the Promise settles, without blocking the rest of the page — correct
- Converts the Promise into a callback
- Cancels the Promise if it takes too long
`await` suspends the async function at that point until the Promise resolves or rejects, but JavaScript's single thread keeps handling other work in the meantime.
Source: MDN: async function
DevOps / SRE
1. What is the difference between a Docker image and a Docker container?
- They're the same thing, just different names
- An image is a read-only template; a container is a running (or stopped) instance of that image — correct
- An image only exists in the cloud; a container only exists locally
- A container is built from several images, an image is built from one container
The image is the packaged filesystem and config; starting it creates a container, a running process with its own writable layer on top of the image.
2. In Kubernetes, what's the difference between a readiness probe and a liveness probe?
- They do the same check, readiness just runs more often
- Readiness decides if a pod should receive traffic; liveness decides if a pod should be restarted — correct
- Liveness only applies to the first deployment
- Readiness probes check CPU, liveness probes check memory
A failing readiness probe takes the pod out of the load balancer's rotation without killing it; a failing liveness probe tells Kubernetes the pod is stuck and should be restarted.
Source: Kubernetes docs: Configure Liveness, Readiness and Startup Probes
3. In infrastructure as code, what does it mean for a change to be “idempotent”?
- It can only be applied once, ever
- Applying it repeatedly leaves the infrastructure in the same end state as applying it once — correct
- It requires manual approval every time
- It only works on a single server
Idempotent infrastructure code converges to the same desired state no matter how many times you run it -- running it twice shouldn't create a second copy of the same resource.