Kubernetes, gRPC Performance and the Three Ingredients for Running a Container
Company: Citadel
Role: Site Reliability Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
This technical screen for a site reliability engineering internship included short fundamentals questions about containers and service-to-service communication. Answer each concisely, but with enough mechanism to show how it works.
### Clarifying Questions
- For Kubernetes, should the answer stay at the level of what users deploy, or go into the control plane components?
- For gRPC, is the comparison with REST APIs that exchange JSON over HTTP/1.1?
- For containers, does "run a container" mean on a single Linux host, outside any orchestrator?
### Part 1 — What is Kubernetes?
Explain what Kubernetes is and what it does.
```hint Desired state
Think about what a user hands to Kubernetes, and what keeps the cluster matching it when machines or containers fail.
```
#### What This Part Should Cover
- The problem a container orchestrator solves and its main responsibilities
- The core objects users work with and what each is for
- The components of the control plane and of each node, and how they cooperate
### Part 2 — What is gRPC, and why is it faster?
Explain what gRPC is and why it is usually faster than a REST API that exchanges JSON.
```hint Two layers
Separate what changes in how a message is encoded from what changes in how messages travel over the connection.
```
#### What This Part Should Cover
- What gRPC is and how a service is defined and called
- The serialization reasons for its speed, explained by mechanism
- The transport reasons for its speed, explained by mechanism, and the call styles it supports
- Limits and caveats, including when it is not the right choice
### Part 3 — The three things needed to run a container
What three things do you need to run a container? Explain what each one contributes.
```hint From files to a process
Follow a container from the files it is built from to the process that ends up running, and name what each step relies on.
```
#### What This Part Should Cover
- Three distinct ingredients, each named correctly with what it contributes
- How the ingredients fit together when a container starts
- Awareness of the standards involved and of other reasonable framings
### What a Strong Answer Covers
- Accurate definitions backed by the underlying mechanisms, not buzzwords
- Correct names and roles for the key components in each answer
- Honest trade-offs, such as where gRPC is a poor fit and what Kubernetes costs in complexity
- Links to reliability work: self-healing, rollouts, resource limits and debugging
### Follow-up Questions
- A Pod keeps restarting with the status CrashLoopBackOff. How do you investigate?
- gRPC keeps long-lived HTTP/2 connections. Why can that defeat load balancing behind a Kubernetes Service, and how do you fix it?
- What happens to a container that uses more memory than its limit, and how does that relate to cgroups?
- During a rolling update, how do you avoid failing gRPC calls that are in flight on the Pods being replaced?
Overview: Three infrastructure fundamentals for a site reliability engineering internship: what Kubernetes is and how it works, what gRPC is and why it is usually faster than JSON over REST, and the three things needed to run a container. It tests understanding of orchestration, transport and serialization, and Linux isolation.
Read the full Citadel Site Reliability Engineer interview experience this question came from