MLA-C01 Question 356
Single answerA data science team is building and deploying machine learning models using AWS. They store their code in AWS CodeCommit and utilize AWS CodePipeline for automated CI/CD processes. During the deployment phase, the team notices that changes made to the model code are not being reflected in the deployed application. What could be the most likely reason for this issue?
- A
The AWS CodePipeline does not have the necessary permissions to pull the latest code from AWS CodeCommit.
- B
The model training step in the pipeline is not retraining the model with the updated code.
- C
The deployment stage in the pipeline is not configured to use the latest build artifacts.
- D
AWS CodePipeline cannot integrate with AWS CodeCommit for version control.
Show answer and explanation
Correct answer: C
Explanation
The issue arises from the deployment stage in AWS CodePipeline not using the latest build artifacts. In CI/CD pipelines, each stage must correctly reference the outputs from the previous stages. If the deployment stage does not point to the latest build, the changes made in the code repository (AWS CodeCommit in this case) will not propagate to the deployed application. Configuring the deployment stage correctly resolves this issue.
- A. Incorrect.
This is a valid possibility because if the CodePipeline lacks permissions, it cannot access the latest code, but this scenario would typically result in an error during pipeline execution, not silent failures.
- B. Incorrect.
While retraining the model is essential, this is not directly related to the issue since the changes to the code need to first propagate through the pipeline stages before retraining occurs.
- C. Correct.
This is the correct answer. If the deployment stage in the pipeline is not configured to point to the latest build artifacts, the changes in the code will not reflect in the deployed application.
- D. Incorrect.
This is incorrect. AWS CodePipeline integrates seamlessly with AWS CodeCommit, and this is not the cause of the issue described.