MyInternships.in
44 QUESTIONS · JUNIOR TO SENIOR · WITH ANSWERS

AWS DevOps Engineer Interview Questions Interview Questions and Answers

The mixed practical round for an AWS DevOps or platform engineer role — Linux, Docker, Kubernetes, Git, networking fundamentals and scripting as they are actually asked alongside the AWS services, plus the working-practice questions that decide the offer.

2 junior16 mid-level26 senior

How to use this set

Every question below is written the way an interviewer actually phrases it, followed by a model answer you could say out loud in 30–60 seconds, and — where it helps — the reason the question is asked and the trap most candidates fall into. Questions are tagged Junior, Mid or Senior so you can skip to your level.

This is one of 25 topic sets in the complete AWS interview questions guide. Work through the fundamentals first, then the services your target role actually uses.

1
Mid level

What does DevOps mean to you?

Answer: Shared ownership of software from commit to production — developers accountable for how their code runs, and platform engineers building the automation that makes that safe. In practice it shows up as automated delivery, infrastructure as code, observability owned by the team writing the code, and a blameless culture around failure.

Why interviewers ask this: The answer to avoid is "DevOps is a role that does CI/CD". Interviewers listen for cultural and organisational components alongside tooling, and naming the four DORA metrics as how you would measure it is a strong close.

2
Mid level

What is a container image layer and why does layer order matter?

Answer: An image is built from stacked read-only layers, one per instruction, cached and reused across builds. Order matters because changing one layer invalidates every layer after it — so you copy dependency manifests and install dependencies before copying application source.

Why interviewers ask this: This single optimisation turns a two-minute rebuild into ten seconds. The security corollary is that deleting a file in a later layer does not remove it from the image, so a secret baked into an early layer remains recoverable.

Dockerfile
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
3
Mid level

How do you reduce container image size and why does it matter?

Answer: Multi-stage builds so the runtime image contains only artefacts, minimal or distroless base images, combining RUN commands, cleaning package caches in the same layer, and a .dockerignore. It matters for pull time — which affects cold start and autoscaling speed — and for vulnerability surface.

Why interviewers ask this: The security argument is stronger than the size one: a build-tool-laden image gives an attacker a compiler and package manager inside your container. Distroless has no shell, which changes how you debug — worth naming as the trade-off.

4
Senior level

What is the difference between CMD and ENTRYPOINT?

Answer: ENTRYPOINT defines the executable that always runs; CMD provides default arguments that can be overridden at run time. Using ENTRYPOINT in exec form with CMD for defaults gives a container that behaves like a command with sensible defaults.

Why interviewers ask this: The exec-form point matters operationally: shell form runs the process as a child of a shell, so it does not receive SIGTERM directly and graceful shutdown silently breaks. That is a real cause of dropped requests during deployments.

5
Senior level

Why does SIGTERM handling matter for containers?

Answer: The runtime sends SIGTERM and then, after a grace period, SIGKILL. The application should stop accepting new work, finish in-flight requests and exit. If it ignores SIGTERM — or is not PID 1 because of a shell-form entrypoint — requests are cut off on every deploy and scale-in.

Why interviewers ask this: This causes the low-rate 5xx blip many teams accept as normal during deployments, which is entirely avoidable. Connecting the platform behaviour to an application code requirement is exactly what a DevOps interviewer is testing.

6
Mid level

What Linux commands would you use to diagnose a slow server?

Answer: top or htop for CPU and memory, vmstat and iostat for system-wide CPU, memory, swap and disk I/O, df and du for disk, ss for connections, dmesg for kernel messages including OOM kills, and journalctl for service logs. Then strace or perf to go deeper on a specific process.

Why interviewers ask this: Knowing that an OOM kill appears in dmesg identifies "the process just disappeared" quickly. The AWS-specific equivalent when the instance is unreachable is the EC2 Serial Console or the instance screenshot, which is worth naming.

7
Senior level

A disk is full but du does not account for the space. What is happening?

Answer: Almost certainly a deleted file still held open by a running process — the space is not released until the descriptor closes. Find it with lsof looking for deleted entries, then restart the holding process. It is usually a log file removed rather than rotated.

Why interviewers ask this: Knowing the lsof diagnosis immediately is a strong signal. The preventive answer is proper log rotation with copytruncate, or shipping logs off the machine so they never accumulate locally.

aws cli
sudo lsof -nP | grep '(deleted)'
8
Mid level

How would you debug a service that is unreachable?

Answer: Work outward in layers: is the process running and listening on the expected port; does the host firewall allow it; does the security group allow it in the right direction; does the NACL allow both request and return traffic; is there a route and gateway; does DNS resolve correctly; and is the load balancer target healthy.

Why interviewers ask this: Naming VPC Reachability Analyzer as the tool that traces the configured path and names the blocking component turns a list of hypotheses into a definitive answer. The host firewall is the layer people forget when AWS configuration looks correct.

9
Mid level

What is the difference between a Deployment, StatefulSet and DaemonSet in Kubernetes?

Answer: A Deployment manages interchangeable stateless replicas with rolling updates. A StatefulSet gives stable identities and per-pod persistent storage with ordered operations, for databases and queues. A DaemonSet runs one pod per node, for log collectors, monitoring agents and CNI plugins.

Why interviewers ask this: The judgement to add is that a StatefulSet means you own backup, failover and upgrades for that data store, and on AWS a managed database usually beats self-managing on Kubernetes. Recommending against a StatefulSet is often the better engineering answer.

10
Senior level

How does Kubernetes decide where to schedule a pod?

Answer: The scheduler filters nodes by feasibility — resource requests, node selectors, affinity and anti-affinity, taints and tolerations, volume topology — then scores the remaining and picks the best. If none pass, the pod stays Pending and the autoscaler may add capacity.

Why interviewers ask this: The point that matters operationally is that scheduling uses *requests*, not actual usage, so under-set requests cause overcommitment and over-set requests waste money. That single fact explains most Kubernetes capacity problems.

11
Mid level

What are resource requests and limits, and what happens when a container exceeds each?

Answer: A request is what the scheduler reserves; a limit is the runtime ceiling. Exceeding a CPU limit causes throttling — the container is slowed. Exceeding a memory limit causes an OOM kill and restart, because memory is incompressible.

Why interviewers ask this: That asymmetry is the substance. Exit code 137 in a restarting container means OOM-killed, and recognising that immediately is what shows operational experience rather than theory.

12
Senior level

What is the difference between a liveness, readiness and startup probe?

Answer: Liveness determines whether the container is healthy — failing it restarts the container. Readiness determines whether it can serve traffic — failing it removes the pod from endpoints without restarting. A startup probe protects slow-starting applications by disabling the other two until it succeeds once.

Why interviewers ask this: The dangerous misconfiguration is a liveness probe checking a downstream dependency: when the database blips, every replica restarts simultaneously, turning a partial outage into a total one. Liveness tests the process; readiness is where dependency checks belong.

Preparing for a AWS role?

Browse live AWS cloud internships and fresher jobs hiring across India right now.

AWS Cloud Jobs
13
Senior level

What is a PodDisruptionBudget and how can it cause a problem?

Answer: A PDB declares the minimum pods that must remain available during voluntary disruptions such as node drains, so an upgrade cannot evict all replicas at once. Set too strictly — minAvailable equal to the replica count — it blocks drains entirely and stalls cluster upgrades indefinitely.

Why interviewers ask this: That the same mechanism can cause both an outage and a stuck upgrade is what makes it a good question. Managed node groups and Karpenter both respect PDBs, so it directly affects whether upgrades complete.

14
Mid level

What is the difference between git merge and git rebase?

Answer: Merge creates a commit joining two histories, preserving what actually happened. Rebase replays your commits on top of the target branch, producing linear history but rewriting commit hashes. Never rebase a branch others have pulled, because their history diverges.

Why interviewers ask this: The rule about not rebasing shared branches is the safety point interviewers check. A common convention worth naming is rebasing locally before pushing to keep history readable, then merging pull requests with a squash or merge commit.

15
Junior level

How do you handle merge conflicts and how do you avoid them?

Answer: Resolve by understanding both changes rather than picking a side blindly, then testing. Avoid them with small, frequent, short-lived branches, regular integration from main, and clear ownership so two people rarely edit the same code simultaneously.

Why interviewers ask this: The structural answer is trunk-based development with feature flags, because long-lived branches guarantee painful merges. Interviewers use this to probe working practice as much as Git mechanics.

16
Junior level

Write a command to find the ten largest files in a directory tree.

Answer: Use find to list files with sizes, sort numerically and take the top ten; du with sort for directories. The point is comfort composing standard tools rather than memorising a specific incantation.

Why interviewers ask this: Small scripting questions check whether you can actually operate a machine. Being able to explain why -print0 or careful quoting matters for filenames with spaces is worth more than the shortest one-liner.

bash
find . -type f -printf '%s %p\n' | sort -rn | head -10
du -ah . | sort -rh | head -10
17
Mid level

How do you make a shell script safe for automation?

Answer: Start with set -euo pipefail so it exits on error, undefined variables and pipeline failures. Quote all variable expansions, use trap for cleanup, check preconditions explicitly, log what it is doing, and make it idempotent so a re-run after partial failure is safe.

Why interviewers ask this: Idempotency is the requirement that matters most in automation, because scripts get re-run after failures. A deployment script that appends rather than sets, or creates without checking, causes duplicates on the second run.

bash
set -euo pipefail
trap 'echo "failed at line $LINENO"' ERR
18
Mid level

What would you automate first in a team doing everything manually?

Answer: Whatever is most frequent, most error-prone and most painful — usually deployment, because manual deployment is both risky and limits release frequency. Then environment provisioning with IaC, then testing, then routine operational tasks. Measure where time actually goes rather than guessing.

Why interviewers ask this: The reasoning is frequency multiplied by risk, not "what is easiest to automate". Naming that you would measure first shows you optimise for impact rather than for the satisfying project.

19
Mid level

What is immutable infrastructure and why does it help?

Answer: Servers and containers are never modified after deployment — to change anything you build a new artefact and replace the old one. Running instances always match a tested build, configuration drift is impossible, rollback is redeploying the previous artefact, and debugging does not have to account for accumulated ad-hoc changes.

Why interviewers ask this: On AWS this means golden AMIs from Image Builder or containers, deployed by replacing instances or tasks. The contrast is in-place configuration management, where every server's state is the result of a unique history nobody can reproduce.

20
Senior level

How do you manage configuration across environments without duplication?

Answer: A shared base with environment-specific overlays — Kustomize overlays, Helm values files, or IaC variable files per environment — so the difference is small, visible and reviewable. Secrets come from Secrets Manager per environment, never from the configuration files.

Why interviewers ask this: The test of a good setup is whether you can see the entire difference between staging and production in one small diff. If you cannot, the environments drift and staging stops predicting production behaviour.

21
Senior level

How do you handle secrets rotation without downtime?

Answer: Support two valid credentials during the rotation window: create the new one, deploy consumers that accept both, switch producers, verify, then revoke the old. Secrets Manager's alternating-users rotation strategy implements exactly this for databases.

Why interviewers ask this: The dual-validity window is what makes rotation non-disruptive, and it applies to database passwords, API keys and certificates alike. Teams that rotate by changing the value and redeploying everything simultaneously usually stop rotating.

22
Senior level

What is the on-call experience you would design for a team?

Answer: Enough engineers that the rotation is sustainable; runbooks linked from every alert; a documented escalation path; alerts that are actionable, urgent and user-affecting only; a handover process; compensation or time in lieu; and an agreement that a noisy alert is a defect to be fixed rather than tolerated.

Why interviewers ask this: Tracking pages per shift as a health metric is the concrete mechanism, with a threshold above which alert tuning becomes the priority. Someone who has been on call describes the human side unprompted, which is what this question surfaces.

23
Senior level

How do you decide what belongs to the platform team versus application teams?

Answer: The platform owns what should be consistent and is expensive to get right repeatedly — networking, identity, delivery pipelines, observability standards, guardrails. Teams own what is specific to their product. The platform provides paved paths rather than approval gates.

Why interviewers ask this: The failure mode is a platform team that becomes a ticket queue, recreating the bottleneck cloud was meant to remove. Framing the platform as a product with internal customers is what avoids it.

24
Senior level

How do you introduce infrastructure as code to a resistant team?

Answer: Start where the pain is — a repeated manual task or an environment nobody can recreate — and demonstrate value on something low-risk. Import existing infrastructure gradually rather than demanding a rewrite, provide modules so the easy path is the correct path, and pair with people rather than mandating a standard.

Why interviewers ask this: The paved-path idea is the important one: adoption happens when the governed way is also the easiest way. Mandates without tooling produce compliance theatre, and interviewers assessing seniority listen for that distinction.

Preparing for a AWS role?

Browse live AWS cloud internships and fresher jobs hiring across India right now.

AWS Cloud Jobs
25
Senior level

What is the difference between a rolling restart and a rolling update?

Answer: A rolling update replaces pods or tasks with a new version. A rolling restart replaces them with the same version — used to pick up a changed ConfigMap or Secret, or to clear bad state — triggered by patching an annotation so the pod template changes.

Why interviewers ask this: The gotcha it addresses is that changing a ConfigMap does not restart pods consuming it as environment variables, so the change silently does not apply. Knowing kubectl rollout restart and why it works by mutating an annotation is a practical detail.

26
Senior level

How do you handle deployment dependencies between services?

Answer: Design so ordering does not matter: make APIs backwards and forwards compatible, use expand-and-contract for contract changes, and have services tolerate a dependency being briefly on the old version. Where ordering genuinely matters, express it in the pipeline rather than relying on timing.

Why interviewers ask this: The rule is that a deployment requiring a specific cross-team order will eventually be done in the wrong order. Designing for order-independence is more robust than coordinating, which demonstrates systems thinking.

27
Mid level

What monitoring would you set up on day one for a new service?

Answer: An uptime or synthetic check from outside; SLIs for success rate and latency with an SLO and burn-rate alerting; the four golden signals on a dashboard with deployment markers; structured logs with trace correlation; error grouping; and an alarm on the service hitting a capacity or concurrency limit.

Why interviewers ask this: Starting with an external check is pragmatic because it catches the whole class of "the service is fine but unreachable" failures. Defining the SLO on day one is what forces the team to decide what "working" means.

28
Senior level

A developer asks for production access to debug an issue. How do you respond?

Answer: Ask what they need to see and provide it through logs, metrics, traces or a read-only view, which solves most cases. If direct access is genuinely required, grant time-bound elevated access through a role with session logging — Systems Manager Session Manager rather than SSH — with an alert on the grant and a review afterwards.

Why interviewers ask this: A flat refusal pushes people towards shared credentials and workarounds. Offering a better path first and a controlled path second is what a mature platform engineer does.

29
Senior level

How do you keep an EKS cluster up to date safely?

Answer: Check deprecated API usage against the target version first using cluster insights; upgrade the control plane, then core add-ons, then node groups, respecting the version skew policy. Use managed node groups so drains respect PodDisruptionBudgets, test in a non-production cluster, and stay within the supported version window.

Why interviewers ask this: Checking deprecated APIs before upgrading prevents workloads breaking on a version bump. Falling out of the supported window incurs extended-support charges and eventually forces an unplanned upgrade, which is worse than a planned one.

30
Senior level

How do you balance delivery speed against stability?

Answer: They are not opposed: smaller, more frequent changes are easier to review, test and roll back, so high performers achieve both. Use error budgets to make the trade-off explicit — ship while budget remains, prioritise reliability when it is exhausted — so the decision is data-driven rather than an argument.

Why interviewers ask this: Citing the DORA finding that speed and stability correlate positively is the strongest version. The error budget as the arbitration mechanism turns a values disagreement into a policy, which is what makes it work in practice.

31
Senior level

What would you do in your first month on an unfamiliar AWS estate?

Answer: Inventory with Config and the Cost and Usage Report to find what exists and what matters; map how code reaches production; check IAM, guardrails and logging; find out what wakes people up; and talk to the teams. Then fix the highest-risk gap — usually credentials, untested backups or a missing rollback path — rather than starting a rewrite.

Why interviewers ask this: Understanding and stabilising before changing is what interviewers assess. Naming a specific first fix — verifying that backups restore, or removing long-lived access keys — is more convincing than a general plan.

32
Senior level

What is the difference between reliability engineering and keeping things running?

Answer: Keeping things running is reactive — respond to alerts, restart failures, repeat. Reliability engineering treats operations as an engineering problem: measuring with SLOs, capping toil, automating repetitive work, and using postmortems and error budgets to change the system so the same failure cannot recur.

Why interviewers ask this: The measurable expression is the toil cap — roughly half an engineer's time on engineering that reduces future load. A team firefighting all week is not doing reliability engineering regardless of job titles.

33
Senior level

How do you test disaster recovery?

Answer: Actually execute it: fail over to the secondary region in a scheduled exercise, restore a database from backup into a test environment and validate the data, and measure the real recovery time against the objective. Document what went wrong and fix it.

Why interviewers ask this: An untested DR plan has an unknown recovery time, which is functionally the same as having none. Restoring backups regularly is the minimum, since an unverified backup is a hope rather than a control.

34
Senior level

What do you look for when reviewing an infrastructure pull request?

Answer: Whether anything is being destroyed or replaced; whether permissions are least-privilege; whether secrets appear anywhere; whether resources are tagged for cost attribution; whether the change is reversible; whether limits and probes are set sensibly; and whether it matches what the description claims.

Why interviewers ask this: Scanning the plan or change set for destroy and replace lines first is the practical habit, because those cause outages and are easy to miss in a long diff. Automating a check that fails on an unlabelled destroy is the enforced version.

35
Mid level

How do you decide between EC2, ECS, EKS, Fargate and Lambda?

Answer: Start at the most managed option and step down only when a real constraint forces it. Lambda for short event-driven work; Fargate for containers without node management; ECS for simpler AWS-native orchestration; EKS when you need Kubernetes ecosystem or portability; EC2 for full OS control, specialised hardware or licensing.

Why interviewers ask this: Naming the specific constraint that forces each step is what makes it a framework rather than a preference. Choosing EKS because the team likes Kubernetes, without a workload requirement, is a cost an interviewer will probe.

36
Senior level

Tell me about a time automation you built caused a problem.

Answer: A good answer describes real automation, the failure mode — acting on wrong input, running when it should not, or acting too fast to stop — the impact, how you detected and halted it, and the guardrail added afterwards: a dry-run mode, a blast-radius limit, a confirmation for destructive actions, or a rate limit.

Why interviewers ask this: Interviewers ask this to see whether you build guardrails by default. The lesson they want is that automation amplifies mistakes, so anything destructive needs a bound on how much damage it can do before a human notices.

Preparing for a AWS role?

Browse live AWS cloud internships and fresher jobs hiring across India right now.

AWS Cloud Jobs
37
Senior level

How do you handle a flaky test suite?

Answer: Quarantine flaky tests so they do not block the pipeline, but track them as defects with owners rather than deleting them; find the cause — shared state, timing assumptions, real network calls, ordering — and fix it; and measure flakiness rate as a first-class metric.

