Question 443:
Several teams share one AWS account, and there is a large number of IAM roles. You need a method to periodically check each IAM role and identify unused roles based on a time window that you define. Then you can determine if some roles are obsolete and can be safely removed. Which option is the most appropriate?
Answer options:
A.Periodically trigger a CloudWatch Event rule. Register a Lambda function to evaluate all the IAM roles. B.Enable AWS Config and check the IAM usage of each IAM role in AWS Config resources. C.Periodically trigger an AWS Config rule that invokes a Lambda function. The Lambda function checks the status of each IAM role. D.Setup Amazon Athena to evaluate the usage of IAM roles from the AWS CloudTrail logs.