AWS DevOps engineer interview questions and how to answer them
AWS DevOps engineer interview questions focus on how code gets from a commit to production on AWS and how it is kept healthy there: pipelines built with CodePipeline, CodeBuild and CodeDeploy or with GitHub Actions, infrastructure written in CloudFormation, CDK or Terraform, safe deployments to EC2, ECS, EKS and Lambda, and operations through CloudWatch, Systems Manager and automated guardrails across many accounts. Expect troubleshooting scenarios as often as definitions. Interviewers want to hear how you limit the damage of a bad change, not only how you ship a good one.
By Evin JohnPublished 10 min read
What an AWS DevOps engineer owns
Where a general DevOps engineer might work on any platform, this job is tied to AWS and its tools. Typical ownership includes the delivery pipelines for several services, the infrastructure code for shared and application stacks, the deployment strategy for each workload, the alarms and dashboards that tell the team something is wrong, and the automation that keeps accounts patched, logged and compliant. In smaller companies the same person also runs cost reviews and on-call rotations; in larger ones a platform team provides templates and the DevOps engineer adapts them for product teams.
Interviewers usually probe depth on one compute model (often ECS or EKS, sometimes Lambda) and breadth on the rest. They also check judgment: when the native AWS developer tools are enough, when GitHub Actions, GitLab or Jenkins fit better, and when Terraform makes more sense than CloudFormation. Postings often mention the AWS Certified DevOps Engineer Professional certification; employers differ in how much it counts next to hands-on experience. Service-level basics such as IAM policy evaluation, VPC design and load balancer types are covered in the AWS interview questions guide.
How the interview loop tends to look
- Recruiter or manager screenWhich AWS services you ran in production, the size of the estate (accounts, services, deploys per day), and your on-call experience.
- Technical deep diveWalk through a pipeline or platform you built: why each stage exists, how secrets reach the build, how rollbacks work and what broke.
- Troubleshooting scenariosA failed stack update, a stuck deployment, an alarm at night. You talk through what you would check, in order.
- Hands-on or design exerciseWrite a pipeline or infrastructure template, fix a broken one, or design delivery for a multi-account setup on a whiteboard.
- Team and incident roundIncidents you led, postmortems, working with developers who want to ship faster, and how you reduce toil.
Pipeline and delivery questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Walk me through a pipeline you own, stage by stage. | Real ownership | Source trigger, build and unit tests, artifact or image with an immutable tag, deploy to a test account, automated checks, approval or automatic promotion, production deploy with alarms watching |
| How does a CodeBuild project get credentials and secrets? | Least privilege | A service role scoped to what the build needs; secrets pulled at run time from Secrets Manager or Parameter Store references in the buildspec, never baked into the image or repository |
| GitHub Actions deploying to AWS: how do you avoid storing access keys? | Modern auth | An IAM OIDC identity provider for GitHub and a role whose trust policy limits which repository and branch or environment may assume it |
| How do you deploy from a tools account into separate dev, staging and production accounts? | Multi-account delivery | A deploy role in each target account trusted by the pipeline role, an artifact bucket and KMS key the targets can read, and production promotion gated by checks |
| What is the difference between an in-place and a blue/green deployment in CodeDeploy for EC2? | Deployment mechanics | In-place updates existing instances behind the load balancer a batch at a time; blue/green builds a replacement fleet and shifts traffic, which costs more but rolls back faster |
| How do you shift traffic gradually to a new Lambda version? | Serverless releases | Publish a version, point an alias at it with weighted routing, often through CodeDeploy or SAM with a canary or linear configuration and alarms that trigger rollback |
| Your pipeline takes forty minutes. How do you make it faster? | Practical optimization | Measure stages first, cache dependencies and Docker layers, run independent tests in parallel, build once and promote the same artifact, and move slow suites to a later stage |
Infrastructure as code: CloudFormation, CDK and Terraform
- What is a change set and when do you insist on one? A preview of what an update will add, modify or replace. Insist on it in production, and read it for replacements of stateful resources such as databases.
- A stack update failed and the rollback also failed. What now? Find the resource that blocked rollback in the stack events, fix the cause (often something changed outside CloudFormation), then continue the rollback, skipping that resource only if you understand the consequence.
- How do you stop a stack update from deleting a production database? DeletionPolicy and UpdateReplacePolicy set to Retain or Snapshot, termination protection, a stack policy that denies replacement, and change set review.
- What is drift, and how do you detect it? Live resources that no longer match the template, usually from console changes. Run drift detection on a schedule, alert on it, and fix the process that allowed the manual change.
- Nested stacks or cross-stack exports? Nested stacks deploy together as one unit; exports share values between independent stacks but block changes to the exported value while it is imported.
- How would you roll out the same baseline to every account in an organization? StackSets with service-managed permissions, targeted at organizational units, so new accounts receive it automatically.
- What does CDK add, and what does it not change? Real programming languages, reusable constructs and sensible defaults; it still synthesizes to CloudFormation, so stack limits, rollback behavior and drift work the same way.
- Terraform or CloudFormation for an AWS-only company? Either can be right. Terraform suits teams that also manage other providers or prefer its plan workflow; CloudFormation needs no separate state backend and gets new services through AWS. State storage, locking and module versioning are the follow-ups for Terraform; see the Terraform guide.
Deploying to EC2, ECS, EKS and Lambda
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How do you roll a new AMI across an Auto Scaling group without downtime? | EC2 fleets | A new launch template version, then an instance refresh with a minimum healthy percentage and health checks, or a blue/green group swap; golden images built by a pipeline such as EC2 Image Builder |
| What do minimum healthy percent and maximum percent control in an ECS rolling update? | ECS deployments | How many tasks may be stopped and how many extra may start during the update; together with the deployment circuit breaker they decide speed and automatic rollback |
| How does a blue/green ECS deployment with CodeDeploy work? | Traffic shifting | A replacement task set behind a second target group, a test listener for checks, then production traffic shifted all at once, in a canary step or linearly, with the old set kept for a wait period |
| How do pods in EKS get AWS permissions? | EKS identity | IAM roles for service accounts or EKS Pod Identity, so each workload gets its own role instead of sharing the node role |
| How do you upgrade an EKS cluster? | Operational care | Read the release notes for removed APIs, upgrade the control plane one minor version at a time, then add-ons and node groups, with workloads using pod disruption budgets |
| How do you give engineers kubectl access to EKS? | Access management | Map IAM roles to Kubernetes permissions through access entries (or the older aws-auth ConfigMap), using roles from single sign-on rather than individual users |
version: 0.0
Resources:
- TargetService:
Type: AWS::ECS::Service
Properties:
TaskDefinition: "<TASK_DEFINITION>"
LoadBalancerInfo:
ContainerName: "web"
ContainerPort: 8080
Hooks:
# A Lambda function that calls the new task set through the test listener
# and reports Succeeded or Failed back to CodeDeploy.
- AfterAllowTestTraffic: "SmokeTestNewTaskSet"If you show something like this, be ready for the follow-ups: what the smoke test checks (a real request through the stack, not only a health endpoint), what happens if it fails (CodeDeploy stops and traffic stays on the old task set), and which CloudWatch alarms are attached to roll back after traffic moves. Newer ECS releases also offer blue/green as a built-in deployment option; say which approach your last team used and why.
Monitoring, operations and incident questions
- What do you alarm on for a web service on AWS? User-facing symptoms first: error rate and latency at the load balancer or API, then saturation such as queue age. Use composite alarms to page on combined conditions and keep cause-level alarms as tickets.
- How do you find which change caused an incident? Compare the timeline with deployments from the pipeline and with CloudTrail events for configuration changes; AWS Config history shows how a resource looked before.
- How do engineers get a shell on instances without SSH keys or bastions? Systems Manager Session Manager with IAM-controlled access and session logging to CloudWatch Logs or S3.
- How do you keep a fleet patched? Systems Manager Patch Manager with patch baselines and maintenance windows, or replace instances from a freshly built image, which many teams prefer for immutability.
- How would you automate a response to a common alarm? An EventBridge rule or alarm action that starts a Systems Manager Automation runbook or a Lambda function, with a human notified and the action logged.
- Where do traces fit in? X-Ray or OpenTelemetry through the AWS distribution to see where time goes across services; logs and metrics alone rarely show a slow downstream call.
- Your CloudWatch bill rose sharply. Where do you look? Log ingestion volume per log group, retention settings that were never set, high-resolution custom metrics and dashboards polling often.
fields @timestamp, status, route
| filter status >= 500
| stats count(*) as errors by bin(5m), route
| sort errors desc
| limit 20Security and governance in the pipeline
- How do you stop a pipeline role from becoming an admin back door? Scope it per target, use permission boundaries for any roles it creates, and protect it with service control policies so it cannot disable logging or leave allowed regions.
- Where do image and dependency scans run, and what blocks a deploy? In the build, with a severity threshold agreed with security and an exception process with expiry dates.
- How do you enforce rules such as encrypted volumes or no public buckets? Preventive controls with service control policies and account-level settings, detective controls with AWS Config rules and automatic remediation where safe.
- What should every new account have on day one? Organization-wide CloudTrail, Config, GuardDuty and Security Hub or equivalent findings aggregation, single sign-on access, budget alerts and a baseline network, usually delivered by Control Tower or StackSets.
Troubleshooting scenarios to practise
- A production deploy step fails with AccessDenied when assuming the target account role, but staging works.
- CodeDeploy reports that instances failed the ValidateService hook, yet the app looks fine in a browser.
- An ECS service keeps starting tasks that stop within a minute; the deployment never finishes.
- Pods in EKS cannot read from S3 after a cluster upgrade.
- A CloudFormation stack is stuck in an in-progress state during a custom resource update.
- Lambda errors rise right after a release, but the alarm did not roll it back.
For each, say the first three things you would check and why. For the assume-role failure: the trust policy in the production account, any condition keys such as an external ID or source account, and service control policies that apply only to production. Interviewers reward a calm order of checks more than a lucky guess.
Fictional example
- At a ticketing company we moved our checkout service to ECS with blue/green deployments through CodeDeploy. One evening a release passed the smoke test and shifted all traffic, and a few minutes later card payments started failing for one payment provider. The smoke test only used the default provider, and the alarm on overall error rate did not fire because most payments still worked. I rolled back by redeploying the previous task definition, which took a few minutes because the old task set had already been terminated. Afterward I changed three things: the smoke test now calls each provider's sandbox, we added a per-provider error alarm wired to automatic rollback, and we kept the old task set for longer after a shift. I also wrote the postmortem without blame, because the gap was in a test I had written.
Behavioral questions
- Tell me about toil you removed and how much time it gave back to the team.
- Describe a time developers bypassed the pipeline. What did you change so they would not need to?
- Tell me about an incident you led from page to postmortem.
- How do you say no to a request that would weaken a guardrail?
The behavioral interview guide covers story structure. If your loop includes an architecture conversation, the AWS solutions architect guide shows the design side, and teams running both clouds will find the operations equivalents in the Azure cloud engineer guide.
Two weeks of preparation
- Days 1 to 3: build a small pipeline in a personal account: a container image, a deploy to ECS or Lambda, and an alarm that triggers rollback. Delete it afterward.
- Days 4 and 5: write the same infrastructure in CloudFormation or CDK and break it on purpose: a failed update, a retained resource, a drift.
- Days 6 and 7: draw a multi-account delivery setup from memory: tools account, roles, artifact bucket, KMS key, promotion gates.
- Days 8 to 10: practise the troubleshooting scenarios above aloud, three checks each.
- Days 11 and 12: prepare two incident stories and one automation story with before-and-after effort.
- Days 13 and 14: reread the posting, list the services it names, and fill the gaps you can explain only vaguely.
Troubleshooting rounds reward a tidy order of checks, and it is hard to judge your own order without hearing it back. Natively, an AI interview assistant for Mac and Windows, transcribes a mock session on your computer so you can see whether you jumped to a fix before checking the trust policy or the stack events. In practice it can read an error message or a template from a screenshot and suggest what to look at next, and with Pro or the free trial it can use your résumé and the job description to keep suggestions on the services the posting lists. Transcripts and notes stay in your history to review before the next round.
Questions people ask
What questions are asked in an AWS DevOps engineer interview?
Expect a walkthrough of a pipeline you own, questions on CloudFormation or CDK change sets, rollbacks and drift, deployment strategies for EC2, ECS, EKS and Lambda, CloudWatch alarms and Systems Manager, and troubleshooting scenarios such as a failed cross-account deploy.
How is an AWS DevOps interview different from a general DevOps interview?
General DevOps loops spend more time on Linux, networking and tool-neutral CI/CD. AWS-focused loops go deeper on AWS delivery tools, IAM roles for pipelines, multi-account setups and AWS-specific deployment and monitoring services.
Do I need the AWS DevOps Engineer Professional certification?
Postings often mention it, but employers weigh it differently. A pipeline you built and can explain in detail, including how it rolls back, usually carries more weight in the interview itself.
How do I answer AWS troubleshooting questions in an interview?
Name the first three things you would check in order and why, such as stack events, the role's trust policy and service control policies, then say what each result would tell you. A calm order of checks matters more than the final answer.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
