Cloud Engineer interview question · Most asked
Design a highly available web application on AWS that survives the loss of an availability zone.
Design Asked in Cloud Engineer · DevOps Engineer interviews
Summary
Spread every tier across at least two (preferably three) availability zones: an Application Load Balancer across public subnets, application instances or containers in an Auto Scaling group or ECS/EKS service across private subnets, a Multi-AZ database (RDS Multi-AZ or Aurora), shared state in managed services (ElastiCache Multi-AZ, S3), and one NAT gateway per AZ. Health checks and autoscaling replace failed capacity automatically.
Longer Answer
- Capacity: size so the remaining AZs can carry full load (N+1), or scale quickly with warm pools.
- Stateless app tier: sessions in Redis or tokens, files in S3.
- Database: synchronous standby in another AZ; the application reconnects after failover (DNS-based, retry logic).
- Dependencies: avoid single-AZ resources hidden in the design (one NAT gateway, a self-managed cache node).
- Edge: CloudFront and Route 53 health checks; multi-region only if the RTO/RPO requires it.
- Test it: AWS Fault Injection Service or game days that take an AZ away.
Key Points
- Every tier in two or three AZs.
- N+1 capacity.
- Multi-AZ data stores.
- No hidden single-AZ dependencies.
- Test with fault injection.
Explanation
What interviewers look for
Spotting hidden single points of failure and testing the design.
More Cloud Engineer questions
- How do you keep object storage buckets from being exposed publicly?
- How do you approach cloud cost optimisation?
- An application on AWS suddenly gets AccessDenied when reading from S3. How do you troubleshoot it?
- What are regions and availability zones, and how do you use them for resilience?
- What do Multi-AZ deployments and read replicas give you for managed databases?
- How is an AWS IAM request evaluated when several policies apply?
- How do you eliminate long-lived credentials in a cloud environment?
- Explain RTO and RPO and the four disaster recovery strategies.