https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html
Security groups are stateful. For example, if you send a request from an instance, the response traffic for that request is allowed to reach the instance regardless of the inbound security group rules. Responses to allowed inbound traffic are allowed to leave the instance, regardless of the outbound rules. So "D" is NOT the answer. "A" is the correct answer.
A. Allow access to an Amazon EC2 instance through only a specific port.
Security groups in AWS are used to control inbound and outbound traffic to and from Amazon EC2 instances. They act as virtual firewalls for your instances. You can define rules in a security group to allow specific traffic based on protocols, ports, and IP address ranges. Therefore, using security groups, you can allow access to an Amazon EC2 instance through only a specific port, effectively controlling the traffic that is permitted.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mike1987
Highly Voted 10 months, 1 week agostoy123
Most Recent 9 months agoBShelat
9 months, 3 weeks agopetercorn
9 months, 4 weeks agoAghajee
10 months agoLyn
10 months, 1 week ago[Removed]
10 months, 1 week ago