MLA-C01 Question 411
Select 2A data science team wants to monitor and automate the retraining of their machine learning model whenever a new dataset is uploaded to an S3 bucket. They also need to track all related API calls and activities for compliance purposes. How can AWS CloudTrail be utilized to achieve this requirement?
- A
Enable AWS CloudTrail to log all API calls and events for the S3 bucket, and configure an Amazon EventBridge rule to trigger a retraining workflow.
- B
Use AWS CloudTrail logs to directly trigger the model retraining workflow by specifying the target Lambda function.
- C
Set up AWS CloudTrail to log S3 events, store the logs in another S3 bucket, and use a Lambda function to parse the logs to trigger the retraining workflow.
- D
Integrate AWS CloudTrail with AWS Config to monitor the S3 bucket activity and invoke retraining workflows via AWS Step Functions.
- E
Enable CloudTrail Insights to automatically detect unusual activity in the S3 bucket and trigger model retraining.
Show answer and explanation
Correct answers: A, C
Explanation
To monitor and automate retraining activities, AWS CloudTrail can be used to log API calls and events related to the S3 bucket. These logs can then trigger workflows using services like Amazon EventBridge or Lambda. Option 1 leverages CloudTrail and EventBridge to set up an automated retraining pipeline, while Option 3 uses CloudTrail logs stored in S3 and processed by Lambda for the same purpose. Options 2, 4, and 5 describe either unsupported or inappropriate use cases for CloudTrail in this scenario.
- A. Correct.
This is correct. AWS CloudTrail can log API calls and events for the S3 bucket, and Amazon EventBridge can be configured to trigger a retraining workflow based on these logs.
- B. Incorrect.
This is incorrect. AWS CloudTrail itself does not have the capability to directly trigger a retraining workflow; it only logs API activity.
- C. Correct.
This is correct. CloudTrail logs can be stored in an S3 bucket, and a Lambda function can process these logs to trigger a retraining workflow when specific events occur.
- D. Incorrect.
This is incorrect. While AWS Config provides some monitoring capabilities, it is not designed to directly invoke retraining workflows based on CloudTrail logs.
- E. Incorrect.
This is incorrect. CloudTrail Insights is used for detecting unusual activity patterns, but it is not suitable for triggering routine workflows like model retraining.