AWS EC2, VPC, Volumes &SG Scenario-Based Interview Q&A
AWS EC2, VPC, Volumes & Security Groups Scenario-Based Interview Q&A
BASIC LEVEL (1–7)
1) An EC2 instance is unreachable after launch. How do you troubleshoot?
2) You need to launch a web server accessible from the internet. What components do you configure?
3) Your EC2 disk is full. What do you do without data loss?
4) What happens if an EC2 instance stops? Does data remain?
5) How do you restrict SSH access to EC2?
6) Difference between Security Group and NACL in real use?
7) How do you assign a fixed public IP to an EC2?
INTERMEDIATE LEVEL (8–14)
8) Your private EC2 instances need internet access for updates but must not be publicly accessible. How do you design this?
9) You need high availability for EC2 application. What setup do you use?
10) One EC2 instance must access another on port 3306 securely. How do you configure SG?
11) Your instance suddenly lost connectivity after modifying route table. What could be wrong?
12) You need encrypted storage for EC2. How do you implement?
13) How do you migrate an EC2 instance to another AZ?
14) You must allow only HTTPS traffic to EC2. What steps?
ADVANCED LEVEL (15–20)
15) Production EC2 CPU suddenly spikes to 100%. How do you handle?
16) How do you provide EC2 access to S3 without storing keys?
17) How do you implement a Bastion Host setup?
18) Your EC2 instances need to communicate across VPCs. How do you enable?
19) How do you perform zero-downtime deployment on EC2?
20) How do you secure EC2 metadata service against SSRF attacks?
Last updated
