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 215 discussion

A cloud team uses AWS Organizations and AWS IAM Identity Center (AWS Single Sign-On) to manage a company's AWS accounts. The company recently established a research team. The research team requires the ability to fully manage the resources in its account. The research team must not be able to create IAM users.

The cloud team creates a Research Administrator permission set in IAM Identity Center for the research team. The permission set has the AdministratorAccess AWS managed policy attached. The cloud team must ensure that no one on the research team can create IAM users.

Which solution will meet these requirements?

  • A. Create an IAM policy that denies the iam:CreateUser action. Attach the IAM policy to the Research Administrator permission set.
  • B. Create an IAM policy that allows all actions except the iam:CreateUser action. Use the IAM policy to set the permissions boundary for the Research Administrator permission set.
  • C. Create an SCP that denies the iam:CreateUser action. Attach the SCP to the research team's AWS account.
  • D. Create an AWS Lambda function that deletes IAM users. Create an Amazon EventBridge rule that detects the IAM CreateUser event. Configure the rule to invoke the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
CloudHell
Highly Voted 1 year, 1 month ago
Selected Answer: C
It's C for me, here is a link with a similar scenario: https://asecure.cloud/a/scp_deny_iam_user_creation_w_exception/
upvoted 8 times
...
dkp
Highly Voted 1 year ago
Selected Answer: C
While IAM policies can deny actions, they are typically attached to individual users or roles. In this scenario, you want to restrict user creation across the entire research team's account, making an SCP the more appropriate choice.
upvoted 7 times
...
teo2157
Most Recent 3 months, 1 week ago
Selected Answer: A
A as the restriction just needs to be applied to the research team but not the whole account users
upvoted 2 times
...
MrTizz
3 months, 2 weeks ago
Selected Answer: A
The wording is that only the research team should not be allowed to create users. This is A as the Permission Set will apply to just them. If you choose C it's an account wide deny so no other user or admins would be able to create a user which is outside the scope of the question.
upvoted 3 times
...
spring21
3 months, 3 weeks ago
Selected Answer: A
IAM Policy to Deny iam:CreateUser An IAM policy is applied to individual IAM users, groups, or roles within an AWS account. Here's an example policy that denies the iam:CreateUser action: IAM Policy JSON json Copy code { "Version": "2012-10-17", "Statement": [ { "Effect": "Deny", "Action": "iam:CreateUser", "Resource": "*" } ] } Steps to Attach IAM Policy to Research Administrator Permission Set: Navigate to AWS IAM Identity Center (SSO). Select the Permission Sets section. Choose the Research Administrator permission set. Attach the custom policy above to the permission set by selecting Add permissions → Custom policy.
upvoted 3 times
spring21
3 months, 3 weeks ago
Comparison: IAM Policy vs SCP Aspect IAM Policy SCP Scope Affects only the user, group, or role it is attached to. Applies to all users, roles, and policies within the target account or OU. Use Case Granular control within an account. Broad guardrails across accounts or OUs. Hierarchy Impact Does not affect parent accounts or organization. Enforces policies across all child accounts. Effect Denies specific actions only for targeted users or groups. Overrides any permissions granted at any level within the account.
upvoted 1 times
...
...
Impromptu
5 months ago
Selected Answer: A
A meets the requirements. C would deny CreateUser for all the IAM entities in the account, not only the research team
upvoted 3 times
...
[Removed]
8 months, 1 week ago
Selected Answer: C
c for me
upvoted 2 times
...
GripZA
8 months, 1 week ago
Selected Answer: A
For those who selected C, why would you create ab SCP that will deny any IAM user from creating another IAM when the question clearly states only the research team shouldn't be able to create an IAM user? the deny policy will restrict only the Research Administrator permission set, which is what we want.
upvoted 2 times
...
jamesf
8 months, 4 weeks ago
Selected Answer: C
i go for C just make sure no one can create account scp also can create with exception as mentioned by @CloudHell
upvoted 3 times
...
tgv
9 months, 1 week ago
Selected Answer: A
I'll go for A as the question says: "The cloud team must ensure that no one on the research team can create IAM users." C will block everybody (not just the research team)
upvoted 5 times
tgv
9 months, 1 week ago
even thoguh xdkonorek2 has a valid point. just flip a coin if you get this question in the exam
upvoted 1 times
...
...
xdkonorek2
9 months, 3 weeks ago
Selected Answer: C
C, A is not enough due research team still could create iam role with that allows him to create iam user and e.g. invoke lambda that does it for him obviously unwanted implication is that no one in this account can create IAM users even admins, but still it fulfills the requirements
upvoted 4 times
...
that1guy
11 months, 1 week ago
Selected Answer: A
A, only the research team shouldn't be able to create IAM users.
upvoted 4 times
...
seetpt
11 months, 3 weeks ago
Selected Answer: C
C for me
upvoted 3 times
...
c3518fc
12 months ago
Selected Answer: C
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_attach.html
upvoted 4 times
...
tristan_07
1 year ago
Selected Answer: C
C is the answer. IAM policy is not as scalable or centralized as using an SCP. You can attach an SCP to the organization root, to an organizational unit (OU), or directly to an account https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_attach.html
upvoted 5 times
...
WhyIronMan
1 year ago
Selected Answer: A
A is the correct option since you can not apply SCP directly to an AWS Account (need to be OU)
upvoted 2 times
HayLLlHuK
1 year ago
You can attach an SCP to the organization root, to an organizational unit (OU), or directly to an account. https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_attach.html
upvoted 5 times
...
...
rkddkwlrkwhgdk
1 year ago
Selected Answer: A
SCP can be applied to an OU. Therefore, the answer is A.
upvoted 4 times
HayLLlHuK
1 year ago
You can attach an SCP to the organization root, to an organizational unit (OU), or directly to an account. https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_attach.html
upvoted 3 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