Why interviewers ask this: It matters because of trust: once a red build is assumed flaky, real failures are ignored and the pipeline protects nothing. Framing flakiness as a reliability problem rather than an annoyance is the mature position.

38
Mid level

What is the difference between a security group and a NACL, and which do you reach for?

Answer: Security groups are stateful, attached to interfaces, allow-only, and can reference other security groups — which is the idiomatic pattern for tiered architectures. NACLs are stateless, subnet-level, support deny rules, and require explicit rules in both directions.

Why interviewers ask this: The practical guidance is to do almost everything with security groups and reserve NACLs for coarse subnet denies, because stateless rules require remembering ephemeral port ranges for return traffic — a classic source of mysterious failures.

39
Mid level

How do you keep learning in a field that changes this fast?

Answer: Depth on fundamentals — networking, Linux, distributed systems — because those transfer across every platform while service names change. Then hands-on work with new services on real problems, release notes for what you operate, and postmortems from other organisations, which teach failure modes cheaply.

Why interviewers ask this: The point that lands is distinguishing durable knowledge from vendor-specific detail: someone who understands TCP, DNS and consistency models learns any cloud quickly, while someone who memorised service names relearns everything each cycle.

40
Senior level

How would you reduce deployment lead time from two weeks to one day?

Answer: Measure where the time actually goes first — waiting for approval, manual testing, batching releases, environment contention. Then attack the largest queue: automate the testing gate, remove manual approvals for low-risk changes, provide on-demand environments, and reduce batch size so each release is smaller and safer.

Why interviewers ask this: Measuring before optimising is the answer, because the bottleneck is usually organisational rather than technical — approvals and batching, not build speed. Reducing batch size is the counter-intuitive lever that improves both speed and safety.

41
Mid level

What is a canary deployment and how do you decide to promote?

Answer: A canary sends a small percentage of real traffic to the new version, monitors it, then increases the share. Promotion should be gated on automated metrics — error rate and latency against the stable version — with automatic rollback, rather than a human watching a dashboard for five minutes.

Why interviewers ask this: The automated criterion is what makes it valuable. Naming a specific one, such as p99 latency within a tolerance of baseline over a defined observation window, is what shows you have implemented rather than described it.

42
Senior level

How do you handle an incident where you cannot find the root cause quickly?

Answer: Restore service by whatever safe means — roll back, fail over, shed load, disable the feature — and continue investigating with the pressure off. Preserve logs, metrics and affected state. Communicate that service is restored while investigation continues, then run a blameless postmortem.

Why interviewers ask this: The priority order is what is being tested: mitigation before understanding. Engineers who keep debugging a live outage because they want to know why are optimising for curiosity over users.

43
Senior level

What is GitOps and would you use it on AWS?

Answer: GitOps makes a Git repository the source of truth with an agent continuously reconciling the cluster to match. On EKS that is Flux or Argo CD, with Flux available as an EKS add-on. You get drift correction and auditability, since every change is a reviewed commit.

Why interviewers ask this: The trade-off to acknowledge is that emergency manual changes are reverted unless you have a defined break-glass procedure. Presenting reconciliation as purely beneficial, without that caveat, is the weaker answer.

44
Senior level

How would you design a paved path for application teams on AWS?

Answer: Provide a templated repository with a working pipeline, IaC modules for the standard patterns — a Fargate service behind an ALB, a Lambda API, a data pipeline — pre-wired observability, secrets handling and guardrails, plus documentation and an example. Teams start from it rather than assembling from scratch.

Why interviewers ask this: The measure of success is adoption without mandate: if the paved path is genuinely the fastest route, teams choose it. Naming that you would treat it as a product with feedback and versioning is what distinguishes a platform engineer from a template author.

Continue your AWS interview prep

See all 25 AWS topics →

Ready to apply for AWS roles?

Cloud internships and fresher jobs across India — filtered to roles that actually name AWS in the requirements.

AWS Cloud Jobs

Canonical: https://myinternships.in/aws-interview-questions/devops-engineer