Your organization wants to implement 'Attribute-based Access Control' (ABAC) to simplify IAM management. They want to ensure that developers can only start/stop EC2 instances that have a 'Project' tag matching the 'Project' tag on the developer's IAM user. Which IAM policy element is used to achieve this comparison?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Condition with 'StringEquals' on 'aws:PrincipalTag/Project' and 'ec2:ResourceTag/Project'

ABAC allows for dynamic permissions based on tags. By comparing the principal's tags to the resource's tags in a policy condition, you can scale permissions without updating indivi...

📋Part of AWS Certified Solutions Architect – Professional (SAP-C02) · AWS Certification Practice
Real Exam ScenarioAWS IAM

Your organization wants to implement 'Attribute-based Access Control' (ABAC) to simplify IAM management. They want to ensure that developers can only start/stop EC2 instances that have a 'Project' tag matching the 'Project' tag on the developer's IAM user. Which IAM policy element is used to achieve this comparison?

✓ Correct Answer & ExplanationAWS IAM

Correct Answer

Condition with 'StringEquals' on 'aws:PrincipalTag/Project' and 'ec2:ResourceTag/Project'

Why This Answer Is Correct

ABAC allows for dynamic permissions based on tags. By comparing the principal's tags to the resource's tags in a policy condition, you can scale permissions without updating individual policies.

📚 What This Question Tests

This question evaluates your knowledge of AWS IAM — a core concept tested in AWS Certified Solutions Architect – Professional (SAP-C02). Understanding AWS IAM is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.