A financial services company hosts a payment processing application on Amazon EC2 instances in a private VPC subnet with the CIDR block . The application must securely communicate with an on-premises hardware security module (HSM) on port via an AWS Site-to-Site VPN connection (on-premises network CIDR ). Additionally, the application must access the AWS Key Management Service (AWS KMS) via an Interface VPC Endpoint located at in the same subnet. The company enforces strict regulatory requirements: all external internet access is blocked, and Network ACLs (NACLs) must operate under a default-deny posture. Which of the following configurations are required to establish these network connections while adhering to the principle of least privilege and stateless inspection? (Select TWO).
- Configure an outbound Network ACL rule for the EC2 subnet allowing TCP port to the destination CIDRs ( and ), and a corresponding inbound Network ACL rule allowing TCP ports from these destinations.Answer
- Configure a Security Group associated with the EC2 instances with outbound rules allowing TCP port to the on-premises network CIDR () and the Security Group of the KMS interface endpoint, with no inbound rules configured for return traffic.Answer
- CConfigure an inbound Network ACL rule for the EC2 subnet allowing TCP port from the destination CIDRs ( and ), relying on the stateful nature of Network ACLs to allow the outbound return traffic.
- DConfigure a Security Group associated with the EC2 instances with an inbound rule allowing TCP ports from the KMS interface endpoint and the on-premises network to accept response traffic.
- EConfigure an outbound Route Table entry in the EC2 subnet routing traffic destined for the KMS interface endpoint IP () to the Virtual Private Gateway () to leverage the VPN connection.