Courseiva

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

Exhibit

Refer to the exhibit.
{
  "value": [
    {
      "name": "myindexer",
      "status": "running",
      "lastResult": {
        "status": "success",
        "errorCount": 0,
        "warningCount": 5
      }
    }
  ]
}

You run the Azure CLI command 'az search indexer list --search-service mysearch --query "[].{name:name, status:status, lastResult:lastResult}"' and get the above output. Your indexer shows 5 warnings. What should you do to investigate the warnings?

⚠ Common exam trap

It's easy for candidates to assume the 'list' command provides full details, but it only returns a filtered projection; the 'show' command is required to access the nested 'warnings' array, which is a common pattern in Azure CLI where list commands return summaries and show commands return full objects.

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

Run 'az search indexer show --name myindexer' and review the 'warnings' array in the output.

The 'az search indexer list' command with the query you used returns a summary of indexer status and last result, but it does not include the detailed 'warnings' array. To investigate the 5 warnings, you need to use 'az search indexer show --name myindexer', which returns the full indexer execution history, including a 'warnings' array that lists each warning with its message and details. This allows you to understand the nature of each warning and take corrective action if needed.

Answer analysis

Option-by-option breakdown

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

  • Run 'az search indexer run --name myindexer' to trigger a new run.

    Why it's wrong here

    Running again may produce the same warnings; you need to see the existing warnings.

  • Run 'az search indexer show --name myindexer' and review the 'warnings' array in the output.

    Why this is correct

    The indexer show command returns detailed execution history including warnings.

  • Ignore the warnings because they are not errors.

    Why it's wrong here

    Warnings may indicate data quality issues that should be investigated.

  • Run 'az search indexer reset --name myindexer' to reset the indexer.

    Why it's wrong here

    Resetting re-runs the indexer but does not show warnings; warnings are per execution.

About these practice questions

This AI-102 question is part of Courseiva's 945-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.