AWS - Security Groups and Network ACLsHow can you allow an EC2 instance to send outbound traffic only to another instance in the same security group?ASet inbound rule with source as the security group IDBSet outbound rule with destination as the security group IDCSet inbound rule with source as 0.0.0.0/0DSet outbound rule with destination as 0.0.0.0/0Check Answer
Step-by-Step SolutionSolution:Step 1: Understand security group referencingSecurity groups can reference themselves to allow traffic within the group.Step 2: Configure outbound ruleSetting outbound rule destination as the security group ID restricts traffic to instances in that group.Final Answer:Set outbound rule with destination as the security group ID -> Option BQuick Check:Use security group ID in outbound rules to restrict traffic [OK]Quick Trick: Use security group ID as destination to restrict outbound [OK]Common Mistakes:MISTAKESUsing 0.0.0.0/0 allows all destinationsConfusing inbound and outbound rules
Master "Security Groups and Network ACLs" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Account and Billing - Creating an AWS account - Quiz 8hard AWS Account and Billing - AWS Cost Explorer basics - Quiz 12easy Cloud Computing Fundamentals - AWS free tier overview - Quiz 3easy Cloud Computing Fundamentals - Edge locations and CloudFront overview - Quiz 5medium EC2 Fundamentals - Instance metadata and user data - Quiz 12easy EC2 Fundamentals - Why EC2 matters for compute - Quiz 7medium Identity and Access Management - Multi-factor authentication setup - Quiz 14medium Identity and Access Management - IAM users and groups - Quiz 13medium VPC Fundamentals - Why VPC provides network isolation - Quiz 14medium VPC Fundamentals - CIDR blocks and IP addressing - Quiz 2easy