ANS-C01 Network Security, Compliance and Governance Practice Question
Exhibit
Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": "ec2:Describe*",
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": "us-east-1"
}
}
}
]
}An IAM policy is applied to a user. The user reports that they cannot run 'aws ec2 describe-instances --region eu-west-1' but can run the same command in us-east-1. What is the most likely reason?
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 policy denies ec2:Describe* when the region is not us-east-1.
The condition 'StringNotEquals' with 'aws:RequestedRegion' denies the action if the region is not us-east-1. Option A is wrong because the policy explicitly denies ec2:Describe* actions. Option B is wrong because the condition is StringNotEquals, not StringEquals. Option D is wrong because the policy does not specify resource-level conditions.
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 policy only applies to resources in us-east-1, so other regions are implicitly denied.
Why it's wrong here
The policy explicitly denies based on region, not resource location.
- ✗
The policy condition uses StringEquals, which only allows requests from us-east-1.
Why it's wrong here
The condition uses StringNotEquals, which denies non-us-east-1 requests.
- ✓
The policy denies ec2:Describe* when the region is not us-east-1.
Why this is correct
The condition denies requests to regions other than us-east-1.
- ✗
The policy allows ec2:Describe* in all regions, but the user lacks permissions in eu-west-1.
Why it's wrong here
The policy denies ec2:Describe* when region is not us-east-1.
Go deeper
Related to this question
About these practice questions
This ANS-C01 question is part of Courseiva's 1,621-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ANS-C01 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 ANS-C01 exam.