AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question
A company uses attribute-based access control (ABAC). Each IAM role for developers has a principal tag named 'Team' that identifies their squad (e.g., Blue or Green). All managed Amazon S3 objects are also tagged with the 'Team' key. You need a single IAM permissions policy that allows a role to delete objects only if the object's 'Team' tag matches the role's tag. Which Condition element satisfies this requirement?
The policy must compare the 'Team' tag attached to the IAM principal with the 'Team' tag attached to the S3 object on which the 'DeleteObject' request is made. The global condition key aws:ResourceTag/tag-key refers to a tag that exists on the target resource (the S3 object), and the policy variable ${aws:PrincipalTag/Team} expands to the value of the caller's 'Team' tag at runtime. Using the StringEquals operator enforces an exact match; if the tags differ or are absent, the request is denied.
Using s3:ExistingObjectTag is incorrect as this condition key is typically used for actions like s3:ReplicateObject, not for general access control on s3:DeleteObject. Using StringEqualsIfExists would allow the operation when the object lacks the 'Team' tag, creating a security gap. The final option incorrectly reverses the operands and attempts to use a condition key as a policy variable, which is syntactically invalid.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is attribute-based access control (ABAC) in AWS?
Open an interactive chat with Bash
What does the aws:PrincipalTag and aws:ResourceTag condition keys mean?
Open an interactive chat with Bash
Why is s3:ExistingObjectTag not suitable for this policy?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Security and Compliance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .