asked 84.0k views
2 votes
What does this CloudFormation snippet do? (Select three)

SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 80
ToPort: 80
CidrIp:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp:
a) Opens port 80 for all IP addresses
b) Opens port 22 for all IP addresses
c) Closes port 80 for all IP addresses
d) Closes port 22 for all IP addresses

asked
User Philsch
by
8.2k points

1 Answer

1 vote

Final answer:

This CloudFormation snippet opens port 80 and port 22 for all IP addresses.

Step-by-step explanation:

The CloudFormation snippet provided opens port 80 for all IP addresses and port 22 for all IP addresses. It does not close any ports.

The snippet consists of two SecurityGroupIngress rules. The first rule opens port 80 for TCP traffic from all IP addresses, while the second rule opens port 22 for TCP traffic from all IP addresses.

answered
User Anshad Ali KM
by
8.3k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.