AWS Certified CloudOps Engineer - Associate (SOA-C03) Practice Questions

AWS Certified CloudOps Engineer - Associate (SOA-C03) exam preparation

AWS Certified CloudOps Engineer - Associate (SOA-C03) practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 130 minutes.

AWS Certified CloudOps Engineer - Associate (SOA-C03) free question 10 / 10 · Domain 5: Networking and Content Delivery

An engineer pings an instance from a home computer. The default flow log shows an ACCEPT record for the ping to the instance and a REJECT record for the response. The security group allows inbound ICMP and has no outbound ICMP rule. What explains the REJECT record?

  1. The security group has no outbound ICMP rule, and a security group drops a response that no rule permits
  2. The network ACL permits inbound ICMP but not outbound ICMP, and it does not allow the response on its own
  3. The flow log wrote two records for a single accepted flow, and one of them is a REJECT record by default
  4. The network ACL denied the originating ping, and the REJECT record is the first record of the flow
Show the answer and explanation

Answer: B

Why this is correct
Security groups are stateful, so the response ping is allowed by the security group even without an outbound rule. Network ACLs are stateless, so the response is subject to their own rules. The network ACL permits inbound ICMP and does not permit outbound ICMP, so it denies the response and the default flow log shows a REJECT record for it.

Why the other options are wrong
"The security group has no outbound ICMP rule, and a security group drops a response that no rule permits" … Security groups are stateful, so responses to allowed traffic are allowed even if the rules in the security group do not permit it.
"The network ACL denied the originating ping, and the REJECT record is the first record of the flow" … The ACCEPT record is for the originating ping, which both the network ACL and the security group allowed. The REJECT record is for the response.
"The flow log wrote two records for a single accepted flow, and one of them is a REJECT record by default" … If the network ACL permitted outbound ICMP, the flow log would show two ACCEPT records. The REJECT record means that the network ACL denied the response.

Key points
With an outbound ICMP rule in the network ACL, the log would show two ACCEPT records. A security group that denies inbound ICMP produces a single REJECT record, because the traffic does not reach the instance.

Go to the AWS Certified CloudOps Engineer - Associate (SOA-C03) practice app (10 free questions; purchase unlocks all questions)

See the full practice set