nerdexam
Amazon

DOP-C02 · Question #306

A company has multiple AWS accounts. The company uses AWS IAM Identity Center that is integrated with a third-party SAML 2.0 identity provider (IdP). The attributes for access control feature is…

The correct answer is C. Option C. The policy shown in the second image uses the condition aws:PrincipalTag/department and compares it with the aws:ResourceTag/ department. This setup ensures that only users whose department (from the SAML identity provider) matches the department tag on the EC2 instance will be…

Submitted by layla.eg· Mar 6, 2026Security and Compliance

Question

A company has multiple AWS accounts. The company uses AWS IAM Identity Center that is integrated with a third-party SAML 2.0 identity provider (IdP). The attributes for access control feature is enabled in IAM Identity Center. The attribute mapping list maps the department key from the IdP to the ${path:enterprise.department} attribute. All existing Amazon EC2 instances have a d1, d2, d3 department tag that corresponds to three company's departments. A DevOps engineer must create policies based on the matching attributes. The policies must grant each user access to only the EC2 instances that are tagged with the user's respective department name. Which condition key should the DevOps engineer include in the custom permissions policies to meet these requirements?

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(24 responses)
  • A
    13% (3)
  • B
    25% (6)
  • C
    54% (13)
  • D
    8% (2)

Explanation

The policy shown in the second image uses the condition aws:PrincipalTag/department and compares it with the aws:ResourceTag/ department. This setup ensures that only users whose department (from the SAML identity provider) matches the department tag on the EC2 instance will be allowed access. The ${aws:ResourceTag/department} refers to the department tag on the EC2 instances, while ${aws:PrincipalTag/department} refers to the department attribute mapped from the IdP via IAM Identity Center. This matches the requirement for controlling access based on the department

Topics

#Attribute-Based Access Control (ABAC)#IAM Identity Center (SSO)#IAM policies#Resource tagging

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice