Question 405 of 988

Quick Answer

The correct choice is to set the 'query' field to a blob prefix that corresponds to the folder containing PDF files. This works because Azure AI Search data sources for Azure Blob Storage use the query parameter to specify a virtual directory path or prefix, effectively filtering which blobs the indexer processes—though it does not support wildcard file extensions like "*.pdf". On the AI-102 exam, this tests your understanding that data source configuration controls scope at the container level, while file-type filtering is typically handled via indexer parameters like `excludedFileNameExtensions` or by organizing blobs into dedicated folders. A common trap is assuming you can filter by extension directly in the query field, but Azure Blob Storage requires a literal prefix path. Remember: the query field is a prefix, not a filter—think "folder path" instead of "file type" to avoid the wildcard pitfall.

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

This AI-102 practice question tests your understanding of implement knowledge mining and information extraction solutions. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.
```json
{
  "dataSource": {
    "name": "my-blob-datasource",
    "type": "azureblob",
    "credentials": {
      "connectionString": "DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=...;EndpointSuffix=core.windows.net"
    },
    "container": {
      "name": "documents",
      "query": ""
    }
  }
}
```

You have the above data source definition for Azure AI Search. You want to index only PDF files from the 'documents' container. How should you modify the data source?

Question 1easymultiple choice
Full question →

Exhibit

Refer to the exhibit.
```json
{
  "dataSource": {
    "name": "my-blob-datasource",
    "type": "azureblob",
    "credentials": {
      "connectionString": "DefaultEndpointsProtocol=https;AccountName=mystorage;AccountKey=...;EndpointSuffix=core.windows.net"
    },
    "container": {
      "name": "documents",
      "query": ""
    }
  }
}
```

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

Set the 'query' field to a blob prefix that corresponds to the folder containing PDF files.

To filter by file type, set a data change detection policy or use a container query. However, the simplest way is to set a file extraction filter or use a custom indexer parameter. Option D is correct: set the 'dataToExtract' to 'contentAndMetadata' and add a 'parsingMode' for PDF. But the best answer is to set a query parameter to filter by .pdf extension. Option A is incorrect because connection string doesn't filter. Option B is incorrect because container name can't have filters. Option C is correct: set the 'query' field to filter by .pdf. Actually, the query field in the container object can be used to specify a blob prefix. For example, "*.pdf" is not valid; you need to use a prefix. The correct approach is to set a custom indexer parameter 'parsingMode' to 'jsonArray'? No. The proper way is to set the 'dataToExtract' to 'contentAndMetadata' and use a skillset to filter. However, the simplest is to change the container query to filter by folder or prefix. Typically, you would set the container query to a folder that contains only PDFs. Option C is plausible: set the query to filter by .pdf extension. But note that blob storage does not support wildcard queries in the container query; you need to set a prefix. Option D is incorrect because you cannot set file type in connection string. The correct answer is C: set the 'query' field to a prefix that includes only PDFs. However, the exhibit shows empty query. To filter PDFs, you would set a prefix like 'pdf/' if they are in a folder. But the question expects to set the 'parsingMode' to 'jsonArray'? No. Let me think: Azure AI Search has a feature to filter by file type using the 'parsedContent' skill. But the simplest is to set a data change detection policy. Actually, the correct answer is: Option C: Set the 'query' field to a blob prefix that corresponds to PDF files. But since the exhibit has empty query, you can set it to a folder. However, the distractors: Option A: Change the connection string -> no. Option B: Change the container name -> no. Option C: Set the 'query' field to filter by .pdf extension -> this is not directly supported; you need to use a prefix. Option D: Add a 'fileExtension' parameter to the container -> not a valid property. The correct way is to use a custom indexer parameter 'excludedFileNameExtensions' or 'includedFileNameExtensions' in the indexer's parameters. So the answer is: modify the indexer parameters to include only PDF files. But the question asks to modify the data source. Since the data source does not support file extension filtering, the best answer is to change the container query to point to a folder that contains only PDFs. Option C is the closest. I'll go with C.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Set the 'query' field to a blob prefix that corresponds to the folder containing PDF files.

    Why this is correct

    Filters to that folder.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Change the container name to 'pdfs' and move all PDFs there.

    Why it's wrong here

    Requires moving files.

  • Add a 'fileExtension' property to the container object.

    Why it's wrong here

    Not a valid property.

  • Change the connection string to use a different storage account that contains only PDFs.

    Why it's wrong here

    Not practical.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Detailed technical explanation

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which AI-102 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

Related practice questions

Related AI-102 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Implement an agentic solution practice questions

Practise AI-102 questions linked to Implement an agentic solution.

Implement computer vision solutions practice questions

Practise AI-102 questions linked to Implement computer vision solutions.

Implement knowledge mining and information extraction solutions practice questions

Practise AI-102 questions linked to Implement knowledge mining and information extraction solutions.

Implement image and video processing solutions practice questions

Practise AI-102 questions linked to Implement image and video processing solutions.

Implement natural language processing solutions practice questions

Practise AI-102 questions linked to Implement natural language processing solutions.

Implement generative AI solutions practice questions

Practise AI-102 questions linked to Implement generative AI solutions.

Implement agentic AI solutions practice questions

Practise AI-102 questions linked to Implement agentic AI solutions.

Implement knowledge mining and document intelligence solutions practice questions

Practise AI-102 questions linked to Implement knowledge mining and document intelligence solutions.

Plan and manage an Azure AI solution practice questions

Practise AI-102 questions linked to Plan and manage an Azure AI solution.

Implement content moderation solutions practice questions

Practise AI-102 questions linked to Implement content moderation solutions.

AI-102 fundamentals practice questions

Practise AI-102 questions linked to AI-102 fundamentals.

AI-102 scenario practice questions

Practise AI-102 questions linked to AI-102 scenario.

Practice this exam

Start a free AI-102 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AI-102 question test?

Implement knowledge mining and information extraction solutions — This question tests Implement knowledge mining and information extraction solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Set the 'query' field to a blob prefix that corresponds to the folder containing PDF files. — To filter by file type, set a data change detection policy or use a container query. However, the simplest way is to set a file extraction filter or use a custom indexer parameter. Option D is correct: set the 'dataToExtract' to 'contentAndMetadata' and add a 'parsingMode' for PDF. But the best answer is to set a query parameter to filter by .pdf extension. Option A is incorrect because connection string doesn't filter. Option B is incorrect because container name can't have filters. Option C is correct: set the 'query' field to filter by .pdf. Actually, the query field in the container object can be used to specify a blob prefix. For example, "*.pdf" is not valid; you need to use a prefix. The correct approach is to set a custom indexer parameter 'parsingMode' to 'jsonArray'? No. The proper way is to set the 'dataToExtract' to 'contentAndMetadata' and use a skillset to filter. However, the simplest is to change the container query to filter by folder or prefix. Typically, you would set the container query to a folder that contains only PDFs. Option C is plausible: set the query to filter by .pdf extension. But note that blob storage does not support wildcard queries in the container query; you need to set a prefix. Option D is incorrect because you cannot set file type in connection string. The correct answer is C: set the 'query' field to a prefix that includes only PDFs. However, the exhibit shows empty query. To filter PDFs, you would set a prefix like 'pdf/' if they are in a folder. But the question expects to set the 'parsingMode' to 'jsonArray'? No. Let me think: Azure AI Search has a feature to filter by file type using the 'parsedContent' skill. But the simplest is to set a data change detection policy. Actually, the correct answer is: Option C: Set the 'query' field to a blob prefix that corresponds to PDF files. But since the exhibit has empty query, you can set it to a folder. However, the distractors: Option A: Change the connection string -> no. Option B: Change the container name -> no. Option C: Set the 'query' field to filter by .pdf extension -> this is not directly supported; you need to use a prefix. Option D: Add a 'fileExtension' parameter to the container -> not a valid property. The correct way is to use a custom indexer parameter 'excludedFileNameExtensions' or 'includedFileNameExtensions' in the indexer's parameters. So the answer is: modify the indexer parameters to include only PDF files. But the question asks to modify the data source. Since the data source does not support file extension filtering, the best answer is to change the container query to point to a folder that contains only PDFs. Option C is the closest. I'll go with C.

What should I do if I get this AI-102 question wrong?

Identify which AI-102 exam domain this question belongs to, then review the specific concept being tested. Practise related questions in that domain and focus on understanding why each wrong answer is tempting — not just why the correct answer is right.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AI-102 practice questions

Last reviewed: Jun 20, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.