Bird
0
0

You want to allow inbound HTTP traffic from the internet to an EC2 instance in the default security group. What is the best approach?

hard📝 Application Q8 of 15
AWS - Security Groups and Network ACLs
You want to allow inbound HTTP traffic from the internet to an EC2 instance in the default security group. What is the best approach?
AAdd an inbound rule to the default security group allowing TCP port 80 from 0.0.0.0/0.
BCreate a new security group with the required inbound rule and assign it to the instance.
CModify the default security group to allow all inbound traffic.
DChange the default security group outbound rules to allow port 80.
Step-by-Step Solution
Solution:
  1. Step 1: Understand best practices for default security group

    Modifying the default security group is not recommended for specific inbound rules.
  2. Step 2: Identify correct method to allow HTTP inbound traffic

    Creating a new security group with the required inbound rule and assigning it to the instance is best practice.
  3. Final Answer:

    Create a new security group with the required inbound rule and assign it to the instance. -> Option B
  4. Quick Check:

    Use new SG for custom inbound rules [OK]
Quick Trick: Use new security groups for custom inbound rules [OK]
Common Mistakes:
  • Modifying default security group directly
  • Changing outbound rules to affect inbound traffic
  • Allowing all inbound traffic instead of specific ports

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes