Courseiva

AI-102 Practice Question: Implement knowledge mining and information extraction solutions

You are creating an Azure AI Search index that will store documents enriched with key phrases and sentiment scores. You need to define the index fields to store these enriched values. The key phrases should be searchable and retrievable, and the sentiment score should be filterable and sortable. Which field definitions should you use?

⚠ Common exam trap

The trap here is overlooking the retrievable attribute for key phrases or choosing an incorrect data type for sentiment score.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

keyPhrases: Collection(Edm.String) with searchable=true, retrievable=true; sentimentScore: Edm.Double with filterable=true, sortable=true, retrievable=true.

Key phrases are a collection of strings, so Collection(Edm.String) is correct. They must be searchable and retrievable to enable full-text search and to return them in results. Sentiment score is a numeric value, so Edm.Double is suitable. It must be filterable and sortable, and retrievable to be included in results. The combination of these attributes satisfies the scenario's requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    keyPhrases: Collection(Edm.String) with searchable=true, filterable=true; sentimentScore: Edm.Double with filterable=true, sortable=true.

    Why it's wrong here

    This option sets keyPhrases as searchable and filterable, which is acceptable, but it omits retrievable, meaning the field values will not be returned in search results. Retrievable is required to display key phrases. Sentiment score is correctly configured, but the missing retrievable for key phrases makes this option incorrect for the scenario.

  • ✓

    keyPhrases: Collection(Edm.String) with searchable=true, retrievable=true; sentimentScore: Edm.Double with filterable=true, sortable=true, retrievable=true.

    Why this is correct

    Key phrases are typically a collection of strings, so Collection(Edm.String) is appropriate. Marking it searchable and retrievable allows full-text search and retrieval in results. Sentiment scores are numeric, so Edm.Double works, and marking it filterable and sortable enables filtering and sorting. This definition meets all requirements.

  • ✗

    keyPhrases: Edm.String with searchable=true, retrievable=true; sentimentScore: Edm.Int32 with filterable=true, sortable=true, retrievable=true.

    Why it's wrong here

    Key phrases are multiple values, so a single Edm.String field cannot store them all without concatenation, which would hinder search. Sentiment scores can be decimal, so Edm.Int32 may lose precision. Thus, this definition does not correctly represent the data types and may not support the required operations effectively.

  • ✗

    keyPhrases: Collection(Edm.String) with filterable=true, retrievable=true; sentimentScore: Edm.Double with searchable=true, retrievable=true.

    Why it's wrong here

    Key phrases need to be searchable, not just filterable. Filterable on a collection allows exact matches but not full-text search. Sentiment score does not need to be searchable; it needs to be filterable and sortable. This option misses the searchable attribute for key phrases and includes unnecessary searchable for sentiment, failing the requirements.

About these practice questions

Courseiva writes every AI-102 question from scratch — 761 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.