☁️ AWS for Backend Engineers — interview questions
12 questions. Filter by what the role asks for; open one for the six layers of the answer. The course is where the answers come from.
12 of 12
01A Spring Boot service that worked yesterday now fails every upload with `AccessDenied` on `s3:PutObject` for `arn:aws:s3:::orders-uploads/invoices/2026/09/30/...`. Nobody admits to changing a policy. What are the only possible causes, and what is the first command you run?IAMeasy0-2y02A new ECS service cannot reach its RDS PostgreSQL database: the Hikari pool logs `connect timed out` after several seconds. A colleague says 'the database must be down'. What does a timeout tell you that a 'connection refused' would not, and how should the security groups be written?Networkingeasy0-2y03An EC2 instance type comes with a fast local NVMe disk. A teammate proposes putting a self-managed PostgreSQL data directory on it 'for speed', and after a planned stop/start of the instance for a resize, a Redis cache on the same kind of disk comes back empty. Explain what happened, and which workload belongs on which kind of storage.Compute and storageeasy0-2y04A service on ECS reads an access key and secret from `application.properties` (injected from a CI variable) to talk to S3 and Secrets Manager. You are asked to 'harden' it. What should replace the key, how does the SDK find credentials with no configuration, and what does the policy on the new identity look like?IAMmedium3-5y05Users upload invoices of up to 200 MB. The current endpoint accepts a multipart body in a Spring controller and streams it to S3 with the SDK; under load the service's heap and threads are exhausted. How would you redesign the upload, what does the service still own, and what does 'S3 is not a filesystem' mean for the rest of the design?Compute and storagemedium3-5y06An ECS service behind an ALB has its target group health check pointed at `/actuator/health`, which includes the database. During a 10-minute RDS incident the dashboard shows 0 healthy targets, yet some requests still reach the tasks, and ECS keeps replacing tasks that never finish starting. Explain the health check's semantics on an ALB, the fail-open behaviour, and what you would change.Load balancingmedium3-5y07Two failures in one week. (1) A service's role allows `s3:GetObject` on `arn:aws:s3:::reports/*`, nothing on the role denies anything, yet a batch job using a library that defaulted to plain HTTP gets `AccessDenied`. (2) An analytics account's role is given a bucket policy statement allowing it to read the same bucket, and it is still denied. Walk the evaluation for each.IAMhard5-8y08A security review adds a custom network ACL to the private subnets hosting a service: inbound allows 8080 from the load balancer subnets, outbound allows 5432 to the database subnets, everything else denied. The security groups did not change. Now every database query times out. Explain precisely why, and what the correct ACL looks like.Networkinghard5-8y09Your team runs RDS PostgreSQL Multi-AZ and treats it as 'automatic HA, nothing for the application to do'. During a failover drill, one service recovers in about a minute while another keeps failing queries for much longer, until its tasks are restarted. Explain what Multi-AZ replication and failover actually are, why the two services behaved differently, and what the application must configure.Databaseshard5-8y10You inherit an alarm set for a Spring Boot service behind an ALB and RDS: `TargetResponseTime` Average above 1 s, `HTTPCode_Target_5XX_Count` above 10, CPU above 80%. It pages at night for single errors, missed a 20-minute outage in which the tasks crashed and traffic stopped, and never caught a slow p99. As the owner of on-call quality, redesign it and explain the CloudWatch mechanics each change depends on.Observabilitysenior8+y11Three requirements land at once for a public API that sits behind an ALB: a partner bank must allow-list a fixed set of IP addresses for your endpoint, the service's per-client rate limiter keys on the connecting IP and is currently limiting 'everyone at once', and a new gRPC API needs to be exposed. Explain the architectural difference between an ALB and an NLB that decides each requirement, and what you would build.Load balancingsenior8+y12A team of four runs five Spring Boot services on EKS, which they adopted 'because everyone uses Kubernetes'. The AWS bill doubled in six months; the largest surprise lines are NAT gateway data processing, cross-AZ data transfer, CloudWatch Logs and a long tail of EBS volumes and snapshots. Leadership asks you whether to move platforms and how to control the bill. What do you recommend, and why?Architecture and costsenior8+y