Courseiva

AI-102 Practice Question: Implement knowledge mining and document intelligence solutions

You are a developer for a legal firm. The firm uses Azure Cognitive Search to index legal documents. They have a custom skill that performs OCR on scanned PDFs using Azure Form Recognizer. The skill is implemented as an Azure Function. Recently, the indexer has been failing with the error: "The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing." The documents are large (up to 200 pages each). The skill calls the Form Recognizer API asynchronously. You need to resolve the timeout issue without losing the ability to process large documents. Current configuration: batchSize = 1, maxPageSize = 100, timeout = 100 seconds. You cannot change the execution time of the Form Recognizer API. What should you do?

⚠ Common exam trap

Candidates often think increasing batchSize or maxPageSize will reduce the number of invocations and thus fix the timeout, but these parameters do not affect the per-invocation timeout; the correct approach is to increase the timeout duration while keeping batchSize small to avoid overloading the skill.

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

Decrease the batchSize to 1 and increase the timeout property in the skillset skill definition to PT300S.

The error indicates the HttpClient timeout (100 seconds) is too short for large documents processed by the custom skill. Increasing the timeout to PT300S (300 seconds) in the skill definition allows the Azure Function to wait longer for the asynchronous Form Recognizer API to complete, while keeping batchSize=1 ensures each invocation handles one document at a time, preventing overload and maintaining reliability for large PDFs.

Answer analysis

Option-by-option breakdown

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

  • Increase the batchSize to 10 to process more documents per invocation, reducing the number of total invocations.

    Why it's wrong here

    Increasing batchSize would cause the function to receive more documents per call, making the timeout issue worse.

  • Increase the maxPageSize to 500 to reduce the number of API calls to Form Recognizer.

    Why it's wrong here

    Form Recognizer has its own limits; increasing maxPageSize beyond the maximum supported will result in errors.

  • Decrease the batchSize to 1 and increase the timeout property in the skillset skill definition to PT300S.

    Why this is correct

    Increasing the skill timeout to 300 seconds allows the function more time to process the document. The function's timeout must also be increased in host.json.

  • Remove the custom skill and use the built-in OCR skill in the skillset.

    Why it's wrong here

    The built-in OCR skill may not integrate with Form Recognizer's advanced features; the question requires using the existing custom skill.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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.