Interview Questions
365 questions 9 domains
Interview question banks grouped by domain and topic, with each topic split into difficulty cards: concept questions from beginner to expert, then production scenarios. Every question links straight to its answer.
No questions match these filters.
DevOps 150
Containers, orchestration, infrastructure as code and CI/CD.
General DevOps 6
DevOps Engineer - Interview QuestionsBeginner
2Intermediate
1Advanced
1Expert
1Advanced
1Git & Version Control 4
DevOps Engineer - Interview QuestionsBeginner
1Intermediate
1Advanced
1Expert
1CI/CD & Release 7
DevOps Engineer - Interview QuestionsBeginner
1Intermediate
1Advanced
2Expert
1Intermediate
1Advanced
1Beginner
10- What is Docker?
- What are the key components of Docker?
- How does Docker differ from virtualization?
- What is a Docker image?
- What is a Docker container?
- How do you create a Docker image?
- How do you run a Docker container?
- What is Docker Hub?
- How to inspect the architecture of an image built using docker? and how to pull an image with a particular architecture?
- What is the difference between CMD and ENTRYPOINT in a Dockerfile?
Intermediate
9- What is Docker Compose?
- How do you define services in a Docker Compose file?
- What is the difference between a Docker image and a Docker container?
- How do you link containers in Docker?
- How do you manage data in Docker?
- What is Docker Swarm?
- How do you scale Docker services?
- What is the purpose of a Dockerfile?
- How do you make a Docker image smaller and faster to build?
Advanced
8Expert
1Advanced
1Beginner
8- What is Kubernetes? Why should we use Kubernetes?
- What are Kubernetes alternatives?
- What is the difference between Docker and Kubernetes?
- What are the benefits of using Kubernetes?
- Which are the main components of Kubernetes architecture?
- What are the different built-in APIs for workload management?
- Explain the different stages in the pod lifecycle.
- What is the difference between a Deployment, a Service and an Ingress?
Intermediate
3- What is the relation between Taints & Tolerations and Node Affinity?
- If I use kubectl proxy to expose a service on my local machine and can access it via localhost:port, can I also access this service from a remote computer using the host machine's IP address?
- What is the difference between resource requests and limits, and what happens when a pod exceeds each?
Advanced
3- Liveness, readiness and startup probes: how do you configure them, what probe options exist, what if the service has no HTTP server, and does a TCP probe need extra configuration in the Service?
- What happens in the Kubernetes cluster when a kubectl command is executed?
- How are pods scheduled in a Kubernetes cluster with multiple nodes?
Expert
1Intermediate
5- A deployment succeeded, but traffic is still going to the old version. Explain exactly where you start debugging.
- How would you debug a pod stuck in ContainerCreating? What are your next 3 CLI commands?
- One node keeps killing workloads. What evidence do you collect before touching it?
- Pods are Ready. Service endpoints exist. Users still receive 503. Where do you start?
- HPA refuses to scale even though Prometheus shows CPU > 80–90%. Root cause and fix?
Advanced
9- A Kubernetes application is healthy according to kubectl get pods, but users report 504 errors. Walk me through your troubleshooting flow.
- DNS works from your laptop but fails intermittently inside Kubernetes. What layers do you isolate?
- Gradual increase in latency across the NGINX ingress, but CPU/memory are stable. Next move?
- How would you monitor HPA scaling decisions in real time and detect metrics-server lag?
- Walk through advanced probe configurations to detect business-logic failures, not just HTTP 200.
- What's your approach to multi-zone pod affinity/anti-affinity so a node or zone failure doesn't break regional SLAs?
- Helm rollback worked. App still broken. Logs silent. What now?
- Your Karpenter setup just doubled costs overnight. Fix it without disrupting autoscaling.
- Every rolling update causes a burst of 502 errors, even though the readiness probes pass. Why, and how do you fix it?
Expert
3- A Kubernetes cluster upgrade works in staging but corrupts CoreDNS in production. How do you approach patching and restoring service?
- Explain how you'd leverage eBPF + Cilium to enforce network policies at runtime, and the advantages over traditional CNIs.
- You deployed a Cilium update, and inter-pod communication breaks for one namespace. How do you confirm the root cause?
Terraform 30
Terraform Interview QuestionsBeginner
11- What is Terraform?
- What are the advantages in using Terraform or IaC in general?
- Does Terraform use declarative or imperative approach?
- What language does Terraform uses?
- What's a typical Terraform workflow?
- What's the difference between Terraform and technologies such as Ansible, Puppet, Chef, etc.
- What are different variable types that you have used so far?
- What are different loops available in terraform?
- What is the difference between lists, tuples and set type in terraform?
- What's Terraform State? Where is it stored?
- What is Terraform state locking?
Intermediate
8- Explain the background tasks that are executed after running the command 'terraform init' on a new machine?
- How to define dependencies between resources in terraform? Which terraform command is used to check the dependencies between resources?
- What are terraform providers? Can we create our own terraform provider?
- What is the effect of setting variable as "sensitive"?
- If the same variable is defined in the following places, which source will be used first?
- What are locals? and why are they used instead of variables?
- What are "Provisioners"? What are different types?
- What is terraform backend? What are best practices for creating a terraform backend?
Advanced
7- Can we use a single terraform state file to store resources from multiple cloud providers? If yes, how does the authentication works for each cloud provider?
- How are secrets managed in terraform? Where are they stored and how are they accessed from terraform?
- What is the resource recreation lifecycle? and can we control the resource recreation lifecyle?
- Explain the folder structure that you will be creating in order to deploy individual env(webapp+db) for 10 customers.
- What are the locations where the terraform would search for providers if the internet is not accessible from a machine?
- What is Terraform Plugin Cache? How do we manage it in an controlled environment where internet is not accessible?
- How to import resources into terraform state when using modules? for_each? terragrunt?
Advanced
4- Terraform apply is failing due to drift, but the infrastructure is currently live and critical. How do you fix it without causing downtime?
- Terraform wants to destroy something critical. What do you do?
- Terraform wants to recreate 40 production resources. Nobody changed the code. What happened?
- Terraform remote_state backend suddenly times out. What's your recovery and damage-containment strategy?
Infrastructure as Code 4
DevOps Engineer - Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Jenkins 35
Jenkins - Interview QuestionsBeginner
5Intermediate
15- What is a Jenkins Pipeline?
- What are the differences between Declarative and Scripted Pipelines in Jenkins?
- How do you configure a Jenkins job?
- Explain how you would create and use Jenkinsfiles.
- What is the difference between a Freestyle project and a Pipeline in Jenkins?
- How do you schedule a Jenkins job?
- How do you secure Jenkins?
- How do you manage users and roles in Jenkins?
- Explain how to backup and restore Jenkins configurations.
- What strategies would you use to scale Jenkins?
- How do you integrate Jenkins with version control systems like Git?
- What are some common CI/CD tools that integrate with Jenkins?
- How do you automate tests with Jenkins?
- Describe how to set up a continuous deployment pipeline with Jenkins.
- How do you use Jenkins to deploy applications to different environments (e.g., dev, test, prod)?
Advanced
10- How do you monitor Jenkins and its jobs?
- What are some common issues you might encounter with Jenkins and how do you resolve them?
- How can you optimize Jenkins performance?
- What strategies would you use to handle long-running jobs in Jenkins?
- How do you handle failing Jenkins builds?
- Explain the use of Jenkins agents and how to configure them.
- What is the role of Blue Ocean in Jenkins?
- How do you use Jenkins for building Docker images?
- Describe how you can trigger Jenkins jobs remotely.
- How do you use Jenkins with Kubernetes for CI/CD?
Intermediate
5- Describe a CI/CD pipeline you have implemented using Jenkins.
- How do you handle secrets and credentials in Jenkins?
- How would you migrate Jenkins jobs from one server to another?
- Explain a situation where you improved the CI/CD process using Jenkins.
- How do you manage dependencies in a Jenkins pipeline?
SRE & Reliability 41
Incident response, observability and SLOs, chaos engineering and the data layer in production.
Incident Response 12
SRE Interview QuestionsBeginner
1Intermediate
2Advanced
8- Checkout latency goes 180 ms → 4.8 s. CPU, memory, pods and DB are healthy, there was no deploy, and only APAC users are affected. What first? APAC DNS resolution went 22 ms → 780 ms but still resolves. Is DNS the root cause?
- Failures (or playback errors) for only ~3% of users, all in APAC. CPU, memory and pods look fine. Triage plan?
- Monitoring says 99.99% availability. Customers disagree. Who's wrong?
- Everything is 200 OK, but user sign-ups dropped 80%. RCA plan?
- Your database recovered, but the application didn't. Why might restarting the application make things worse?
- Your rollback makes the outage worse. Why could that happen?
- You had HA. You still had 9 minutes of outage. What did your team miss?
- One AZ is slow; other AZs are healthy. Same application, same deployment. Where do you look?
Expert
1Observability & SLOs 7
SRE Interview QuestionsBeginner
1Intermediate
1Advanced
3- Infra spans very different systems (manufacturing, energy, vehicle telemetry). How would you define SLOs that make sense across them?
- How do you build a culture where SLOs (including latency SLOs) are owned and enforced like uptime SLAs, not ignored?
- How do you set SLOs for both AI inference latency and batch training completion without over-provisioning GPUs?
Expert
1Advanced
1Capacity & Performance 4
SRE Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Chaos Engineering 5
SRE Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
2Data Layer 7
SRE Interview QuestionsBeginner
1Intermediate
1Advanced
4- A service depends on Kafka + Redis. Both look healthy, but requests fail intermittently. What's your debug path before escalating to app teams?
- A Kafka ingestion pipeline lags by 2 minutes during a traffic surge. Producers are fine, consumers are idle. Debug path?
- Sudden tail latency on a Redis-based session store during a peak live event. How do you find and fix the bottleneck?
- S3 replication silently failed for 2 days. Who caught it, and why?
Expert
1Leadership & Behavioural 6
SRE Interview QuestionsBeginner
1Intermediate
1Expert
2Advanced
1Expert
1Cloud 22
Cloud fundamentals, compute and scaling, resilience across zones and regions, cost, and identity.
Cloud Fundamentals 4
Cloud Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Compute & Scaling 6
Cloud Interview QuestionsBeginner
1Intermediate
1Advanced
1Expert
1Advanced
1Expert
1Resilience & Multi-Region 4
Cloud Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Cost & FinOps 4
Cloud Interview QuestionsBeginner
1Expert
1Intermediate
1Advanced
1Cloud Identity & Access 4
Cloud Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Networking 24
Fundamentals, DNS, load balancing and TLS, service mesh and cloud networking.
Networking Fundamentals 4
Networking Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Beginner
1Intermediate
1Expert
1Advanced
2Load Balancing & TLS 4
Networking Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Service Mesh 7
Networking Interview QuestionsBeginner
1Intermediate
1Expert
2Advanced
3Cloud Networking 4
Networking Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1DevSecOps 25
Security built into the pipeline and the platform.
DevSecOps Fundamentals 6
DevSecOps Interview QuestionsBeginner
2Intermediate
2Expert
1Advanced
1Pipeline Security 4
DevSecOps Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Secrets Management 5
DevSecOps Interview QuestionsBeginner
1Intermediate
1Expert
1Intermediate
1Advanced
1Cloud & IaC Security 6
DevSecOps Interview QuestionsBeginner
1Intermediate
3Expert
1Advanced
1Container & Kubernetes Security 4
DevSecOps Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Architect 16
Cloud security architecture, identity, data protection, and the judgment behind the role.
Cloud Security Architecture 4
Cloud Security Architect Interview QuestionsBeginner
1Intermediate
1Advanced
1Expert
1Identity & Access 4
Cloud Security Architect Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Data Protection 4
Cloud Security Architect Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Leadership & Communication 4
Cloud Security Architect Interview QuestionsBeginner
1Intermediate
1Advanced
1Expert
1System Design 16
Designing scalable, reliable systems from building blocks.
System Design Fundamentals 4
System Design Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Data & Storage 4
System Design Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Caching & Messaging 4
System Design Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
1Classic Design Problems 4
System Design Interview QuestionsBeginner
1Intermediate
1Advanced
1Expert
1AI Infrastructure 26
GPUs on Kubernetes, training and inference platforms.
AI Infrastructure Fundamentals 5
AI Infrastructure Interview QuestionsBeginner
1Intermediate
2Expert
1Advanced
1GPU Scheduling 5
AI Infrastructure Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
2Distributed Training 5
AI Infrastructure Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
2Inference & Serving 5
AI Infrastructure Interview QuestionsBeginner
1Intermediate
1Expert
1Advanced
2GPU Observability & Cost 6
AI Infrastructure Interview QuestionsBeginner
1Intermediate
1Expert
1Intermediate
1Advanced
2Programming 45
Programming languages - core concepts, idioms, debugging scenarios and coding exercises.
Python 35
Python Interview QuestionsBeginner
7- What's the difference between mutable and immutable types, and why does it matter?
- What's the difference between is and ==?
- When would you use a list, tuple, set or dict?
- How does Python pass arguments to functions: by value or by reference?
- What are *args and kwargs, and what are keyword-only and positional-only parameters?
- What does if name == "main": do?
- What's the difference between a shallow copy and a deep copy?
Intermediate
7- What is a decorator? Write one that logs how long a function takes.
- What are generators, and why use them instead of returning a list?
- How do context managers work, and how do you write one?
- Explain the LEGB rule, closures and nonlocal.
- What's the difference between str and repr, and when would you use a dataclass?
- What's the difference between an iterable and an iterator?
- How do try / except / else / finally work, and what are exception chaining and exception groups?
Advanced
7- What is the GIL, what does it affect, and what's changing with free-threaded Python?
- How does Python manage memory?
- How does asyncio work under the hood?
- When would you use a metaclass, a class decorator or init_subclass?
- What are descriptors, and how do property and methods use them?
- What is the MRO, and how does super() work with multiple inheritance?
- How do type hints work at runtime, and when would you use a Protocol?
Beginner
4- A helper that adds items to a list keeps returning items from previous calls. What's going on?
- pip install requests succeeded, but import requests fails with ModuleNotFoundError. How do you troubleshoot?
- A loop that removes invalid entries from a list leaves some of them behind. Why?
- An invoice total comes out as 0.30000000000000004 instead of 0.3. What do you do?
Intermediate
5- A script that parses a 20 GB log file gets killed by the OOM killer. How do you fix it?
- You create a list of callbacks in a loop, and they all use the last loop value. Why?
- A job calls 500 REST endpoints one after another and takes 10 minutes. How would you speed it up?
- The app works on your laptop but fails in CI with a different version of a dependency. How do you make builds reproducible?
- A background worker occasionally "loses" jobs, with no errors in the logs. Code review finds except Exception: pass. What's wrong, and how do you fix it?
Advanced
5- A long-running API service's memory grows steadily until the container is OOM-killed. How do you find the leak?
- A CPU-heavy image-processing job uses 16 threads on a 16-core machine, but it's no faster than one thread. Why, and what would you do?
- An asyncio web service freezes for a few seconds every so often, and all requests stall together. What do you check?
- A CLI tool takes three seconds to start, even for --help. How do you speed it up?
- A colleague wants to cache user session objects by pickling them into Redis. What concerns do you raise?