Identity and Access Management
Developers create Secrets Manager secrets with tags supplied in the creation request. The creation Allow must require a Project tag matching the caller's Project principal tag, without relying on an existing resource tag. Which condition meets this requirement?
Show the answer
Correct answerC. StringEquals comparing aws:RequestTag/Project to ${aws:PrincipalTag/Project}
AWhy not this: Checking the principal tag's presence does not validate tags supplied during creation.
BWhy not this: Restricting tag key names does not require a matching Project value.
CWhy this is right: The comparison requires the submitted Project value to match the caller's Project attribute.
DWhy not this: An existing resource tag does not represent the tag value submitted to create the secret.
aws:RequestTag/Project evaluates the tag submitted during creation and can require it to match the principal's Project. aws:ResourceTag/Project refers to an existing resource tag, not the proposed tag value.