AWS Certified Security – Specialty — Question 44

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because writing a script that leverages the GenerateCredentialReport, GetCredentialReport, and UpdateAccessKey APIs allows for automated checking and disabling of old access keys. Option A requires manual review, which does not automate the process, while option B only restricts access rather than disabling the keys. Option D, while a good approach, is more complex and indirect than simply using the APIs for direct management.