AWS - Security Groups and Network ACLsYou want to restrict outbound traffic from an EC2 instance assigned to the default security group. What must you do?AModify the default security group outbound rules to restrict traffic.BOutbound traffic cannot be restricted for instances in the default security group.CDelete the default security group and create a custom one with restrictions.DCreate a new security group with restricted outbound rules and assign it to the instance.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand default security group modification limitsYou can modify rules but cannot delete the default security group; modifying outbound rules is possible but affects all instances assigned.Step 2: Best practice for restricting outbound trafficCreating a new security group with specific outbound restrictions and assigning it to the instance is the recommended approach.Final Answer:Create a new security group with restricted outbound rules and assign it to the instance. -> Option DQuick Check:Use new security group to restrict outbound traffic = B [OK]Quick Trick: Use a new security group to restrict outbound traffic [OK]Common Mistakes:MISTAKESTrying to delete the default security groupModifying default group outbound rules affecting all instancesAssuming outbound restrictions are impossible
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 4medium AWS CLI - Installing AWS CLI - Quiz 2easy Cloud Computing Fundamentals - Edge locations and CloudFront overview - Quiz 11easy Identity and Access Management - IAM best practices - Quiz 14medium Identity and Access Management - Managed vs inline policies - Quiz 4medium Identity and Access Management - IAM users and groups - Quiz 9hard Security Groups and Network ACLs - Inbound and outbound rules - Quiz 15hard VPC Fundamentals - Public vs private subnets - Quiz 9hard VPC Fundamentals - Public vs private subnets - Quiz 1easy VPC Fundamentals - Default VPC overview - Quiz 15hard