Bird
0
0

You created a security group rule to allow inbound SSH (port 22) from your office IP, but you still cannot connect. What is the most likely mistake?

medium📝 Debug Q14 of 15
AWS - Security Groups and Network ACLs
You created a security group rule to allow inbound SSH (port 22) from your office IP, but you still cannot connect. What is the most likely mistake?
AThe rule allows outbound traffic instead of inbound
BThe office IP is not in the allowed CIDR range
CThe rule uses UDP instead of TCP for port 22
DThe security group is attached to the wrong resource
Step-by-Step Solution
Solution:
  1. Step 1: Check rule direction and protocol

    Inbound SSH requires TCP on port 22 inbound; if rule is correct, this is fine.
  2. Step 2: Verify security group attachment

    If the security group is not attached to the resource (like EC2 instance), rules won't apply.
  3. Final Answer:

    The security group is attached to the wrong resource -> Option D
  4. Quick Check:

    Security group must be attached to resource [OK]
Quick Trick: Check if security group is attached to your resource [OK]
Common Mistakes:
  • Ignoring security group attachment
  • Confusing inbound and outbound rules
  • Using wrong protocol for SSH

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes