mediumMultiple ChoiceObjective-mapped
CV0-004 Practice Question: Refer to the exhibit
Exhibit
Refer to the exhibit.
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"IpAddress": {"aws:SourceIp": "10.0.0.0/8"}
}
}
]
}
```Refer to the exhibit. An administrator created this policy and attached it to a user. When the user attempts to terminate an instance from an IP address outside the 10.0.0.0/8 range, what will happen?
⚠ Common exam trap
Candidates often confuse a failed condition with an explicit Deny effect, not realizing that an Allow with an unmet condition results in an implicit deny, not a Deny effect in the policy.
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
✓
The user will be denied because the condition fails.
The policy includes a condition that restricts the allowed source IP addresses to the 10.0.0.0/8 range. When the user attempts to terminate an instance from an IP address outside this range, the condition fails, and the default implicit deny in IAM (or equivalent policy engine) denies the action. The explicit Allow effect is only applied when the condition is met, so a failed condition results in denial.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The user will be denied because the action is not allowed.
Why it's wrong here
The action is allowed, but only under the condition.
- ✗
The effect will be evaluated as Deny.
Why it's wrong here
The condition does not change the Effect to Deny; it simply prevents the Allow from applying.
- ✓
The user will be denied because the condition fails.
Why this is correct
Without a matching Allow, the default Deny takes effect.
- ✗
The user will be allowed to terminate instances.
Why it's wrong here
The condition fails for IPs outside 10.0.0.0/8, so the Allow does not apply.
Go deeper
Related to this question
About these practice questions
One of 977 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.