- A
AWS Config rule with an automatic remediation action that terminates the instance after launch
Why wrong: AWS Config is a detective service that evaluates resource configurations after they are created. Even with automatic remediation, the instance is launched first (even briefly), which may violate the security policy. The requirement is for a preventive control that blocks the launch entirely, and Config does not provide preventive enforcement at the organization level.
- B
IAM policy with a condition key to deny ec2:RunInstances when a public IP is assigned
Why wrong: An IAM policy can be written with a condition to deny launch actions that assign a public IP, but IAM policies are applied to specific IAM users or roles within each individual account. They cannot be centrally enforced across all accounts from Organizations. Additionally, IAM policies do not apply to the root user, which could still launch instances with public IPs.
- C
Service control policy (SCP) in AWS Organizations
An SCP can be attached to the root organizational unit (OU) or the entire organization to deny the ec2:RunInstances action when the request includes a parameter for a public IP address (e.g., condition key 'ec2:AssociatePublicIpAddress'). SCPs are preventive policies that apply to all principals (including the root user) in all member accounts, and they are automatically inherited by new accounts added to the organization. This meets all the requirements.
- D
AWS Firewall Manager security group policy
Why wrong: AWS Firewall Manager is used to centrally configure and manage AWS WAF rules, AWS Shield Advanced protections, and VPC security groups across accounts. It does not have the ability to control EC2 launch parameters, such as whether an instance receives a public IP address. It operates at the network security layer, not the instance provisioning layer.
CLF-C02 Security and Compliance Practice Question
This CLF-C02 practice question tests your understanding of security and compliance. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: sCPs are preventive guardrails that set maximum permissions for accounts.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company uses AWS Organizations to manage multiple AWS accounts. The security team wants to ensure that no Amazon EC2 instance can be launched with a public IPv4 address in any member account. The team needs a preventive control that centrally blocks the launch action if a public IP is assigned, and the control must automatically apply to all existing and future accounts in the organization. Which AWS feature should the security team use to meet these requirements?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Service control policy (SCP) in AWS Organizations
Service control policies (SCPs) in AWS Organizations allow you to centrally define the maximum available permissions for all accounts in the organization. By creating an SCP that denies the ec2:RunInstances action when the request includes a public IP address assignment (using the ec2:AssociatePublicIpAddress condition key), you can prevent any EC2 instance from being launched with a public IPv4 address. This control applies automatically to all existing and future member accounts without requiring per-account configuration.
Key principle: SCPs are preventive guardrails that set maximum permissions for accounts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
AWS Config rule with an automatic remediation action that terminates the instance after launch
Why it's wrong here
AWS Config is a detective service that evaluates resource configurations after they are created. Even with automatic remediation, the instance is launched first (even briefly), which may violate the security policy. The requirement is for a preventive control that blocks the launch entirely, and Config does not provide preventive enforcement at the organization level.
When this WOULD be correct
This option would be correct if the requirement was to detect and automatically remediate non-compliant resources after they are created, rather than prevent the launch action entirely. For example, a question asking for a post-launch compliance check that terminates unauthorized public IP instances.
- ✗
IAM policy with a condition key to deny ec2:RunInstances when a public IP is assigned
Why it's wrong here
An IAM policy can be written with a condition to deny launch actions that assign a public IP, but IAM policies are applied to specific IAM users or roles within each individual account. They cannot be centrally enforced across all accounts from Organizations. Additionally, IAM policies do not apply to the root user, which could still launch instances with public IPs.
When this WOULD be correct
This option would be correct if the question asked for a preventive control within a single AWS account (not across an organization) to deny launching EC2 instances with public IPs, using an IAM policy with a condition key on ec2:RunInstances.
- ✓
Service control policy (SCP) in AWS Organizations
Why this is correct
An SCP can be attached to the root organizational unit (OU) or the entire organization to deny the ec2:RunInstances action when the request includes a parameter for a public IP address (e.g., condition key 'ec2:AssociatePublicIpAddress'). SCPs are preventive policies that apply to all principals (including the root user) in all member accounts, and they are automatically inherited by new accounts added to the organization. This meets all the requirements.
Related concept
SCPs are preventive guardrails that set maximum permissions for accounts.
- ✗
AWS Firewall Manager security group policy
Why it's wrong here
AWS Firewall Manager is used to centrally configure and manage AWS WAF rules, AWS Shield Advanced protections, and VPC security groups across accounts. It does not have the ability to control EC2 launch parameters, such as whether an instance receives a public IP address. It operates at the network security layer, not the instance provisioning layer.
When this WOULD be correct
A company needs to centrally enforce that all EC2 instances in an AWS Organization must have a specific set of security group rules (e.g., no SSH from 0.0.0.0/0) and automatically remediate non-compliant security groups across all accounts. Firewall Manager security group policies would be the correct choice.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CLF-C02 exam frequently reuses these exact scenarios with slightly different constraints.
✓Service control policy (SCP) in AWS OrganizationsCorrect answer▾
Why this is correct
An SCP can be attached to the root organizational unit (OU) or the entire organization to deny the ec2:RunInstances action when the request includes a parameter for a public IP address (e.g., condition key 'ec2:AssociatePublicIpAddress'). SCPs are preventive policies that apply to all principals (including the root user) in all member accounts, and they are automatically inherited by new accounts added to the organization. This meets all the requirements.
✗AWS Config rule with an automatic remediation action that terminates the instance after launchWrong answer — click to see why▾
Why this is wrong here
AWS Config rules with automatic remediation are detective and reactive, not preventive. They terminate the instance after launch, which does not block the launch action itself and may incur costs or resource usage before termination.
★ When this WOULD be the correct answer
This option would be correct if the requirement was to detect and automatically remediate non-compliant resources after they are created, rather than prevent the launch action entirely. For example, a question asking for a post-launch compliance check that terminates unauthorized public IP instances.
Why candidates choose this
Candidates may think that automatic remediation provides a 'preventive' effect by quickly terminating instances, but they overlook the key distinction between preventive (blocking the action) and detective/reactive (responding after the fact) controls.
✗IAM policy with a condition key to deny ec2:RunInstances when a public IP is assignedWrong answer — click to see why▾
Why this is wrong here
IAM policies are account-level and cannot be centrally applied across all accounts in an AWS Organization. They must be attached individually to each account, and they do not automatically apply to new accounts.
★ When this WOULD be the correct answer
This option would be correct if the question asked for a preventive control within a single AWS account (not across an organization) to deny launching EC2 instances with public IPs, using an IAM policy with a condition key on ec2:RunInstances.
Why candidates choose this
Candidates may think IAM policies can centrally control actions across accounts, but they are per-account; SCPs are the organization-wide preventive control.
✗AWS Firewall Manager security group policyWrong answer — click to see why▾
Why this is wrong here
AWS Firewall Manager security group policies manage security group rules across accounts, but they do not prevent EC2 instances from being launched with public IPv4 addresses. They are not a preventive control for blocking launch actions based on public IP assignment.
★ When this WOULD be the correct answer
A company needs to centrally enforce that all EC2 instances in an AWS Organization must have a specific set of security group rules (e.g., no SSH from 0.0.0.0/0) and automatically remediate non-compliant security groups across all accounts. Firewall Manager security group policies would be the correct choice.
Why candidates choose this
Candidates may think Firewall Manager provides centralized security controls across accounts, but they confuse its capability to manage security groups with the ability to block resource launches based on network configuration.
Analysis generated from the official CLF-C02blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse SCPs with IAM policies, not realizing that SCPs are the only mechanism in AWS Organizations that can centrally and preventively restrict actions across all accounts, including future ones, without requiring per-account configuration.
Detailed technical explanation
How to think about this question
The SCP uses the ec2:AssociatePublicIpAddress condition key to deny the ec2:RunInstances action when the request includes a public IP assignment. This condition key evaluates the NetworkInterface.AssociatePublicIpAddress parameter in the RunInstances API call, which is set to true when a public IPv4 address is automatically assigned (e.g., in a default VPC subnet) or explicitly requested. In real-world scenarios, this SCP can be combined with an SCP that denies modifying VPC attributes (e.g., enableDnsHostnames) to prevent workarounds that would allow public IP assignment after launch.
KKey Concepts to Remember
- SCPs are preventive guardrails that set maximum permissions for accounts.
- SCPs apply to all IAM users, roles, and the root user in affected accounts.
- SCPs are centrally managed in AWS Organizations and inherited by member accounts.
- SCPs can deny specific actions based on conditions, like `ec2:AssociatePublicIpAddress`.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
SCPs are preventive guardrails that set maximum permissions for accounts.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Review sCPs are preventive guardrails that set maximum permissions for accounts., then practise related CLF-C02 questions on the same topic to reinforce the concept.
- →
Security and Compliance — study guide chapter
Learn the concepts, then practise the questions
- →
Security and Compliance practice questions
Targeted practice on this topic area only
- →
All CLF-C02 questions
1,024 questions across all exam domains
- →
AWS Certified Cloud Practitioner CLF-C02 study guide
Full concept coverage aligned to exam objectives
- →
CLF-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CLF-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Cloud Concepts practice questions
Practise CLF-C02 questions linked to Cloud Concepts.
Security and Compliance practice questions
Practise CLF-C02 questions linked to Security and Compliance.
Cloud Technology and Services practice questions
Practise CLF-C02 questions linked to Cloud Technology and Services.
Billing, Pricing, and Support practice questions
Practise CLF-C02 questions linked to Billing, Pricing, and Support.
AWS shared responsibility model practice questions
Practise CLF-C02 questions linked to AWS shared responsibility model.
AWS IAM practice questions
Practise CLF-C02 questions linked to AWS IAM.
AWS pricing practice questions
Practise CLF-C02 questions linked to AWS pricing.
AWS support plans practice questions
Practise CLF-C02 questions linked to AWS support plans.
AWS S3 practice questions
Practise CLF-C02 questions linked to AWS S3.
AWS EC2 practice questions
Practise CLF-C02 questions linked to AWS EC2.
Practice this exam
Start a free CLF-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CLF-C02 question test?
Security and Compliance — This question tests Security and Compliance — SCPs are preventive guardrails that set maximum permissions for accounts..
What is the correct answer to this question?
The correct answer is: Service control policy (SCP) in AWS Organizations — Service control policies (SCPs) in AWS Organizations allow you to centrally define the maximum available permissions for all accounts in the organization. By creating an SCP that denies the ec2:RunInstances action when the request includes a public IP address assignment (using the ec2:AssociatePublicIpAddress condition key), you can prevent any EC2 instance from being launched with a public IPv4 address. This control applies automatically to all existing and future member accounts without requiring per-account configuration.
What should I do if I get this CLF-C02 question wrong?
Review sCPs are preventive guardrails that set maximum permissions for accounts., then practise related CLF-C02 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
SCPs are preventive guardrails that set maximum permissions for accounts.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More CLF-C02 practice questions
- A company publishes a message each time a new product is added to its catalogue. Three services need to receive this mes…
- A media company stores frequently accessed video thumbnails in Amazon S3. The thumbnails are read multiple times every d…
- A company needs a service to translate domain names (like www.example.com) into IP addresses, check the health of their…
- A startup runs an application on AWS and receives a monthly bill that charges exactly for the number of compute hours us…
- A financial institution runs its core banking application on-premises due to regulatory requirements. It has connected i…
- A company wants to run a MySQL database in AWS without managing database software installation, applying patches, settin…
Last reviewed: Jun 11, 2026
This CLF-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CLF-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.