Security Groups
A security group is a virtual firewall that controls the traffic for one or more Amazon EC2 instances. You can create security groups based on your requirements and then assign them to your instances, allowing or denying traffic based on rules. Rules can be configured for both inbound and outbound …
AWS Certified Solutions Architect - Security Groups Example Questions
Test your knowledge of Security Groups
Question 1
An Amazon EC2 instance must send email via Amazon SES using the SMTP interface (not the SES API). The instance does not need to accept any inbound email connections. How should its security group be configured to allow this traffic?
Question 2
You manage an Auto Scaling group that launches Amazon Linux 2 instances in a private subnet. The VPC has a NAT gateway in a public subnet and an Internet Gateway. At boot, the instances must install the latest security updates using yum/dnf. The security group attached to the instances is configured for least privilege (no default allow-all egress). Which outbound security group rules must be configured to enable the instances to successfully obtain updates while minimizing exposure?
Question 3
An Amazon RDS instance runs in a private subnet and must be reachable only from the company’s on‑premises network over a site‑to‑site VPN. To protect the database from unauthorized access, which security group rule on the RDS instance should be configured?