AWS - Security Groups and Network ACLsWhich of the following is the correct syntax to allow inbound TCP traffic on port 22 from any IP in an AWS security group?A{"Protocol": "tcp", "Port": 22, "Source": "0.0.0.0/0"}B{"IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "CidrIp": "0.0.0.0/0"}C{"IpProtocol": "udp", "FromPort": 22, "ToPort": 22, "CidrIp": "0.0.0.0/0"}D{"IpProtocol": "tcp", "FromPort": 80, "ToPort": 80, "CidrIp": "0.0.0.0/0"}Check Answer
Step-by-Step SolutionSolution:Step 1: Identify correct keys for security group ruleThe correct keys are IpProtocol, FromPort, ToPort, and CidrIp for inbound rules.Step 2: Match protocol and port for SSHSSH uses TCP on port 22, so protocol tcp and ports 22 to 22 are correct.Final Answer:Correct JSON with tcp protocol and port 22 -> Option BQuick Check:Correct keys and values = {"IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "CidrIp": "0.0.0.0/0"} [OK]Quick Trick: Use IpProtocol, FromPort, ToPort, CidrIp keys for rules [OK]Common Mistakes:Using udp instead of tcp for SSHIncorrect port numbersWrong key names like Protocol or Source
Master "Security Groups and Network ACLs" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Account and Billing - Billing dashboard overview - Quiz 6medium EC2 Fundamentals - Elastic IP addresses - Quiz 15hard Identity and Access Management - Assuming roles for temporary access - Quiz 2easy Identity and Access Management - Assuming roles for temporary access - Quiz 12easy S3 Fundamentals - Bucket policies for access control - Quiz 7medium S3 Fundamentals - Static website hosting on S3 - Quiz 12easy Security Groups and Network ACLs - Security group as virtual firewall - Quiz 3easy Security Groups and Network ACLs - Inbound and outbound rules - Quiz 10hard VPC Fundamentals - Default VPC overview - Quiz 2easy VPC Fundamentals - Why VPC provides network isolation - Quiz 14medium