Bird
0
0

What issue will occur when trying to SSH into an instance in this subnet?

medium📝 Debug Q14 of 15
AWS - Security Groups and Network ACLs
A developer configures a NACL to allow inbound SSH (port 22) traffic but forgets to add an outbound rule to allow return traffic. The Security Group allows inbound and outbound SSH traffic. What issue will occur when trying to SSH into an instance in this subnet?
ASSH connection will fail because NACL outbound traffic is blocked.
BSSH connection will succeed because Security Groups allow traffic.
CSSH connection will fail because Security Groups block inbound traffic.
DSSH connection will succeed because NACLs are stateful.
Step-by-Step Solution
Solution:
  1. Step 1: Check NACL outbound rules

    NACLs are stateless, so return traffic must be explicitly allowed. Missing outbound rule blocks return SSH packets.
  2. Step 2: Check Security Group rules

    Security Groups allow inbound and outbound SSH, but cannot override NACL blocking outbound return traffic.
  3. Final Answer:

    SSH connection will fail because NACL outbound traffic is blocked. -> Option A
  4. Quick Check:

    NACL stateless requires outbound allow for return traffic [OK]
Quick Trick: NACLs need both inbound and outbound rules for two-way traffic [OK]
Common Mistakes:
MISTAKES
  • Assuming Security Groups fix NACL outbound block
  • Forgetting NACLs are stateless
  • Thinking inbound allow is enough

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes