An organization runs order processing microservices on Amazon EC2 instances in a private subnet () within an Amazon VPC. These instances must securely query a database in a dedicated database subnet (). They must also access a third-party payment processing API through an Interface VPC Endpoint hosted in a utility subnet () within the same VPC.
Custom Network ACLs (NACLs) are configured as follows:
- The private subnet NACL allows outbound TCP traffic to the database subnet on port and outbound TCP traffic to the utility subnet on port .
- The database subnet NACL allows inbound TCP traffic on port and outbound TCP traffic to the private subnet on ephemeral ports ().
- The utility subnet NACL allows inbound TCP traffic on port from the private subnet and outbound TCP traffic to the private subnet on ephemeral ports ().
Currently, the EC2 instances successfully connect to the database, but all HTTPS connection attempts to the third-party API via the Interface VPC Endpoint fail.
Which two actions should the solutions architect take to resolve this connectivity issue while maintaining least privilege? (Select TWO.)
- Add an inbound rule to the private subnet Network ACL that allows TCP traffic from the utility subnet () on ephemeral ports ().Answer
- Configure the security group associated with the Interface VPC Endpoint to allow inbound TCP traffic on port from the security group associated with the EC2 instances.Answer
- CAdd an outbound rule to the security group associated with the Interface VPC Endpoint to allow TCP traffic to the private subnet's security group on ephemeral ports ().
- DAdd an outbound rule to the private subnet Network ACL that allows TCP traffic to the utility subnet () on ephemeral ports ().
- EAttach an AWS WAF Web ACL to the Interface VPC Endpoint with a rule allowing inbound HTTPS traffic on ephemeral ports from the private subnet.