AWS - Security Groups and Network ACLsWhich 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: InboundBRuleNumber: 100, Protocol: TCP, PortRange: 22, Action: ALLOW, Direction: InboundCRuleNumber: 100, Protocol: TCP, PortRange: 80, Action: ALLOW, Direction: OutboundDRuleNumber: 100, Protocol: TCP, PortRange: 22, Action: DENY, Direction: InboundCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify correct protocol and portSSH uses TCP on port 22, so protocol must be TCP and port 22.Step 2: Confirm rule direction and actionInbound traffic must be allowed, so action is ALLOW and direction is Inbound.Final Answer:RuleNumber: 100, Protocol: TCP, PortRange: 22, Action: ALLOW, Direction: Inbound -> Option BQuick 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:MISTAKESUsing UDP instead of TCPSetting wrong port numberDenying instead of allowing inbound traffic
Master "Security Groups and Network ACLs" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS CLI - Basic CLI commands (s3, ec2) - Quiz 13medium Cloud Computing Fundamentals - Edge locations and CloudFront overview - Quiz 11easy EC2 Fundamentals - Connecting to EC2 instances - Quiz 12easy EC2 Fundamentals - Connecting to EC2 instances - Quiz 6medium Identity and Access Management - Assuming roles for temporary access - Quiz 6medium Identity and Access Management - Why IAM is foundational - Quiz 4medium Identity and Access Management - IAM best practices - Quiz 5medium Identity and Access Management - Assuming roles for temporary access - Quiz 12easy Identity and Access Management - IAM best practices - Quiz 7medium Security Groups and Network ACLs - Network ACLs overview - Quiz 3easy