An organization is deploying an internal processing application on Amazon EC2 instances in a private subnet (CIDR ). The application must securely consume a proprietary database API hosted by a third-party vendor in another AWS account using an Interface VPC Endpoint. The endpoint network interfaces are located in a separate dedicated subnet (CIDR ) within the same VPC. Traffic is restricted to TCP port . The VPC uses custom Network Access Control Lists (NACLs) associated with each subnet, both of which are currently configured with a default deny-all rule. To meet security compliance, the EC2 instances must only be allowed to initiate outbound connections to the Interface VPC Endpoint, and no other external traffic is permitted. Which combination of NACL and Security Group configurations will allow this private connection while adhering to the principle of least privilege?
- For the application subnet NACL, add an outbound rule allowing TCP port to and an inbound rule allowing TCP ports - from . For the endpoint subnet NACL, add an inbound rule allowing TCP port from and an outbound rule allowing TCP ports - to . Associate a Security Group with the EC2 instances allowing outbound TCP port to the endpoint Security Group, and associate a Security Group with the Interface Endpoint allowing inbound TCP port from the EC2 Security Group.Cevap
- BFor the application subnet NACL, add an outbound rule allowing TCP port to and an inbound rule allowing TCP port from . For the endpoint subnet NACL, add an inbound rule allowing TCP port from and an outbound rule allowing TCP port to . Associate a Security Group with the EC2 instances allowing outbound TCP port to the endpoint Security Group, and associate a Security Group with the Interface Endpoint allowing inbound TCP port from the EC2 Security Group.
- CFor the application subnet NACL, add an outbound rule allowing TCP port to and an inbound rule allowing TCP ports - from . For the endpoint subnet NACL, add an inbound rule allowing TCP port from and an outbound rule allowing TCP ports - to . Associate a Security Group with the EC2 instances allowing outbound TCP port and inbound TCP ports -, and associate a Security Group with the Interface Endpoint allowing inbound TCP port and outbound TCP ports -.
- DFor the application subnet NACL, add an outbound rule allowing TCP port to . For the endpoint subnet NACL, add an inbound rule allowing TCP port from . Do not configure inbound application NACL rules or outbound endpoint NACL rules. Associate a Security Group with the EC2 instances allowing outbound TCP port to the endpoint Security Group, and associate a Security Group with the Interface Endpoint allowing inbound TCP port from the EC2 Security Group.