AWS Certified Solutions Architect Professional SAP-C02 Practice Question

Your company uses Azure AD as its workforce identity provider and AWS IAM Identity Center for single sign-on to more than 50 AWS accounts that belong to one AWS Organizations organization.
Each AWS account hosts development Amazon EC2 instances for many internal projects.

Security requirements

  • Developers must be able to start and stop EC2 instances only for the projects to which they are assigned.
  • A developer's assigned project is stored in the projectCode attribute of the Azure AD user object.
  • New projects must be onboarded without creating additional IAM roles or permission sets.

Which approach meets these requirements with the LEAST administrative effort?

  • Create a separate permission set for every project that contains an inline policy with the project's hard-coded tag value, and assign developers to their project's permission set.

  • Create one IAM role per project in every AWS account. Configure Identity Center assignments so that developers can assume the appropriate roles, and attach an IAM policy to each role that limits start and stop actions to the project's resources.

  • Enable attributes for access control in IAM Identity Center, map the Azure AD projectCode attribute to an access-control attribute named ProjectCode, tag each EC2 instance with ProjectCode=<projectCode>, and create one permission set whose IAM policy allows ec2:StartInstances and ec2:StopInstances only when ec2:ResourceTag/ProjectCode equals ${aws:PrincipalTag/ProjectCode}.

  • Attach resource-based policies directly to EC2 instances that reference the projectCode attribute in the request context to allow or deny the start and stop actions.

AWS Certified Solutions Architect Professional SAP-C02
Design Solutions for Organizational Complexity
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot