AI-102 Question 46
Select 4You are tasked with integrating Azure Cognitive Services into a CI/CD pipeline for a machine learning solution. The goal is to automate the deployment of a custom model that uses Azure Form Recognizer. Which steps are required to ensure the pipeline successfully deploys the model and updates the Azure Form Recognizer resource?
- A
Use an Azure Resource Manager (ARM) template to define the Azure Form Recognizer resource and integrate it into the pipeline.
- B
Configure the pipeline to train the custom model using Azure Form Recognizer's REST API before deployment.
- C
Include a step in the pipeline to retrieve the Azure Form Recognizer API key and endpoint using Azure Key Vault.
- D
Deploy the trained custom model directly to the Azure Form Recognizer resource using Azure Machine Learning CLI.
- E
Set up a monitoring step in the pipeline to validate the deployed model using test documents.
Show answer and explanation
Correct answers: A, B, C, E
Explanation
To integrate Azure Form Recognizer into a CI/CD pipeline, you need to automate the deployment process. This includes defining the resource using ARM templates, training the custom model using the REST API, securely managing credentials with Azure Key Vault, and validating the deployed model for accuracy and performance. These steps together ensure a robust and repeatable deployment process.
- A. Correct.
Using an ARM template allows you to automate the creation or update of the Azure Form Recognizer resource as part of the pipeline, ensuring consistency and repeatability.
- B. Correct.
Training the custom model using Azure Form Recognizer's REST API is necessary to prepare the model for deployment. Automating this step ensures that the pipeline can handle updates to the model.
- C. Correct.
Azure Key Vault is essential for securely retrieving sensitive information like the API key and endpoint for the Azure Form Recognizer resource during pipeline execution.
- D. Incorrect.
Azure Machine Learning CLI is not used to deploy custom models to Azure Form Recognizer. Instead, Form Recognizer's REST API is used for such operations.
- E. Correct.
Adding a monitoring step to validate the deployed model ensures that the deployment meets accuracy and performance requirements, which is critical for production readiness.