# Interview Preparation

Every question below ties back to a real operational concept, not a memorized definition. Reciting "a Service has four types" is worth far less than being able to explain what breaks when a selector doesn't match — which is the difference between passing a screening question and holding up under a senior follow-up.

## How This Is Organized

By **subject**, since that's how you'll actually study:

1. [Core Concepts](<https://computecentral.in/kubernetes/interview-prep/01-core-concepts-questions/index.md>) — Pods, Deployments, Services, namespaces, ConfigMaps/Secrets, labels/selectors
2. [Architecture & Networking](<https://computecentral.in/kubernetes/interview-prep/02-architecture-and-networking-questions/index.md>) — control plane components, kubelet/kube-proxy, CNI, DNS, Ingress vs. Service
3. [Scenario-Based Questions](<https://computecentral.in/kubernetes/interview-prep/03-scenario-based-questions/index.md>) — full debugging walkthroughs for the classic production scenarios
4. [Security & RBAC](<https://computecentral.in/kubernetes/interview-prep/04-security-and-rbac-questions/index.md>) — RBAC design, service accounts, Pod Security Admission, secrets handling
5. [Senior & Architect Questions](<https://computecentral.in/kubernetes/interview-prep/05-senior-and-architect-questions/index.md>) — multi-cluster strategy, capacity planning, disaster recovery, cost, build-vs-buy

## By Level, Roughly

| Level | Where to focus |
| --- | --- |
| Beginner | [Core Concepts](<https://computecentral.in/kubernetes/interview-prep/01-core-concepts-questions/index.md>) |
| Intermediate | [Architecture & Networking](<https://computecentral.in/kubernetes/interview-prep/02-architecture-and-networking-questions/index.md>), [Security & RBAC](<https://computecentral.in/kubernetes/interview-prep/04-security-and-rbac-questions/index.md>) |
| Advanced | [Scenario-Based Questions](<https://computecentral.in/kubernetes/interview-prep/03-scenario-based-questions/index.md>) |
| Senior / Architect | [Senior & Architect Questions](<https://computecentral.in/kubernetes/interview-prep/05-senior-and-architect-questions/index.md>) |

> [!TIP]
>
> **How senior interviews actually differ**
>
> A senior interview rarely asks "what is a `Service`" in isolation — it asks you to *reason* through a live situation ("15% of requests are 503ing during peak traffic, go") using several concepts at once. [Scenario-Based Questions](<https://computecentral.in/kubernetes/interview-prep/03-scenario-based-questions/index.md>) is built around exactly that shape.

## Most Common Kubernetes Interview Questions, Answered Briefly

**What is Kubernetes?** A container orchestrator: you declare the desired state (which images, how many replicas, what resources), and its controllers continuously reconcile the cluster toward it, rescheduling and restarting as things fail. [What Is Kubernetes?](<https://computecentral.in/kubernetes/getting-started/01-what-is-kubernetes/index.md>)

**What happens when you run `kubectl apply`?** The API server authenticates, authorizes, and admits the request and stores it in etcd; controllers create ReplicaSets and Pods; the scheduler assigns nodes; each node's kubelet starts the containers. [Architecture](<https://computecentral.in/kubernetes/getting-started/02-architecture-and-control-plane/index.md>)

**Deployment vs. StatefulSet vs. DaemonSet?** Deployment: interchangeable replicas. StatefulSet: stable names and a volume per replica, for databases and clustered systems. DaemonSet: one Pod per node, for agents. [StatefulSets](<https://computecentral.in/kubernetes/workloads-and-scheduling/02-statefulsets/index.md>)

**Liveness vs. readiness vs. startup probe?** Liveness failure restarts the container; readiness failure removes it from Service endpoints; the startup probe holds off the other two until a slow app has booted. [Probes](<https://computecentral.in/kubernetes/observability/01-probes-liveness-readiness-startup/index.md>)

**Requests vs. limits?** Requests are what the scheduler reserves; limits are hard caps. Exceeding a CPU limit throttles; exceeding a memory limit gets the container OOM-killed. [Requests and Limits](<https://computecentral.in/kubernetes/workloads-and-scheduling/05-resource-requests-limits-and-qos/index.md>)

**How do you debug a `CrashLoopBackOff`?** Read the last termination reason and exit code, then `kubectl logs --previous`, then events. [CrashLoopBackOff](<https://computecentral.in/kubernetes/troubleshooting/crashloopbackoff/index.md>)

**How does a Service find its Pods?** Its label selector; matching Ready Pods are published in EndpointSlices, which kube-proxy turns into routing rules. [Services](<https://computecentral.in/kubernetes/core-concepts/03-services/index.md>)

**Ingress vs. Gateway API?** Both route external HTTP traffic to Services. Gateway API is the newer, role-based successor with typed routing features; ingress-nginx, the most common Ingress controller, was retired in 2026. [Gateway API](<https://computecentral.in/kubernetes/networking/07-gateway-api/index.md>)

**HPA vs. VPA?** HPA changes the number of replicas; VPA changes each Pod's CPU and memory requests. [Autoscaling](<https://computecentral.in/kubernetes/workloads-and-scheduling/06-autoscaling/index.md>)

**Are Kubernetes Secrets encrypted?** Not by default: they're base64-encoded, and encryption at rest in etcd must be configured. Restrict them with RBAC, or source them from an external manager. [Secrets and Encryption at Rest](<https://computecentral.in/kubernetes/security/06-secrets-and-encryption-at-rest/index.md>)

**What is a PodDisruptionBudget?** A limit on how many of a workload's Pods voluntary disruptions (drains, upgrades, autoscaler scale-downs) may take down at once. [PodDisruptionBudgets](<https://computecentral.in/kubernetes/workloads-and-scheduling/01-deployment-strategies/index.md#poddisruptionbudgets-availability-during-maintenance>)

## Next

Start with [Core Concepts](<https://computecentral.in/kubernetes/interview-prep/01-core-concepts-questions/index.md>), or skip ahead to [Quick Reference](<https://computecentral.in/kubernetes/quick-reference/index.md>).
