Home > Glossary > AWS Certified Cloud Practitioner > Amazon VPC Security Groups

📖 What is Amazon VPC Security Groups?

Amazon VPC Security Groups act as a virtual firewall for your EC2 instances to control inbound and outbound traffic. They operate at the instance level and are stateful, meaning return traffic is automatically allowed regardless of inbound rules.

🥋 Sensei Says:

"Remember that Security Groups are stateful and only allow "Allow" rules; you cannot explicitly "Deny" a specific IP address here."

📚 Certification: AWS Certified Cloud Practitioner (CLF-C02)

🔑 What are the Key Concepts of Amazon VPC Security Groups?

  • Stateful operation ensures that if an inbound request is allowed, the outbound response is automatically permitted, regardless of outbound rule configurations.
  • Security groups operate at the instance level, acting as a virtual firewall for individual EC2 instances rather than the entire subnet.
  • They utilize a 'whitelist' model, meaning only explicit 'Allow' rules are permitted; there is no option to create an explicit 'Deny' rule.
  • Rules are defined by protocol, port range, and source/destination, allowing traffic from specific IP ranges or other security group IDs.
  • An EC2 instance can be associated with multiple security groups, and the rules from all associated groups are aggregated to determine access.

🎯 How does Amazon VPC Security Groups appear on the CLF-C02 Exam?

You may be asked to identify the correct mechanism to allow HTTP and HTTPS traffic to a web server while blocking all other incoming ports.

A scenario might describe a need to block a specific malicious IP address from accessing a subnet, requiring you to distinguish between Security Groups and Network ACLs.

Expect questions where you must determine if return traffic is allowed for a connection that was initiated from outside the VPC via a security group.

❓ Frequently Asked Questions

What happens if I don't add any rules to a new security group?

By default, a new security group allows no inbound traffic and allows all outbound traffic. You must explicitly add allow rules for any incoming requests to reach your instance.


Can I use a security group to block a specific IP address?

No, security groups only support 'Allow' rules. To explicitly deny or block a specific IP address, you must use a Network Access Control List (NACL) at the subnet level.


Why would I reference another security group as a source instead of an IP range?

Referencing a security group allows instances to communicate based on their membership in a group, simplifying management as instances scale without needing to manually update IP lists.

Related Terms from AWS Certified Cloud Practitioner

📝 Related Study Guides

Study Guide 8 min read

AWS Cloud Practitioner (CLF-C02): Complete 2026 Study Guide

The AWS Cloud Practitioner CLF-C02 certification validates foundational cloud knowledge across four domains: Cloud Concepts, Security and Compliance, Cloud Technology and Services, and Billing and Pricing. Prepare with a 4-week study plan focusing on core AWS services like EC2, S3, IAM, and Lambda, combined with scenario-based practice questions to build exam confidence.

Study Guide 10 min read

AWS Cloud Practitioner (CLF-C02) Study Guide for 2026

The AWS Cloud Practitioner (CLF-C02) exam validates overall understanding of the AWS Cloud platform. To pass, you must master four domains: Cloud Concepts, Security and Compliance, Technology, and Billing and Pricing. A successful strategy combines official AWS documentation with rigorous practice exams to benchmark your knowledge across all service categories.

Deep Dive 8 min read

AWS Support Plans & Pricing: CLF-C02 Exam Guide

AWS offers four support plans—Basic, Developer, Business, and Enterprise—differing by response time, access to engineers, and the inclusion of a Technical Account Manager (TAM). For the CLF-C02 exam, you must distinguish these tiers and understand pricing models like On-Demand, Reserved, Spot, and Savings Plans to optimize cloud costs.

🧠

Test Your Knowledge

Think you understand Amazon VPC Security Groups? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium