Can a single EC2 instance be associated with multiple Security Groups?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Yes, and the rules from all groups are aggregated

When multiple SGs are used, AWS evaluates all rules across all groups to determine if traffic is allowed....

๐Ÿ“‹Part of AWS Certified Cloud Practitioner (CLF-C02) ยท AWS Certification Practice
Real Exam ScenarioSecurity Groups

Can a single EC2 instance be associated with multiple Security Groups?

โœ“ Correct Answer & ExplanationSecurity Groups

Correct Answer

Yes, and the rules from all groups are aggregated

Why This Answer Is Correct

When multiple SGs are used, AWS evaluates all rules across all groups to determine if traffic is allowed.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Security Groups โ€” a core concept tested in AWS Certified Cloud Practitioner (CLF-C02). Understanding Security Groups is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.