exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 48 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 48
Topic #: 1
[All AWS Certified Security - Specialty Questions]

A Security Engineer has been asked to create an automated process to disable IAM user access keys that are more than three months old.
Which of the following options should the Security Engineer use?

  • A. In the AWS Console, choose the IAM service and select ג€Usersג€. Review the ג€Access Key Ageג€ column.
  • B. Define an IAM policy that denies access if the key age is more than three months and apply to all users.
  • C. Write a script that uses the GenerateCredentialReport, GetCredentialReport, and UpdateAccessKey APIs.
  • D. Create an Amazon CloudWatch alarm to detect aged access keys and use an AWS Lambda function to disable the keys older than 90 days.
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
hozefa
Highly Voted 3 years, 6 months ago
I had this question on my exam today. Correct answer is D
upvoted 28 times
JohnnieWalker
3 years, 3 months ago
The answer is C. D is wrong. You cannot use "cloudwatch alarms" for this, it should be a "cloudwatch event rule". You could totally write a script that uses the GenerateCredentialReport, GetCredentialReport, and UpdateAccessKey APIs. So, answer C is correct.
upvoted 6 times
...
arae
2 years, 6 months ago
how do you know you got the right answer? the exam questions dont show you the right answers?
upvoted 5 times
Tiwalade18
11 months, 1 week ago
Very spot on reply.
upvoted 1 times
...
...
Kdosec
3 years, 5 months ago
You are lying, AWS exam never show you that an answer is correct or not.
upvoted 19 times
szmulder
1 year, 5 months ago
if he get 100% correct then he know the answer is correct
upvoted 2 times
...
...
touryard
3 years, 6 months ago
Good to know it was an exam question. But, how are you endorsing this as the "correct answer"? What is the source to indicate D?
upvoted 8 times
...
...
BillyC
Highly Voted 3 years, 7 months ago
Automated process.. should be C
upvoted 27 times
rip72
3 years, 6 months ago
No, because C updates them. The question asks for them to be disabled.
upvoted 3 times
rip72
3 years, 6 months ago
On review, my reasoning was wrong, but C fails to meet the requirement of automating it.
upvoted 1 times
...
...
ucsdmiami2020
3 years, 6 months ago
please view the following youTube video to confirm the answer is D https://www.youtube.com/watch?v=0H8SM15YKEs
upvoted 13 times
francisco_guerra
2 years, 8 months ago
This is wrong because the cloudwatch event is only used to schedule the lambda not to trigger if the age is more than 3 months. I'll go with C
upvoted 3 times
yd_h
2 years ago
You can use a CloudWatch Events rule that matches on alarm evaluation changes and then triggers a Lambda function that parses the alarm event and creates a customized notification. https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-1/#:~:text=You%20can%20use%20a%20CloudWatch,and%20creates%20a%20customized%20notification.
upvoted 1 times
...
...
...
...
golf_life
Most Recent 3 months, 2 weeks ago
Selected Answer: D
I would say D, as you need it to be disabled.
upvoted 1 times
...
gafani3433
1 year, 2 months ago
Correct Answer : D Explanation: Create a CloudWatch Alarm: Set up a CloudWatch alarm to monitor the age of IAM access keys. CloudWatch allows you to create alarms based on custom metrics. Define the Threshold: Set the threshold for the alarm to trigger when access keys are older than three months (90 days). Use an AWS Lambda function: Configure the CloudWatch alarm to trigger an AWS Lambda function when the alarm state changes (e.g., when it breaches the threshold). Lambda Function to Disable Keys: In the Lambda function, use AWS SDK/APIs (such as listAccessKeys and updateAccessKey) to identify IAM users with access keys older than 90 days and disable those keys.
upvoted 1 times
...
awssecuritynewbie
1 year, 6 months ago
Selected Answer: D
the questions asks "disable IAM user " not to update so you need to go with D. it will disable the IAM users
upvoted 1 times
...
pal40sg
1 year, 7 months ago
Selected Answer: D
Based on this reference https://www.youtube.com/watch?v=0H8SM15YKEs automation process is possible, and D is my choice
upvoted 2 times
...
sprial02
1 year, 8 months ago
https://docs.aws.amazon.com/ko_kr/IAM/latest/UserGuide/id_credentials_access-keys.html surly A 100%
upvoted 1 times
sprial02
1 year, 8 months ago
Cloudwatch including log , events, metric , not alarm.. how to make aged access key?
upvoted 1 times
...
...
KRtoptech
1 year, 8 months ago
"A" is not automated process
upvoted 1 times
...
Kitman
1 year, 11 months ago
Selected Answer: C
Amazon CloudWatch alarm can not be used to trigger lambda function.
upvoted 1 times
...
Arvind_Kumar_Avinash
1 year, 11 months ago
It looks like the page content has not been written with UTF-8. On my laptop, I can see " ג€Usersג€. Review the ג€Access Key Ageג€" in this question.
upvoted 2 times
...
matrpro
1 year, 12 months ago
Selected Answer: C
C- must be the correct one. There is no CW metric to analyze the credentials age, so no alarm can be triggered. You can configure an event bridge rule to tun a lambda on a regular basis. That lambda, using code, can check the age of the credentials and change them. It is True that in C I miss a cron to run the script automatically from time to time but...Another cool approach would be to use Config -> https://docs.aws.amazon.com/config/latest/developerguide/access-keys-rotated.html
upvoted 2 times
...
HansD
2 years ago
I have passed the exam recently, and confirm that some questions on this site are word for word the same as the ones I have gotten in the exam. Which is a clear violation of the Amazon terms, so I will not comment on which ones exactly. However many answers on this site are comically bad, so at least the students still have some homework to do. Also, I confirm that you are not given detailed results, so the guy who keeps saying "I had this question in my exam, answer is X" is a fool.
upvoted 3 times
...
peddyua
2 years, 1 month ago
Not the best solution but possible to do it with AWS CloudWatch Alarm: Create a CloudWatch metric filter: Create a CloudWatch metric filter that extracts the creation date of IAM user access keys. Create a CloudWatch alarm: Create a CloudWatch alarm that triggers when the IAM user access key is more than three months old. Set up an AWS Lambda function: Set up an AWS Lambda function to disable the access key when the CloudWatch alarm triggers. Test the alarm: Test the CloudWatch alarm by generating some old IAM user access keys and verifying that they trigger the Lambda function to disable the access key. Monitor the alarm: Monitor the CloudWatch alarm and the Lambda function to ensure that they are functioning correctly and that access keys are being disabled as expected.
upvoted 1 times
...
sandeep4537
2 years, 2 months ago
A - No such option in available in AWS console B - IAM policy defines the permission, nothing related to user’s credentials C : This looks a right answer, but not meeting the automated process, Ref : https://docs.aws.amazon.com/cli/latest/reference/iam/update-access-key.html D: This meets all the criteria. I’ll go with D
upvoted 6 times
...
Bassell
2 years, 2 months ago
Selected Answer: D
Without any doubt its D. AWS will not have to tell you it's a Cloudwatch Event to choose the correct answer. https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-1/#:~:text=You%20can%20use%20a%20CloudWatch,and%20creates%20a%20customized%20notification.
upvoted 1 times
...
hubekpeter
2 years, 5 months ago
It's a vague question. C is missing trigger a need to mess with an API. Where in D, there's nothing like an age detection alarm. The only way i can imagine is to either use scheduled cloud watch event which will in turn trigger lambda with sdk and to the steps mentioned in c, or using AWS Config, triggering lambda as a remediation action.
upvoted 3 times
...
boooliyooo
2 years, 5 months ago
Selected Answer: C
https://docs.aws.amazon.com/IAM/latest/APIReference/API_UpdateAccessKey.html This operation can be used to disable a user's key as part of a key rotation workflow.
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