AWS Engineer Interview Questions: Networking and Ops (2027)
52 AWS cloud engineer interview questions on VPC networking, EC2, EBS, S3, RDS, backups, monitoring and cost, with direct answers and scenarios.
AWS cloud engineer interviews focus on infrastructure you build and run: VPC subnets and routing, security groups, EC2 and EBS, S3, RDS and Aurora, backups, monitoring and cost control. Interviewers want to hear how you would design, troubleshoot and pay for that infrastructure. This page has 52 numbered questions with direct answers, grouped by experience level, plus six operations scenarios.
Use it alongside our 90+ AWS DevOps interview questions (pipelines and release automation) and the EC2, S3, IAM and Lambda question page. For architect-level design questions, see advanced AWS interview questions.
Key takeaways
- The cloud engineer role is tested on networking first: CIDR planning, public and private subnets, NAT, endpoints and load balancers.
- Know storage choices well: EBS types, instance store, EFS, S3 classes and lifecycle rules. S3 is strongly consistent since December 2020.
- Databases come up as RDS Multi-AZ versus read replicas, Aurora storage and when DynamoDB fits.
- Operations questions cover Session Manager instead of SSH, IMDSv2, patching, AWS Backup and CloudWatch agent metrics.
- Senior candidates must explain cost drivers such as NAT data processing, cross-AZ traffic and public IPv4 charges.
- Scenario answers should go layer by layer: route, security group, NACL, OS, application.
How this page differs from other AWS question sets
| Page | Focus |
|---|---|
| This page | Cloud engineer: network, compute, storage, databases, operations |
| AWS DevOps questions | CI/CD, IaC, containers, release automation |
| Scenario-based AWS questions | Incident stories across services |
| Advanced AWS questions | Multi-account and multi-Region architecture |
Freshers: cloud infrastructure basics (questions 1 to 18)
1. What does an AWS cloud engineer do day to day?
An AWS cloud engineer builds and runs the infrastructure that applications sit on: VPC networks, compute, storage, databases, access control, backups, monitoring and cost. A DevOps engineer focuses more on pipelines and release automation; the roles overlap, and many job ads mix both.
2. What are Regions, Availability Zones and edge locations?
A Region is a separate geographic area such as ap-south-1 (Mumbai). Each Region has multiple Availability Zones, which are one or more data centres with independent power and networking. Edge locations serve CloudFront and Route 53 close to users. See our explainer on Regions, AZs and edge locations.
3. What is the shared responsibility model?
AWS secures the cloud itself: facilities, hardware, the virtualisation layer and managed service internals. You secure what you put in it: IAM, data, encryption choices, OS patching on EC2, security groups and application code. The split moves toward AWS as you use more managed services.
4. What is a VPC?
A logically isolated virtual network in a Region. You choose an IPv4 CIDR block between /16 and /28, create subnets in each AZ, and control traffic with route tables, gateways, security groups and network ACLs.
5. What makes a subnet public or private?
A public subnet has a route table entry sending 0.0.0.0/0 to an internet gateway. A private subnet does not; its instances reach the internet, if at all, through a NAT gateway. The subnet itself has no public or private flag.
6. How many IP addresses does AWS reserve in each subnet?
Five: the network address, the VPC router (base plus one), the DNS server (base plus two), one reserved for future use (base plus three) and the last address. A /24 subnet therefore gives 251 usable addresses.
7. What is the difference between a security group and a network ACL?
| Security group | Network ACL | |
|---|---|---|
| Applies to | Network interfaces (instances) | Subnets |
| State | Stateful: return traffic is allowed | Stateless: return traffic needs its own rule |
| Rules | Allow only | Allow and deny, evaluated by rule number |
Most protection is done with security groups; NACLs are a coarse extra layer. More in our post on NACLs and security groups.
8. What is an EC2 instance type?
A combination of CPU, memory, storage and network capacity, named by family, generation and size, such as m7g.large. Families are tuned for general purpose (M, T), compute (C), memory (R, X) and storage or accelerated workloads. The g suffix means AWS Graviton (Arm) processors.
9. What is an AMI?
An Amazon Machine Image is the template for an instance's root volume: OS, configuration and installed software, plus block device mappings. AMIs are regional; copy them to use in another Region.
10. What is the difference between EBS and instance store?
EBS volumes are network-attached and persist independently of the instance; you can snapshot them to S3. Instance store is physically attached disk that loses its data when the instance stops, terminates or the host fails. Use instance store only for caches and scratch data.
11. What EBS volume types should you know?
gp3 (general purpose SSD, baseline 3,000 IOPS and 125 MiB/s, adjustable separately from size), io2 Block Express (provisioned IOPS for databases), st1 (throughput HDD) and sc1 (cold HDD). gp3 is the usual default for new volumes.
12. What are S3 storage classes?
S3 Standard, Intelligent-Tiering, Standard-IA, One Zone-IA, Glacier Instant Retrieval, Glacier Flexible Retrieval and Glacier Deep Archive, plus S3 Express One Zone for low-latency access in a single AZ. Classes trade storage price against retrieval cost, latency and resilience.
13. Is S3 strongly consistent?
Yes. Since December 2020 S3 gives strong read-after-write consistency for PUT and DELETE of objects in all Regions, at no extra cost. Older answers that mention eventual consistency for overwrites are out of date.
14. What is EFS and when would you use it instead of EBS?
Amazon EFS is a managed NFS file system that many instances, containers and Lambda functions can mount at once, across AZs. EBS volumes attach to one instance at a time (Multi-Attach is limited to io1 and io2 in one AZ). Choose EFS for shared files, EBS for a single server's disk.
15. What is an Elastic IP?
A static public IPv4 address you allocate to your account and associate with an instance or network interface. AWS charges for all public IPv4 addresses, including Elastic IPs, since February 2024, so release ones you do not use.
16. How do you connect to a private EC2 instance without opening port 22?
Use AWS Systems Manager Session Manager. The SSM Agent on the instance makes an outbound connection, access is controlled with IAM and sessions can be logged to CloudWatch Logs or S3. No bastion host or inbound SSH rule is needed.
17. What is CloudWatch and what does it not collect by default?
CloudWatch stores metrics, logs and alarms. EC2 sends hypervisor-level metrics such as CPU, network and disk operations by default, but not memory or disk space usage inside the OS. Install the CloudWatch agent to collect those.
18. What is Auto Scaling for EC2?
An Auto Scaling group keeps a desired number of instances from a launch template, replaces unhealthy ones and changes capacity with target tracking, step or scheduled policies.
2 to 5 years: networking, storage and databases (questions 19 to 36)
19. Why deploy one NAT gateway per Availability Zone?
A NAT gateway lives in one AZ. If every private subnet routes through a single NAT gateway and that AZ fails, all private subnets lose outbound internet. One per AZ with matching route tables removes the dependency and avoids cross-AZ data charges.
20. What are VPC endpoints and which types exist?
They let resources in a VPC reach AWS services without the internet or NAT. Gateway endpoints exist for S3 and DynamoDB and are added as route table entries at no hourly charge. Interface endpoints (AWS PrivateLink) create ENIs in your subnets for most other services and are billed per hour and per GB.
21. When do you use VPC peering versus Transit Gateway?
Peering is a one-to-one, non-transitive link, simple for a few VPCs. Transit Gateway is a regional hub that connects many VPCs and on-premises networks with central route tables. Past a handful of VPCs, the full mesh of peering connections becomes hard to manage.
22. How do you connect an on-premises network to AWS?
Site-to-Site VPN over the internet (two IPsec tunnels per connection, quick to set up) or AWS Direct Connect (a private dedicated link with steadier latency). Many companies use Direct Connect with a VPN as backup.
23. Compare ALB, NLB and Gateway Load Balancer.
| Load balancer | Layer | Typical use |
|---|---|---|
| Application Load Balancer | 7 (HTTP/HTTPS, gRPC) | Path and host routing, web apps, containers |
| Network Load Balancer | 4 (TCP, UDP, TLS) | Very high throughput, static IPs per AZ, non-HTTP protocols |
| Gateway Load Balancer | 3 (GENEVE) | Inserting third-party firewalls and inspection appliances |
24. What Route 53 routing policies exist?
Simple, weighted, latency-based, failover, geolocation, geoproximity, multivalue answer and IP-based routing. Health checks can attach to records so failover and multivalue answers skip unhealthy endpoints.
25. What do VPC Flow Logs record?
Metadata about IP traffic on network interfaces: source and destination addresses and ports, protocol, bytes, packets and whether the traffic was accepted or rejected. They do not capture packet contents. Send them to CloudWatch Logs, S3 or Firehose and query them when debugging blocked connections.
26. How do you troubleshoot an instance that cannot reach the internet?
Check in order: the subnet route table (route to IGW or NAT), security group outbound rules, network ACL rules in both directions including ephemeral ports, a public IP if it is in a public subnet, and DNS settings in the VPC. Reachability Analyzer can test the path for you.
27. What is the difference between RDS Multi-AZ and read replicas?
Multi-AZ keeps a synchronous standby in another AZ for automatic failover; in the classic setup the standby does not serve reads. Read replicas use asynchronous replication and serve read traffic, and can be promoted manually. Multi-AZ DB clusters (for MySQL and PostgreSQL) add two readable standbys.
28. How is Aurora storage different from standard RDS?
Aurora uses a cluster volume that keeps six copies of data across three AZs and grows automatically. Replicas share that storage, so replica lag is usually low and failover is fast. Standard RDS stores data on EBS volumes attached to each instance.
29. When would you choose DynamoDB over RDS?
For key-value or document access patterns with predictable queries, very high request rates and no need for joins. DynamoDB is serverless with on-demand or provisioned capacity. If the data is relational and queries are ad hoc, RDS or Aurora fits better.
30. How do you back up EC2, EBS, RDS and EFS consistently?
Use AWS Backup with backup plans and tag-based selection, a vault per environment, and cross-Region or cross-account copies for disaster recovery. Vault Lock adds write-once protection against deletion. Test restores regularly; a backup you have never restored is a guess.
31. What are S3 lifecycle rules used for?
Moving objects to cheaper storage classes after a set age, expiring old objects or noncurrent versions, and cleaning up incomplete multipart uploads. They are the main lever for S3 storage cost.
32. How do you protect S3 data from accidental deletion?
Enable versioning, add lifecycle rules for noncurrent versions, use S3 Object Lock where retention is required, block public access, and restrict s3:DeleteObject in IAM and bucket policies. Replication to another account adds a copy outside the blast radius.
33. What is IMDSv2 and why enforce it?
The Instance Metadata Service version 2 requires a session token obtained with a PUT request before reading metadata. That blocks many server-side request forgery attacks that tried to read instance role credentials through IMDSv1. Set HttpTokens=required in launch templates.
34. How do EC2 instance roles work?
An instance profile attaches an IAM role to the instance. Applications get temporary credentials from the metadata service, and the SDKs rotate them automatically. This removes access keys from servers.
35. What are the EC2 purchase options?
On-Demand, Savings Plans (commitment to a dollar amount per hour for one or three years), Reserved Instances, Spot Instances (spare capacity at a discount, with a two-minute interruption notice) and Dedicated Hosts. Mix them: Savings Plans for the steady baseline, Spot for interruptible work.
36. How do you patch a fleet of EC2 instances?
Systems Manager Patch Manager with patch baselines and maintenance windows, or rebuild golden AMIs with EC2 Image Builder and roll them out through Auto Scaling instance refresh. Immutable rebuilds avoid drift between servers.
Senior: operations, cost and governance (questions 37 to 46)
37. How would you lay out VPC CIDR ranges for a growing company?
Plan non-overlapping ranges for every account, Region and on-premises site from the start, use Amazon VPC IP Address Manager (IPAM) to allocate them, and leave room for growth. Overlapping CIDRs block peering and Transit Gateway routing later and are painful to fix.
38. How do you find what is driving an AWS bill?
Turn on cost allocation tags, use Cost Explorer grouped by service, account and tag, and the Cost and Usage Report for detail. Common surprises are NAT gateway data processing, cross-AZ traffic, idle load balancers, unattached EBS volumes, old snapshots and public IPv4 charges.
39. How do you reduce data transfer cost?
Keep chatty services in the same AZ where resilience allows, use gateway endpoints for S3 and DynamoDB instead of NAT, put CloudFront in front of public content, and compress responses. Inspect Flow Logs to find the largest talkers.
40. What would you monitor for a three-tier web app on AWS?
Load balancer request count, latency and 5xx errors; Auto Scaling group capacity and instance health; database CPU, connections, free storage and replica lag; and application logs and traces. Alarm on symptoms users feel, such as error rate and latency, more than on raw CPU.
41. How do you enforce tagging and baseline settings across accounts?
Tag policies and service control policies in AWS Organizations, AWS Config rules with conformance packs to detect drift, and infrastructure as code so resources are created with the right tags in the first place.
42. How do you rotate database credentials?
Store them in AWS Secrets Manager with rotation enabled; RDS can also manage the master user password in Secrets Manager. Applications fetch the secret at runtime rather than from configuration files.
43. How do you plan capacity for a known traffic peak, such as a sale?
Load test ahead of time, pre-warm with scheduled scaling, raise service quotas in advance, check database connection limits and caches, and agree a rollback plan. Ask AWS Support about expected large spikes when they are far above normal.
44. How do you run infrastructure changes safely?
Define everything in Terraform or CloudFormation, review plans or change sets in pull requests, apply through a pipeline with limited permissions, and keep separate state per environment. Pair this with the release topics in our AWS DevOps interview questions.
45. What does a good runbook for an AWS service contain?
Purpose and owners, architecture diagram, dashboards and alarms, common failure modes with checks and fixes, how to scale, how to restore from backup, and escalation contacts. Keep it next to the code and update it after every incident.
46. What is AWS Trusted Advisor used for?
It checks your accounts against best practices for cost, performance, security, fault tolerance, service limits and operational excellence. The full set of checks requires Business Support or higher; everyone gets a core set.
Scenario questions (questions 47 to 52)
47. A web server in a public subnet is not reachable on port 443. Walk through it.
Confirm it has a public IP or Elastic IP, the route table sends 0.0.0.0/0 to the IGW, the security group allows inbound 443 from the right source, the NACL allows inbound 443 and outbound ephemeral ports, and the web server is listening. Use Reachability Analyzer or Flow Logs to see where traffic is rejected.
48. The NAT gateway bill doubled this month. How do you investigate?
Look at NAT gateway BytesOutToDestination metrics and Flow Logs to find the sources and destinations. Traffic to S3 or DynamoDB should move to gateway endpoints; container image pulls can use ECR interface endpoints; a misbehaving job may be downloading the same data repeatedly.
49. An RDS instance is running out of storage at night. What do you do?
Enable storage autoscaling with a maximum, find what grows (logs, temporary tables, binary logs retained too long), set alarms on FreeStorageSpace, and fix the root cause in the application or retention settings.
50. Spot instances in a batch fleet keep getting interrupted. How do you make the job reliable?
Use several instance types and AZs with a capacity-optimized allocation strategy, checkpoint work so a restart continues where it stopped, and handle the two-minute interruption notice through EventBridge or the metadata endpoint.
51. An application's latency rose after moving the database to another AZ. Why?
Every query now crosses AZs, which adds round-trip time and data transfer cost. Chatty applications with many small queries suffer most. Keep the primary database in the same AZ as most app servers, batch queries, and add caching.
52. Someone made an S3 bucket public by mistake. What do you do now and later?
Re-enable Block Public Access at the bucket and account level, check CloudTrail and S3 server access logs for what was read, rotate any exposed secrets and notify according to policy. Later, enforce account-level Block Public Access through an SCP and an AWS Config rule. Scenario practice continues in scenario-based AWS questions.
How to prepare
Build a two-AZ VPC by hand once, then rebuild it in Terraform: public and private subnets, a NAT gateway per AZ, an S3 gateway endpoint, an ALB, an Auto Scaling group and an RDS Multi-AZ database. Break it on purpose and fix it using Flow Logs. Background reading on our blog: what a VPC is and public and private subnet design. The AWS Solutions Architect Associate training covers these services in our Kharadi, Pune classroom and live online.
Frequently asked questions
How many questions does this page cover?
52 numbered questions: 18 for freshers, 18 for 2 to 5 years, 10 for senior engineers and 6 scenarios.
What is the difference between an AWS engineer and an AWS DevOps engineer interview?
Cloud engineer rounds stress networking, storage, databases and operations. DevOps rounds stress CI/CD, infrastructure as code and release automation, though most interviews include some of both.
Which AWS certification matches this role?
AWS Certified Solutions Architect Associate covers most of these topics. Check exam details on the AWS Certification site.
Is S3 eventually consistent?
No. S3 has offered strong read-after-write consistency for all object operations since December 2020.
Why do interviewers ask about NAT gateways so often?
They test both availability (one per AZ) and cost awareness (per-GB data processing charges), two things a cloud engineer is accountable for.
Do I need to know Terraform for an AWS engineer role?
Most job ads expect infrastructure as code with Terraform or CloudFormation. Interviewers often ask you to describe a VPC you built that way.
How should I answer troubleshooting questions?
Work through layers in order: routing, security groups, network ACLs, the operating system and then the application, naming the tool you would use at each step.
Official references
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0