exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 126 discussion

Exam question from Amazon's AWS-SysOps
Question #: 126
Topic #: 1
[All AWS-SysOps Questions]

An organization (Account ID 123412341234. has attached the below mentioned IAM policy to a user. What does this policy statement entitle the user to perform?

  • A. The policy allows the IAM user to modify all IAM users' access keys using the console, SDK, CLI or APIs
  • B. The policy allows the IAM user to modify all IAM users' credentials using the console, SDK, CLI or APIs
  • C. The policy allows the IAM user to modify all credentials using only the console
  • D. The policy allows the IAM user to modify the IAM user's own credentials using the console, SDK, CLI or APIs
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
AWS Identity and Access Management is a web service which allows organizations to manage users and user permissions for various AWS services. If the organization (Account ID 123412341234. wants some of their users to manage keys (access and secret access keys. of all IAM users, the organization should set the below mentioned policy which entitles the IAM user to modify keys of all IAM users with CLI, SDK or API.

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
awsnoob
Highly Voted 1 year, 1 month ago
the correct question is: An organization (Account ID 123412341234. has attached the below mentioned IAM policy to a user. What does this policy statement entitle the user to perform? { “Version”: “2012-10-17”, “Statement”: [{ “Sid”: “AllowUsersAllActionsForCredentials”, “Effect”: “Allow”, “Action”: [ “iam:*LoginProfile”, “iam:*AccessKey*”, “iam:*SigningCertificate*” ], “Resource”: [“arn:aws:iam:: 123412341234:user/${aws:username}”] }] } Ans: D. The policy allows the user to modify all IAM user’s password, sign in certificates and access keys using only CLI, SDK or APIs
upvoted 7 times
AMohanty
1 year ago
If in Resources you have the condition ${aws:username} How can it be for all users
upvoted 1 times
...
...
FHU
Most Recent 8 months, 3 weeks ago
Correct answer is (D) as stated in this page: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_permissions-required.html "To allow users to perform any action related just to access keys, you can use iam:*AccessKey* in the Action element of a policy statement. This gives the user permission to perform the CreateAccessKey, DeleteAccessKey, GetAccessKeyLastUsed, ListAccessKeys, and UpdateAccessKey actions. (If an action is added to IAM in the future that has "AccessKey" in the name, using iam:*AccessKey* for the Action element will also give the user permission to that new action.) The following example shows a policy that allows users to perform all actions pertaining to their own access keys (replace account-id with your AWS account ID)."
upvoted 1 times
...
xxxdolorxxx
1 year ago
I think A. The policy states an Access key. Answer A is the only answer that talks about access keys.
upvoted 1 times
...
davidy2020
1 year ago
Ans: D In this case the ARN includes a variable (${aws:username}) that resolves to the current user's name https://docs.aws.amazon.com/IAM/latest/UserGuide/access_permissions-required.html
upvoted 3 times
...
sunilpanda
1 year ago
The correct choice is not present - closest one is (a) but can not modify all Right choice should be - The policy allows the user to Get/Create/Update/Delete the user’s own access keys using only CLI, SDK or APIs. aws:username This is a string containing the friendly name of the current user—see the chart that follows.
upvoted 1 times
...
NguyenLC1
1 year ago
My choice is A Refer to: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_permissions-required.html To allow users to perform any action related just to access keys, you can use iam:*AccessKey* in the Action element of a policy statement. This gives the user permission to perform the CreateAccessKey, DeleteAccessKey, GetAccessKeyLastUsed, ListAccessKeys, and UpdateAccessKey actions.
upvoted 1 times
NguyenLC1
1 year ago
I'll choose D :( The keywords are "{user:xxX}" and user's own credentials. "A" answer contain "users" -> cannot modify credentials of others.
upvoted 1 times
...
...
hussainbh
1 year ago
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_my-sec-creds-self-manage-no-mfa.html A looks the correct ans
upvoted 1 times
kenkct
1 year ago
D is correct answer. “Resource”: [“arn:aws:iam:: 123412341234:user/${aws:username}”] specify this policy only apply to his own account.
upvoted 2 times
kenkct
1 year ago
Sorry, answer is A, as blanket mean all user.
upvoted 1 times
...
...
...
onlinebaba
1 year ago
D When you use a policy variable for the user name like this, you don't have to have a separate policy for each individual user. Instead, you can attach this new policy to an IAM group that includes everyone who should be allowed to manage their own access keys. When a user makes a request to modify his or her access key, IAM substitutes the user name from the current request for the ${aws:username} variable and evaluates the policy.
upvoted 3 times
...
jadoxo
1 year ago
Answer is D
upvoted 1 times
...
awscertified
1 year ago
D. The policy allows the IAM user to modify the IAM user’s own credentials using the console, SDK, CLI or
upvoted 4 times
...
badrobot
1 year, 1 month ago
D is correct.
upvoted 1 times
badrobot
1 year ago
https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html
upvoted 1 times
...
...
aksliveswithaws
1 year, 1 month ago
D is correct Reference item = aws:username This is a string containing the friendly name of the current user—see the chart that follows. from Reference docs = https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html
upvoted 4 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