AI-102 Question 371
Select 3You are designing an Azure Cognitive Search skillset to process unstructured data stored in Azure Blob Storage. The skillset requires the use of a custom skill to perform sentiment analysis on text data that is not supported by the built-in Cognitive Services skills. What steps are required to implement the custom skill and include it in the skillset?
- A
Develop a custom web API that implements the desired functionality and deploy it to an accessible endpoint.
- B
Register the custom skill as an Azure Cognitive Search skill using the Azure portal.
- C
Add an entry for the custom skill in the skillset JSON definition with the required input and output fields.
- D
Enable the 'Custom Skills' option in the Azure Cognitive Search indexer configuration.
- E
Test the custom skill independently before integrating it into the skillset to ensure it produces the expected output.
Show answer and explanation
Correct answers: A, C, E
Explanation
To implement a custom skill in Azure Cognitive Search, you must first develop the custom logic as a web API and make it accessible. Then, you define the custom skill in the skillset JSON configuration, specifying the API endpoint and input/output mappings. Testing the custom skill independently ensures that it works as expected before integration. There is no option to register custom skills directly in the Azure portal or to enable them through the indexer configuration.
- A. Correct.
Correct: Developing a custom web API is necessary to implement the desired functionality for the custom skill. This API must be accessible for the skillset to call it during indexing.
- B. Incorrect.
Incorrect: Azure does not provide a direct option to register custom skills in the portal. Custom skills are added via the skillset definition in JSON or programmatically.
- C. Correct.
Correct: You need to define the custom skill in the skillset JSON configuration, specifying its inputs, outputs, and the endpoint of the custom web API.
- D. Incorrect.
Incorrect: There is no 'Custom Skills' option to enable in the Azure Cognitive Search indexer configuration. Custom skills are included through the skillset definition.
- E. Correct.
Correct: Testing the custom skill independently ensures its functionality before it is integrated into the Azure Cognitive Search skillset.