Enforcing Access Controls on SageMaker Studio Presigned URLs with the aws:sourceIp IAM Condition

Secure AWS resources.
Answer Correct answer: A — The aws:sourceIp IAM policy condition validates the client IP address, so a presigned URL replayed from outside the trusted VPN network is rejected.

A company shares Amazon SageMaker Studio notebooks that are accessible through a VPN. The company must enforce access controls to prevent malicious actors from exploiting presigned URLs to access the notebooks. Which solution will meet these requirements?

  1. Set up Studio client IP validation by using the aws:sourceIp IAM policy condition. Correct Answer
  2. Set up Studio client VPC validation by using the aws:sourceVpc IAM policy condition.
  3. Set up Studio client role endpoint validation by using the aws:PrimaryTag IAM policy condition.
  4. Set up Studio client user endpoint validation by using the aws:PrincipalTag IAM policy condition.

Community Votes

A
57%
B
43%

57% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

Restricting access with the aws:sourceIp IAM policy condition validates the client IP address on requests, so a presigned URL that is copied and replayed from outside the trusted network is rejected even though the URL itself is still valid.

A company shares SageMaker Studio notebooks reachable through a VPN and must enforce access controls so that malicious actors cannot exploit presigned URLs to reach the notebooks. The question asks which validation mechanism enforces that control at the IAM level.

Choosing the aws:sourceVpc condition, which validates the VPC rather than the client IP address. VPC validation secures the network boundary, but it does not constrain the source address of the request that presents the presigned URL, which is the specific exfiltration risk here.

Community Discussion (4 comments)

AWS_Certified1 👍 1 Selected: A
VPN - predefined IP range
eesa 👍 2 Selected: A
✅ Explanation: Context: The company is using Amazon SageMaker Studio notebooks. Access is allowed through a VPN, meaning users are coming from known, fixed IP ranges. The concern is unauthorized access via presigned URLs, which could potentially be used outside the trusted network. ✅ Why aws:sourceIp is the right choice: The aws:sourceIp condition in IAM policies allows you to restrict access based on the client's IP address. This is perfect for VPN-based setups where you know the IP range. It ensures that only users accessing from allowed IPs (e.g., your VPN subnet) can access SageMaker Studio resources, even if they have a valid presigned URL. This directly mitigates the risk of URL misuse from outside the VPN.
chris_spencer 👍 1 Selected: A
A is correct. https://aws.amazon.com/blogs/machine-learning/secure-amazon-sagemaker-studio-presigned-urls-part-1-foundational-infrastructure/ Studio supports a few methods for enforcing access controls against presigned URL data exfiltration: Client IP validation using the IAM policy condition aws:sourceIp Client VPC validation using the IAM condition aws:sourceVpc Client VPC endpoint validation using the IAM policy condition aws:sourceVpce
ryuhei 👍 3 Selected: B
If you apply IP restrictions, it may not be possible to properly control access via dynamic IP addresses or proxies, so the correct answer is probably B.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

The risk is that a presigned URL for a Studio notebook can be captured and replayed from outside the trusted environment, so the control has to bind the request to the expected client source. The aws:sourceIp IAM policy condition restricts the request to a specific client IP address or range, which is exactly the check that stops a presigned URL from being used from an unauthorized location. The scenario states the notebooks are accessed through a VPN, so the legitimate client addresses are known and stable, making IP validation both feasible and effective. The vote was 57 for A, and eesa reasoned that because users arrive through the VPN from known fixed IP ranges, the aws:sourceIp condition is the right restriction, while chris_spencer cited the AWS blog post describing client IP validation with aws:sourceIp as the first of the methods for defending against presigned URL data exfiltration.

Why the Other Options Are Wrong

Client VPC validation with aws:sourceVpc (B) verifies which VPC the request originates from rather than the client address, so it secures the network perimeter but does not constrain the source IP that presents a presigned URL, leaving the stated exfiltration path open; ryuhei also argued that IP-based reasoning breaks down with dynamic addresses and proxies, but in this scenario the VPN addresses are fixed. The aws:PrimaryTag condition (C) and the aws:PrincipalTag condition (D) are not client validation mechanisms at all; primary and principal tags evaluate identity-related session context, not network or endpoint provenance, so neither can constrain who presents a presigned URL.

Community Comment Notes

The community split 57 for A and 43 for B, and the split is genuinely about the presigned URL threat model. ryuhei, voting B, cautioned that IP restrictions do not control access when users come through dynamic IP addresses or proxies. eesa, voting A, answered that the VPN premise means known fixed ranges, and chris_spencer supplied the authoritative list from the AWS blog, which enumerates client IP validation with aws:sourceIp, client VPC validation with aws:sourceVpc, and client VPC endpoint validation, and identified IP validation as the foundational control for this problem.

Official Reference

Related Analysis

Practice All MLA-C01 Questions

Access 115 questions with complete answers and detailed explanations.

View Full MLA-C01 Practice Test →

← Back to MLA-C01 Study Guide