AWS interview questions for DevOps and cloud engineers
By the DevOpsAnywhere team · Published December 2, 2026
AWS in remote DevOps listings
AWS is the cloud remote DevOps roles name most. On 2 December 2026, 157 of the 539 roles on DevOpsAnywhere named it. Most of those also named Terraform (103) or Kubernetes (92), and 67 named Azure as well, so many teams run more than one cloud. Of the 150 AWS roles with a full description, 53 mention cost, 32 IAM, 29 EKS, 23 certifications and 18 Lambda or serverless. The AWS DevOps salary page shows a median of $185,000 a year across 52 roles that stated a salary.
Interviews tend to skip the service catalogue and ask how you would design, secure and run something on AWS. Certifications help you get to the interview, but scenario answers decide it.
IAM
"Explain how IAM decides whether a request is allowed."
By default, everything is denied. An explicit Allow in an applicable policy permits the action, unless an explicit Deny anywhere overrides it. Several layers can apply at once: identity policies, resource policies (such as S3 bucket policies), permission boundaries, session policies and the organisation's service control policies (SCPs). A request must pass all the layers that apply. An explicit deny always wins.
"Roles or users with access keys?"
Roles, almost always. Applications on EC2, ECS, EKS or Lambda get temporary credentials from their role. CI systems use OIDC federation to assume a role (GitHub Actions, GitLab and others support it), so no long-lived keys sit in pipeline settings. People sign in through IAM Identity Center with SSO. Long-lived access keys are the most common cause of AWS breaches, so a strong answer says how you would find and remove them.
"How do you apply least privilege in practice?"
Start from specific actions and resources rather than wildcards, use IAM Access Analyzer to generate policies from actual usage and to find resources shared outside the account, and review permissions regularly. Use conditions (source VPC, tags, MFA) to narrow further.
Networking
"Design a VPC for a typical web application."
A VPC across at least two Availability Zones, with public subnets for load balancers and NAT gateways, private subnets for application servers or containers, and isolated subnets for databases. Security groups allow only the traffic each tier needs (load balancer to app on the app port, app to database on the database port). Add VPC endpoints for S3, ECR and other AWS services, so traffic stays private and NAT costs fall.
"Security groups versus network ACLs?"
Security groups apply to network interfaces, are stateful (return traffic is allowed automatically) and only have allow rules. NACLs apply to subnets, are stateless and have numbered allow and deny rules. Most designs rely on security groups and leave NACLs mostly open, using them for broad blocks.
"How do you connect many VPCs and accounts?"
Transit Gateway as a hub, instead of a mesh of VPC peering connections, which doesn't scale and isn't transitive. PrivateLink to expose a single service without joining networks. Site-to-Site VPN or Direct Connect to reach on-premises networks.
Availability and resilience
"How would you make this application highly available?"
Spread across several Availability Zones: an Auto Scaling group or ECS or EKS service in every zone behind an Application Load Balancer, RDS Multi-AZ (or Aurora with replicas), and stateless app servers with sessions in a shared store. Then the follow-up: the difference between high availability (survive a zone failure, automatic) and disaster recovery (survive a region failure, with a recovery time and data loss objective, and a tested plan).
"What DR strategies exist, and how do you choose?"
From cheapest to fastest: backup and restore, pilot light, warm standby, and active-active across regions. Choose by the business's recovery time objective (RTO) and recovery point objective (RPO), and test it, because an untested recovery plan usually fails.
Containers and compute
"ECS or EKS?"
ECS is simpler and AWS-native: fewer moving parts, and a good fit when a team just needs to run containers. EKS gives you Kubernetes and its ecosystem (Helm, operators, GitOps, portability), at the cost of running more yourself: add-ons, upgrades and node groups. Fargate removes node management for both, at a higher price per unit of compute and with some limits. The Kubernetes interview questions cover the EKS side in depth.
"When would you use Lambda?"
Event-driven and spiky work: reacting to S3 uploads or queue messages, scheduled jobs, light APIs. Know the limits: 15-minute maximum runtime, cold starts, and cost that rises above containers at steady high volume.
Cost
Cost came up in more than a third of the AWS descriptions, so prepare a real answer.
"Our AWS bill doubled. How do you find out why and reduce it?"
- Find where it goes: Cost Explorer by service, account and tag, then the Cost and Usage Report for detail. Untagged resources are a problem to fix in itself.
- Common causes: NAT gateway data transfer, oversized or idle instances, unattached EBS volumes and old snapshots, logs retained forever, data transfer between zones or regions.
- Quick wins: rightsizing (Compute Optimizer), Graviton instances, gp3 instead of gp2 volumes, S3 lifecycle rules, shutting down non-production at night.
- Commitments for steady load: Savings Plans or Reserved Instances. Spot instances for fault-tolerant work.
- Prevent the next one: budgets and anomaly alerts per team, and cost visible to the teams who spend it.
Accounts and governance
"How would you organise AWS accounts for a growing company?"
AWS Organizations with separate accounts per environment and often per team or workload, set up through Control Tower or an equivalent landing zone. Centralised logging (CloudTrail to a locked-down log account), security tooling in a dedicated account (GuardDuty, Security Hub), SCPs as guardrails (for example, deny leaving the organisation or disabling CloudTrail), and SSO for access. Accounts are the strongest isolation boundary AWS offers.
Scenarios to prepare
- "Instances in a private subnet can't reach the internet." Check the route table (does it point to a NAT gateway?), the NAT gateway's own subnet route to an internet gateway, security groups and NACLs.
- "An S3 bucket was made public by mistake." Block Public Access at the account level, find who changed it in CloudTrail, check access logs for what was read, and add a guardrail so it can't happen again.
- "A deployment caused errors for half the users." Roll back first, then investigate. Talk about how deployments could limit the blast radius next time (blue/green, canary releases with CodeDeploy or a load balancer's weighted target groups).
The guide to AWS, Azure and GCP for DevOps jobs compares the clouds, and the cloud engineer roles guide covers the jobs themselves.
The open roles below name AWS.