AWS Certified SysOps Administrator – Associate (legacy) — Question 625

You are setting up security groups for both incoming traffic and outgoing traffic in your VPC net-work on the AWS CLI. Which of the following AWS CLI commands would you use for adding one or more incoming traffic rules to a security group?

Answer options

Correct answer: B

Explanation

The AWS CLI command `authorize-security-group-ingress` is used to add inbound (ingress) rules to a security group. Conversely, `authorize-security-group-egress` is used for outbound (egress) rules, while the other options represent incorrect or non-existent command formats for this specific AWS CLI action.