ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 225 - DOP-C02 discussion

Report
Export

A company uses AWS Organizations to manage its AWS accounts. The organization root has a child OU that is named Department. The Department OU has a child OU that is named Engineering. The default FullAWSAccess policy is attached to the root, the Department OU. and the Engineering OU.

The company has many AWS accounts in the Engineering OU. Each account has an administrative IAM role with the AdmmistratorAccess IAM policy attached. The default FullAWSAccessPolicy is also attached to each account.

A DevOps engineer plans to remove the FullAWSAccess policy from the Department OU The DevOps engineer will replace the policy with a policy that contains an Allow statement for all Amazon EC2 API operations.

What will happen to the permissions of the administrative IAM roles as a result of this change'?

A.
All API actions on all resources will be allowed
Answers
A.
All API actions on all resources will be allowed
B.
All API actions on EC2 resources will be allowed. All other API actions will be denied.
Answers
B.
All API actions on EC2 resources will be allowed. All other API actions will be denied.
C.
All API actions on all resources will be denied
Answers
C.
All API actions on all resources will be denied
D.
All API actions on EC2 resources will be denied. All other API actions will be allowed.
Answers
D.
All API actions on EC2 resources will be denied. All other API actions will be allowed.
Suggested answer: B

Explanation:

* Impact of Removing FullAWSAccess and Adding Policy for EC2 Actions:

The FullAWSAccess policy allows all actions on all resources by default. Removing this policy from the Department OU will limit the permissions that accounts within this OU inherit from the parent OU.

Adding a policy that allows only Amazon EC2 API operations will restrict the permissions to EC2 actions only.

* Permissions of Administrative IAM Roles:

The administrative IAM roles in the Engineering OU have the AdministratorAccess policy attached, which grants full access to all AWS services and resources.

Since SCPs are restrictions that apply at the organizational level, removing FullAWSAccess and replacing it with a policy allowing only EC2 actions means that for all accounts in the Engineering OU:

They will have full access to EC2 actions due to the new SCP.

They will be restricted in other actions that are not covered by the SCP, hence, non-EC2 API actions will be denied.

* Conclusion:

All API actions on EC2 resources will be allowed.

All other API actions will be denied due to the absence of a broader allow policy.

asked 16/09/2024
Audrey Buan
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first