passdrill
AWS SAA-C03 · VPC & Networking · Card 018/024 medium

Security group `sg-db` in VPC B has an inbound rule that allows TCP 5432 from security group `sg-app` in VPC A. VPC A and VPC B are connected only by an active VPC peering connection (there is no transit gateway involved). Which statement is correct about this rule?

  1. The rule works: instances in sg-app can reach port 5432 on instances in sg-db using sg-app instances' private IP addresses, and none of sg-app's own rules are imported into sg-db as a result
  2. The rule is invalid, because a security group rule can only reference another security group when both are in the same VPC
  3. The rule works only if every instance in sg-app also has its public IP address individually added to sg-db
  4. Creating this rule automatically also permits sg-db instances to initiate connections to sg-app on any port
Next card → Shuffle