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

Your entire AWS infrastructure lives inside of one Amazon VPC. You have an Infrastructure monitoring application running on an Amazon instance in Availability
Zone (AZ) A of the region, and another application instance running in AZ B. The monitoring application needs to make use of ICMP ping to confirm network reachability of the instance hosting the application.
Can you configure the security groups for these instances to only allow the ICMP ping to pass from the monitoring instance to the application instance and nothing else? If so how?

Answer options

Correct answer: C

Explanation

AWS Security Groups are stateful, meaning that return traffic is automatically allowed regardless of any rules. To enable the ping, you only need to allow outbound ICMP on the source (monitoring) instance's security group and inbound ICMP on the destination (application) instance's security group. Other options are incorrect because ICMP can traverse subnets in a VPC, instances do not need to share a security group, and stateful tracking removes the need to explicitly allow outbound return traffic.