Courseiva
Implement natural language processing solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Practice Question: Implement natural language processing solutions

A development team is using Azure Cognitive Service for Language to extract key phrases from customer reviews. They notice that some reviews are not being processed, and the API returns a 400 error code. What is the most likely cause?

⚠ Common exam trap

Many exam-takers assume the 400 error is due to unsupported languages or encoding issues, but the actual constraint is the per-document character limit, which is explicitly documented in the service's input specifications.

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

One of the reviews exceeds the maximum character limit for a single document.

The Azure Cognitive Service for Language key phrase extraction API enforces a maximum document size of 5,120 characters per document. When a single review exceeds this limit, the API returns a 400 Bad Request error because the request payload violates the service's input constraints. This is the most common cause of 400 errors in batch text analysis operations.

Answer analysis

Option-by-option breakdown

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

  • One of the reviews exceeds the maximum character limit for a single document.

    Why this is correct

    The service limits each document to 5,120 characters.

  • The reviews contain characters that are not valid UTF-8.

    Why it's wrong here

    Invalid encoding would cause a different error, typically a 415 or 400 with a specific message.

  • The request contains more than 5 documents.

    Why it's wrong here

    The maximum is 10 documents, so 5 is acceptable.

  • The reviews are written in a language not supported by the service.

    Why it's wrong here

    The service supports many languages; a 400 error due to language is unlikely.

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.