AI-102 Question 362
Select 2You are building an Azure Cognitive Search solution for an e-commerce platform to enable users to search for products. You have created a data source that connects to an Azure Cosmos DB containing product data. You now need to create an index. Which of the following steps are necessary to successfully create the index and make it ready for use?
- A
Define the index schema, including fields, data types, and attributes like searchable or filterable.
- B
Configure the indexer to crawl the data source and populate the index.
- C
Set up query scoring profiles to customize search result ranking.
- D
Assign a pricing tier for the Azure Cognitive Search service.
- E
Choose a query language, such as KQL or SQL, and bind it to the index.
Show answer and explanation
Correct answers: A, B
Explanation
Creating an index in Azure Cognitive Search involves defining the schema that structures the data and configuring an indexer to populate the index from a connected data source. Query scoring profiles, pricing tiers, and query languages are separate configurations that are not mandatory for the basic creation of an index.
- A. Correct.
Defining the index schema is mandatory because it determines the structure of the index, including fields and attributes that dictate how data is stored and queried.
- B. Correct.
Configuring the indexer is required to pull data from the data source into the index. Without this step, the index remains empty and cannot serve search queries.
- C. Incorrect.
While query scoring profiles are useful for customizing the ranking of results, they are not required to create an index. This step can be done after the index is set up and populated.
- D. Incorrect.
Assigning a pricing tier is related to provisioning the Azure Cognitive Search service, not the creation of an index itself. The pricing tier is defined when the service is created.
- E. Incorrect.
Choosing a query language is not part of the index creation process. Azure Cognitive Search supports a query syntax natively, and binding a query language is not an option.