AWS AI Practitioner AIF-C01 · Security, Compliance, and Governance for AI Solutions · medium

A multi-tenant SaaS provider uses Amazon SageMaker AI and Amazon Bedrock across five product teams (Retail, Healthcare, Logistics, Fintech, Media). The Chief Information Security Officer wants an Attribute-Based Access Control (ABAC) IAM policy so that an ML engineer can only invoke or modify SageMaker endpoints and Bedrock custom models whose resource tag Department matches the engineer's own IAM session tag (Department). Which IAM policy condition key enforces this dynamic tag comparison without editing policies when new engineers join?

Published · Last updated · checked before publication — how we verify questions

Options

  • AHardcode every individual engineer's IAM User ARN inside each SageMaker endpoint policy
  • BUse aws:SourceIp set to 0.0.0.0/0 on the AWS Organizations root account
  • CMatch aws:ResourceTag/Department to ${aws:PrincipalTag/Department} via ABACCorrect answer
  • DShare a single IAM root access key across the five engineering departments

Answer: C. Match aws:ResourceTag/Department to ${aws:PrincipalTag/Department} via ABAC

In AWS IAM Attribute-Based Access Control (ABAC), comparing aws:ResourceTag/Department against ${aws:PrincipalTag/Department} in a StringEquals condition dynamically grants access only when the principal's tag matches the AI resource's tag, eliminating manual policy edits as staff or endpoints scale.

Why the other options are wrong

  • A. Hardcode every individual engineer's IAM User ARN inside each SageMaker endpoint policy — Hardcoding ARNs is static RBAC/resource-policy maintenance that requires manual policy updates whenever staff join or leave.
  • B. Use aws:SourceIp set to 0.0.0.0/0 on the AWS Organizations root account — Allowing 0.0.0.0/0 by source IP does not isolate resources across the five departmental teams.
  • D. Share a single IAM root access key across the five engineering departments — Sharing root credentials violates least privilege and AWS IAM security best practices.

All Security, Compliance, and Governance for AI Solutions questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.