Bird
0
0

Which of the following is the correct syntax to allow inbound TCP traffic on port 22 in a NACL rule?

easy📝 Syntax Q3 of 15
AWS - Security Groups and Network ACLs
Which of the following is the correct syntax to allow inbound TCP traffic on port 22 in a NACL rule?
ARuleNumber: 100, Protocol: UDP, PortRange: 22, Action: ALLOW, Direction: Inbound
BRuleNumber: 100, Protocol: TCP, PortRange: 22, Action: ALLOW, Direction: Inbound
CRuleNumber: 100, Protocol: TCP, PortRange: 80, Action: ALLOW, Direction: Outbound
DRuleNumber: 100, Protocol: TCP, PortRange: 22, Action: DENY, Direction: Inbound
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct protocol and port

    SSH uses TCP on port 22, so protocol must be TCP and port 22.
  2. Step 2: Confirm rule direction and action

    Inbound traffic must be allowed, so action is ALLOW and direction is Inbound.
  3. Final Answer:

    RuleNumber: 100, Protocol: TCP, PortRange: 22, Action: ALLOW, Direction: Inbound -> Option B
  4. Quick Check:

    Allow inbound TCP port 22 = RuleNumber: 100, Protocol: TCP, PortRange: 22, Action: ALLOW, Direction: Inbound [OK]
Quick Trick: SSH needs TCP port 22 inbound ALLOW rule [OK]
Common Mistakes:
MISTAKES
  • Using UDP instead of TCP
  • Setting wrong port number
  • Denying instead of allowing inbound traffic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes