Bird
0
0

You created a security group allowing inbound TCP on port 3306 but forgot to add outbound rules. Why can your database client still connect to the database instance?

medium📝 Debug Q6 of 15
AWS - Security Groups and Network ACLs
You created a security group allowing inbound TCP on port 3306 but forgot to add outbound rules. Why can your database client still connect to the database instance?
ABecause security groups are stateful and allow return traffic automatically
BBecause outbound rules default to allow all traffic
CBecause the client uses UDP, not TCP
DBecause the instance has a public IP
Step-by-Step Solution
Solution:
  1. Step 1: Recall stateful nature of security groups

    Inbound allowed means return outbound traffic is automatically allowed.
  2. Step 2: Understand default outbound rules

    Even if outbound rules are missing, stateful behavior allows return traffic.
  3. Final Answer:

    Security groups are stateful and allow return traffic automatically -> Option A
  4. Quick Check:

    Stateful = return traffic auto-allowed [OK]
Quick Trick: Stateful means no outbound rule needed for return traffic [OK]
Common Mistakes:
MISTAKES
  • Assuming outbound rules default to allow all
  • Confusing TCP and UDP protocols
  • Thinking public IP affects security group behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes