Question 56 of 1,748
Identity and Access ManagementhardMultiple SelectObjective-mapped

How to Restrict AWS API Calls to a Specific Region Using IAM Policy

This SCS-C02 practice question tests your understanding of identity and access management. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: aws:RequestedRegion. 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.

Which TWO IAM policy conditions can be used to enforce that API calls originate from a specific AWS region? (Choose TWO.)

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

aws:SourceIp

The correct answers are C and D. aws:SourceIp can be used with known IP address ranges for a specific AWS region to restrict API calls to that region, effectively enforcing region-based access. aws:RequestedRegion directly checks the AWS region specified in the API request, providing a straightforward condition for region enforcement. Option A (ec2:Region) is specific to EC2 resources and not a general IAM condition for request origin. Option B (aws:UserAgent) checks the user agent string, not the region. Option E (aws:Region) checks the region of the resource, not the request origin.

Key principle: aws:RequestedRegion

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ec2:Region

    Why it's wrong here

    ec2:Region is an EC2-specific condition key for resource-level conditions, not for the origin of API requests.

  • aws:UserAgent

    Why it's wrong here

    aws:UserAgent checks the user agent string of the API request, which does not indicate the AWS region.

  • aws:SourceIp

    Why this is correct

    Although aws:SourceIp checks the source IP address, it can be used with known IP ranges of a specific AWS region to enforce that requests originate from that region. It is a valid condition for region-based access control.

    Related concept

    aws:RequestedRegion

  • aws:RequestedRegion

    Why this is correct

    aws:RequestedRegion directly checks the AWS region specified in the API request, making it a direct condition key for enforcing region-specific access.

    Related concept

    aws:RequestedRegion

  • aws:Region

    Why it's wrong here

    aws:Region is a condition key that identifies the region of the resource being accessed, not the origin of the request.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • aws:RequestedRegion
  • IAM Condition Keys

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

aws:RequestedRegion

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 aws:RequestedRegion, then practise related SCS-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related SCS-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SCS-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 SCS-C02 question test?

Identity and Access Management — This question tests Identity and Access Management — aws:RequestedRegion.

What is the correct answer to this question?

The correct answer is: aws:SourceIp — The correct answers are C and D. aws:SourceIp can be used with known IP address ranges for a specific AWS region to restrict API calls to that region, effectively enforcing region-based access. aws:RequestedRegion directly checks the AWS region specified in the API request, providing a straightforward condition for region enforcement. Option A (ec2:Region) is specific to EC2 resources and not a general IAM condition for request origin. Option B (aws:UserAgent) checks the user agent string, not the region. Option E (aws:Region) checks the region of the resource, not the request origin.

What should I do if I get this SCS-C02 question wrong?

Review aws:RequestedRegion, then practise related SCS-C02 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

aws:RequestedRegion

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 →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SCS-C02 practice questions

Last reviewed: Jun 20, 2026

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.

Loading comments…

Sign in to join the discussion.

This SCS-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 SCS-C02 exam.