Your organization wants to implement 'Attribute-based Access Control' (ABAC) in AWS to simplify permission management. They want to ensure that developers can only start/stop virtual machines that have a 'ProjectID' tag matching the 'ProjectID' tag on the developer's IAM user. Which IAM policy condition key enables this dynamic comparison?

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

Correct Answer: aws:PrincipalTag/ProjectID and aws:ResourceTag/ProjectID

ABAC uses tags on both the identity (principal) and the resource. By comparing these tags in the IAM policy condition, you can grant access dynamically....

📋Part of AWS Certified DevOps Engineer – Professional (DOP-C02) · AWS Certification Practice
Real Exam ScenarioScenario Based

Your organization wants to implement 'Attribute-based Access Control' (ABAC) in AWS to simplify permission management. They want to ensure that developers can only start/stop virtual machines that have a 'ProjectID' tag matching the 'ProjectID' tag on the developer's IAM user. Which IAM policy condition key enables this dynamic comparison?

✓ Correct Answer & ExplanationScenario Based

Correct Answer

aws:PrincipalTag/ProjectID and aws:ResourceTag/ProjectID

Why This Answer Is Correct

ABAC uses tags on both the identity (principal) and the resource. By comparing these tags in the IAM policy condition, you can grant access dynamically.

📚 What This Question Tests

This question evaluates your knowledge of Scenario Based — a core concept tested in AWS Certified DevOps Engineer – Professional (DOP-C02). Understanding Scenario Based 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.