Question-1 : How would you set up a highly available web application in AWS using EC2, ELB, and Auto Scaling?
A high-level overview of the steps to set up a highly available web application in AWS using EC2, ELB, and Auto Scaling:
· Launch multiple EC2 instances in multiple Availability Zones (AZs) to provide high availability.
· Create an Elastic Load Balancer (ELB) to distribute incoming traffic evenly across all EC2 instances in different AZs.
· Set up Auto Scaling for the EC2 instances to automatically add or remove instances based on demand and maintain the desired number of instances.
· Use Amazon RDS or Amazon DynamoDB for database services to ensure that the database layer is highly available and scalable.
· Store your application data in Amazon S3 or use Amazon EBS volumes with multiple AZs to ensure data durability.
· Set up Amazon Route 53 for routing traffic to the ELB.
· Use Amazon CloudWatch to monitor the performance of the EC2 instances, ELB, and the overall system, and set up alarms to automatically trigger scaling events based on specified thresholds.