MLA-C01 Question 354
Single answerYou are building a machine learning model deployment pipeline using AWS services. Your team uses AWS CodeCommit to manage model training scripts and relies on AWS CodePipeline to automate the workflow from code changes to model deployment. During a recent code update in the CodeCommit repository, you want to ensure that any changes automatically trigger the pipeline to retrain the model and deploy it. Which AWS service integration is required to enable this functionality?
- A
AWS CodeBuild for compiling and testing the updated code
- B
Amazon S3 to store the retrained model artifacts
- C
An Amazon CloudWatch Event Rule to trigger the pipeline on repository changes
- D
Amazon SageMaker for automatically retraining the model
Show answer and explanation
Correct answer: C
Explanation
To automate code-to-deployment workflows triggered by changes in the repository, an Amazon CloudWatch Event Rule is configured to monitor the AWS CodeCommit repository for updates and trigger the CodePipeline. This integration ensures that changes in the repository seamlessly start the retraining and deployment process.
- A. Incorrect.
While AWS CodeBuild is part of the pipeline for compiling and testing ML code, it does not handle triggering the pipeline based on repository changes.
- B. Incorrect.
Amazon S3 is often used to store model artifacts, but it does not relate to triggering the pipeline when code changes occur.
- C. Correct.
An Amazon CloudWatch Event Rule is required to detect changes in the CodeCommit repository and trigger the CodePipeline for further automation.
- D. Incorrect.
Amazon SageMaker is used for training and deploying machine learning models, but it does not directly handle triggering the pipeline based on code changes.