An EC2 instance with private IP address is hosted in a private subnet and runs an HTTPS service on TCP port . The instance is associated with a security group named `sg-secure` and the subnet is associated with a network ACL named `nacl-custom`.
An external client at IP address attempts to connect to the HTTPS service on the instance. A SysOps Administrator configures VPC Flow Logs to capture traffic on the instance's elastic network interface (ENI). The flow log output shows the following records:
text
version account-id interface-id srcaddr dstaddr srcport dstport protocol packets bytes start end action log-status
2 123456789012 eni-0a1b2c3d4e5f6g7h8 198.51.100.5 10.0.1.50 49152 443 6 5 260 1601828400 1601828460 ACCEPT OK
2 123456789012 eni-0a1b2c3d4e5f6g7h8 10.0.1.50 198.51.100.5 443 49152 6 5 260 1601828400 1601828460 REJECT OK
The configuration of the security group `sg-secure` is:
- Inbound: Allow TCP port from
- Outbound: Allow all traffic (destination , all ports)
The configuration of the network ACL `nacl-custom` is:
- Inbound:
- Rule 100: Allow TCP port from
- Rule 32767: Deny all traffic
- Outbound:
- Rule 100: Allow TCP port to
- Rule 32767: Deny all traffic
Which of the following changes will resolve the connectivity issue and allow the client to successfully establish a connection to the HTTPS service?
- Add an outbound rule to the nacl-custom network ACL allowing TCP traffic with a destination port range of 1024-65535 to destination 0.0.0.0/0.Cevap
- BAdd an outbound rule to the sg-secure security group allowing TCP traffic with a destination port of 49152 to destination 198.51.100.5/32.
- CUpdate the route table of the private subnet to add a route for 0.0.0.0/0 pointing directly to the Internet Gateway.
- DModify the IAM role assigned to the VPC Flow Logs delivery service to grant the iam:PassRole permission for the Amazon CloudWatch Logs service.