exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 26 discussion

A company hosts a security auditing application in an AWS account. The auditing application uses an IAM role to access other AWS accounts. All the accounts are in the same organization in AWS Organizations.
A recent security audit revealed that users in the audited AWS accounts could modify or delete the auditing application's IAM role. The company needs to prevent any modification to the auditing application's IAM role by any entity other than a trusted administrator IAM role.
Which solution will meet these requirements?

  • A. Create an SCP that includes a Deny statement for changes to the auditing application's IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the SCP to the root of the organization.
  • B. Create an SCP that includes an Allow statement for changes to the auditing application's IAM role by the trusted administrator IAM role. Include a Deny statement for changes by all other IAM principals. Attach the SCP to the IAM service in each AWS account where the auditing application has an IAM role.
  • C. Create an IAM permissions boundary that includes a Deny statement for changes to the auditing application's IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the permissions boundary to the audited AWS accounts.
  • D. Create an IAM permissions boundary that includes a Deny statement for changes to the auditing application’s IAM role. Include a condition that allows the trusted administrator IAM role to make changes. Attach the permissions boundary to the auditing application's IAM role in the AWS accounts.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jqso234
Highly Voted 1 year, 6 months ago
Selected Answer: A
SCPs (Service Control Policies) are the best way to restrict permissions at the organizational level, which in this case would be used to restrict modifications to the IAM role used by the auditing application, while still allowing trusted administrators to make changes to it. Options C and D are not as effective because IAM permission boundaries are applied to IAM entities (users, groups, and roles), not the account itself, and must be applied to all IAM entities in the account.
upvoted 20 times
...
Serial_X25
Most Recent 3 weeks, 5 days ago
Selected Answer: D
A and B are wrong because "SCP never grants permissions", as stated at https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html?icmpid=docs_orgs_console#scp-effects-on-permissions. C is wrong because you can't attach the permission boundary to an AWS account, only to IAM entities, https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html#access_policies_boundaries-eval-logic. D is the correct option.
upvoted 1 times
Serial_X25
3 weeks, 2 days ago
I'm sorry Folks! I'm wrong the right option is A and here is the solution: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples_general.html#example-scp-restricts-with-exception I thought it was suggesting to add two statements one allow and another deny, but in fact, option A is suggesting to add one Deny with the condition parameter.
upvoted 1 times
...
...
4555894
7 months, 1 week ago
Selected Answer: A
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html?icmpid=docs_orgs_console
upvoted 1 times
...
zijo
7 months, 3 weeks ago
Service Control Policies (SCPs) in AWS Organizations can be used to enforce maximum permissions for member accounts. They don't directly grant permissions or create permission boundaries. So C & D can be ruled out.
upvoted 1 times
...
dzn
8 months ago
Selected Answer: A
SCPs are applied at the account or OU level and affect all IAM entities within that organization. IAM Permission boundaries are applied individually to specific IAM roles or users.
upvoted 3 times
...
thanhnv142
8 months, 2 weeks ago
Selected Answer: A
A is correct: < prevent any modification to the auditing application's IAM role> means scp A: <Include a condition that allows the trusted administrator IAM role> this is not the same as allow statement. So this option still valid B: SCP does not have allow statement C and D: These options make modification to permission boundary of the auditing application's IAM role, which is irrelavant. Other accounts may or may not assume this role.
upvoted 1 times
thanhnv142
8 months, 2 weeks ago
B is not correct because can only attach scp to AWS org
upvoted 1 times
vn_thanhtung
5 months, 1 week ago
B wrong because SCP not support principals
upvoted 1 times
...
...
...
flameme
1 year ago
AWS supports permissions boundaries for IAM entities (users or roles)
upvoted 1 times
...
aussiehoa
1 year, 2 months ago
in option A, shouldn't the first half override the second half. Explicitly deny everybody( will not matter if later it says Allow Admin ).
upvoted 2 times
nlw
11 months, 2 weeks ago
I think its because its not two policies. Its only one policy which applies when condition is account not equal security admin account. So A should work
upvoted 4 times
...
...
ogwu2000
1 year, 3 months ago
A seems ok. For C its wrong as you don't use permission boundary to deny permission. You use it to specify what and what can be done and not what cannot be done.
upvoted 1 times
...
madperro
1 year, 4 months ago
Selected Answer: A
For AWS Organizations the SCP is the way to go. So A.
upvoted 1 times
...
bcx
1 year, 4 months ago
Selected Answer: A
An SCP would accomplish efficiently the task for all the accounts from a single place. A permission boundary is not for that, it would have to be configured in each account and for all the users IMHO.
upvoted 2 times
...
rdoty
1 year, 4 months ago
Selected Answer: A
It is A without a question. SCP is far more efficient.
upvoted 1 times
...
qan1257
1 year, 4 months ago
Selected Answer: A
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html?icmpid=docs_orgs_console
upvoted 1 times
...
ParagSanyashiv
1 year, 5 months ago
Selected Answer: C
C is more suitable option here to restrict permission.
upvoted 1 times
...
5aga
1 year, 5 months ago
Selected Answer: C
A permissions boundary is designed to restrict permissions on IAM principals, such as roles, such that permissions don’t exceed what was originally intended. The permissions boundary uses an AWS or customer managed policy to restrict access, and it’s similar to other IAM policies you’re familiar with because it has resource, action, and effect statements. A permissions boundary alone doesn’t grant access to anything. Rather, it enforces a boundary that can’t be exceeded, even if broader permissions are granted by some other policy attached to the role. https://aws.amazon.com/blogs/security/when-and-where-to-use-iam-permissions-boundaries/
upvoted 1 times
...
alce2020
1 year, 6 months ago
mi vote is for C as the right answer
upvoted 1 times
...
asfsdfsdf
1 year, 6 months ago
Selected Answer: A
Only valid solution is A, for C or D you need to attach boundaries on all IAM roles/users not the account or the role itself.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago