Skip to Content

Amazon CLF-C02: What AWS Service Controls Traffic for EC2 Instances?

Learn which AWS service controls inbound and outbound traffic for Amazon EC2 instances in the AWS Certified Cloud Practitioner CLF-C02 exam. Understand why Security Groups are the correct choice and how they function.

Question

A company needs to control incoming and outgoing traffic to an Amazon EC2 instance. Which AWS service or feature can the company associate with the EC2 instance to meet this requirement?

A. Network ACL
B. Security group
C. AWS WAF
D. VPC route tables

Answer

B. Security group

Explanation

The correct answer to the question is B. Security Group. Security Groups in AWS act as virtual firewalls specifically designed to control inbound and outbound traffic at the instance level, such as for Amazon EC2 instances. Below is a detailed explanation of why this is the correct choice compared to other options.

Why Security Groups Are the Right Choice

  1. Instance-Level Control: Security Groups are associated directly with EC2 instances and allow you to define rules for both inbound and outbound traffic. These rules specify allowed protocols, ports, and IP address ranges (CIDR blocks) for communication.
  2. Stateful Nature: They are stateful, meaning that if an inbound rule allows traffic, the corresponding outbound response is automatically permitted without needing an explicit rule. This simplifies configuration while ensuring secure communication.
  3. Customizable Rules: You can create multiple security groups with specific rules tailored to your application needs and associate them with different instances as required.
  4. Granular Access Control: Unlike Network ACLs, which operate at the subnet level, Security Groups provide more granular control by targeting individual instances within a VPC.

A security group is a virtual firewall that can be associated with an Amazon EC2 instance to control incoming and outgoing traffic to and from the instance. You can specify which protocols, ports, and source or destination IP ranges are allowed or denied by the security group.

Key Takeaways for Exam Success

  • Always associate Security Groups with EC2 instances to control traffic at the instance level.
  • Remember that Security Groups are stateful and only support allow rules.
  • Understand that Network ACLs complement Security Groups but operate at the subnet level and are stateless.

By focusing on these distinctions, you’ll be well-prepared to answer similar questions on the AWS Certified Cloud Practitioner CLF-C02 exam!

What AWS Service Controls Traffic for EC2 Instances?

Amazon AWS Certified Cloud Practitioner CLF-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Cloud Practitioner CLF-C02 exam and earn Amazon AWS Certified Cloud Practitioner CLF-C02 certification.