What is the primary role of the EC2 Instance Profile?
A container that passes the IAM Role to the EC2 instance, allowing applications running on the instance to assume the role and access AWS services.
What is AWS Systems Manager (SSM) Session Manager used for?
It provides secure, auditable access to EC2 instances without needing SSH keys or opening inbound ports (like port 22) on the Security Group.
How do you securely provide application secrets (e.g., database password) to an EC2 instance at runtime?
Use AWS Secrets Manager or SSM Parameter Store (SecureString). The EC2 instance’s IAM Role must be granted permission to retrieve and decrypt the secret.
What is the primary function of AWS Instance Connect?
It provides a simple, browser-based way to connect to EC2 instances using temporary SSH keys that are automatically pushed to the instance metadata, eliminating the need to manage long-term SSH keys.
What are the three core components of an EC2 Auto Scaling Group (ASG)?
What is the difference between a Target Tracking Scaling Policy and a Step Scaling Policy?
How does an Application Load Balancer (ALB) direct traffic to different target groups based on the request?
Using Listener Rules that can evaluate the request path, host header, or query strings.
What is the main benefit of using a Network Load Balancer (NLB) over an ALB?
NLB handles extremely high traffic and provides ultra-low latency (Layer 4 only), whereas ALB is better for flexible, feature-rich routing (Layer 7).
What happens if an instance in an Auto Scaling Group is marked as unhealthy by a Load Balancer?
The Load Balancer informs the Auto Scaling Group, and the ASG will terminate the unhealthy instance and launch a new replacement instance.