An organization wants to implement 'Compliance as Code' and wants to ensure that any new EC2 instance created in their account is automatically checked for unauthorized open ports. Which service handles this automated setup?

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

Correct Answer: AWS Config with 'Security-Groups-Specific-Ports-Check' rule

AWS Config rules provide a way to continuously monitor and assess the compliance of your AWS resource configurations....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

An organization wants to implement 'Compliance as Code' and wants to ensure that any new EC2 instance created in their account is automatically checked for unauthorized open ports. Which service handles this automated setup?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

AWS Config with 'Security-Groups-Specific-Ports-Check' rule

Why This Answer Is Correct

AWS Config rules provide a way to continuously monitor and assess the compliance of your AWS resource configurations.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based 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.