KatInterview

DevOps & Kubernetes Fundamentals: CI/CD to Production Ops

System DesignModel answer
MediumModel answerSystem Designkubernetesci-cddevops

Last updated

Demonstrate practical DevOps fluency across CI/CD pipelines, GitOps delivery, Kubernetes troubleshooting, containerization, and Linux diagnostics.

You are being evaluated for a production-focused engineering role that requires both conceptual understanding and hands-on operational skills. Answer each of the following questions concisely but precisely — give concrete examples, name tools you have actually used, and explain trade-offs where relevant.

  1. Define CI/CD. Walk through the stages of a typical pipeline and name at least two tools, explaining why you would choose each.

  2. Describe the GitOps workflow for deploying to Kubernetes using a pull-based CD tool. How does sync work? How do you handle rollbacks in a way that preserves Git as the source of truth?

  3. What is Helm and what problem does it solve? Sketch the directory structure of a Helm chart and explain what each major file or folder does.

  4. A pod running a Java application is stuck in CrashLoopBackOff. Walk through your debugging process step by step, including specific commands and the most common root causes for a JDBC-based service.

  5. What is a VPC? What is HPC? When would each come up in a cloud or infrastructure conversation?

  6. Give three concrete reasons to containerize an application. What are the main trade-offs?

  7. You need to inspect a running process with PID 9003 on a Linux host. What commands would you use, and what information does each give you?

  8. What Linux commands help you locate files or directories? Give at least three approaches and describe when you would use each.

  9. What tools or commands have you used to diagnose network connectivity problems? Describe the kind of problem each one is best suited for.

  10. How do you make database schema changes safer in a production environment? Address backward compatibility, rollbacks, and minimizing downtime.

  11. Compare Deployment and StatefulSet in Kubernetes. What are the behavioral differences and when should you use each?

For each answer, aim to show that you understand why, not just what. Mention failure modes and edge cases where they are relevant.

Hints

Hint 1

For CI/CD, structure your answer as a pipeline: commit → build → test → scan → publish → deploy → verify. Name a specific tool for each phase if you can, and explain the choice rather than just listing names.

Hint 2

For the CrashLoopBackOff question, start by reading the exit code from `kubectl describe` before looking at logs — exit code 137 (OOMKilled) and exit code 1 (app error) point to completely different fixes.

Hint 3

For StatefulSet vs Deployment, anchor your answer in identity and storage: StatefulSets give each pod a stable hostname and its own PersistentVolumeClaim; Deployments treat pods as interchangeable. That single difference drives every other behavioral distinction.