Q222.During an audit a Security team discovered that a development team was putting IAM user secret access keys in their code and then committing it to an AWS Code Commit repository. The Security team wants to automatically find and remediate instances of this security Vulnerability.Which solution will ensure that the credentials are appropriately secured automatically?
A.Run a script nightly using AWS Systems Manager Run Command to search for credentials on the development instances. If found use AWS Secrets Manager to rotate the credentials B.Use a scheduled AWS Lambda function to download and scan the application code from Code Commit If credentials are found generate new credentials and store them in AWS KMS C.Configure Amazon Macie to scan for credentials in Code Commit repositories. If credentials are found trigger an AWS Lambda function to disable the credentials and notify the user. D.Configure a Code Commit trigger to invoke an AWS Lambda function to scan new code submissions for credentials. If credentials are found disable them in AWS IAM and notify the user.正确答案D