A company has two VPCs in the same AWS Region: VPC A with CIDR block hosting client applications in a private subnet, and VPC B with CIDR block hosting a centralized directory service in another private subnet. A VPC Peering connection is active between VPC A and VPC B. The client applications in VPC A must query the directory service in VPC B on TCP port . The security team requires a multi-layered security approach: network ACLs must secure the subnets (stateless), and security groups must secure the instances (stateful) to permit only this specific traffic. Which combination of actions will meet these requirements? (Select TWO.)
- Configure the network ACL for the client subnets in VPC A to allow outbound TCP port to the VPC B CIDR block, and allow inbound TCP traffic on ephemeral ports () from the VPC B CIDR block.Answer
- Configure the security group for the directory service instances in VPC B to allow inbound TCP port from the security group of the client applications in VPC A.Answer
- CConfigure the network ACL for the client subnets in VPC A to allow outbound TCP port to the VPC B CIDR block, without adding any inbound rules for return traffic.
- DConfigure the security group for the directory service instances in VPC B to allow inbound TCP port from the client security group, and configure an outbound rule in the same security group to allow TCP traffic on ephemeral ports () back to VPC A.
- EConfigure AWS Shield Advanced on the VPC Peering connection to inspect and permit TCP port traffic while blocking all other ports at the VPC edge.
Answer
Configure the network ACL for the client subnets in VPC A to allow outbound TCP port to the VPC B CIDR block, and allow inbound TCP traffic on ephemeral ports () from the VPC B CIDR block; and configure the security group for the directory service instances in VPC B to allow inbound TCP port from the security group of the client applications in VPC A.
The correct combination of actions consists of configuring the stateless network ACL in VPC A to permit outbound directory traffic on port and inbound return traffic on ephemeral ports (), while setting the stateful security group on the destination instances in VPC B to accept inbound port connections from the clients.
Step-by-Step Solution
Key Concept
VPC network security involves configuring stateful security groups at the instance level and stateless network ACLs at the subnet level, ensuring both inbound and return path traffic are appropriately allowed or denied.