Bird
0
0

You have two EC2 instances in the same VPC. Instance A's security group allows inbound SSH from Instance B's security group. What must be true for Instance B to SSH into Instance A?

hard📝 Application Q9 of 15
AWS - Security Groups and Network ACLs
You have two EC2 instances in the same VPC. Instance A's security group allows inbound SSH from Instance B's security group. What must be true for Instance B to SSH into Instance A?
AInstance B must have a public IP address
BInstance B's security group must be specified as the source in Instance A's inbound rule
CInstance A's security group must allow outbound SSH to Instance B's IP
DInstance A must have an internet gateway attached
Step-by-Step Solution
Solution:
  1. Step 1: Understand security group referencing

    Inbound rules can specify another security group as source to allow traffic from its instances.
  2. Step 2: Confirm requirement for SSH

    Instance A must allow inbound SSH from Instance B's security group to accept connections.
  3. Final Answer:

    Instance B's security group must be source in Instance A's inbound rule -> Option B
  4. Quick Check:

    Security group source referencing = Instance B's security group must be specified as the source in Instance A's inbound rule [OK]
Quick Trick: Use security group ID as source to allow instance-to-instance traffic [OK]
Common Mistakes:
MISTAKES
  • Thinking public IP is required for private VPC communication
  • Confusing outbound rules on Instance A
  • Assuming internet gateway is needed for internal traffic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes