Courseiva
Text AnalysishardMultiple SelectObjective-mapped

AI-103 Text Analysis Practice Question

You are developing an application that uses the Azure AI Language REST API for text analysis. Which TWO requirements must be met when constructing HTTP requests to the service? (Choose two.)

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 'Content-Type' header to 'application/json'.

Requests to Azure AI Language require the Ocp-Apim-Subscription-Key header (or token authorization) and the Content-Type header set to application/json.

Answer analysis

Option-by-option breakdown

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

  • Format all request payloads as XML documents.

    Why it's wrong here

    Azure AI Language APIs expect JSON payloads, not XML.

  • Include the master account password in the request query string.

    Why it's wrong here

    Master passwords are never passed in query strings.

  • Set the 'Content-Type' header to 'application/json'.

    Why this is correct

    JSON payloads require Content-Type: application/json.

  • Authenticate exclusively using HTTP Basic Authentication with username and password.

    Why it's wrong here

    Basic authentication is not supported; API keys or Entra ID tokens are required.

  • Include the 'Ocp-Apim-Subscription-Key' header containing your API subscription key.

    Why this is correct

    Subscription keys must be passed in the Ocp-Apim-Subscription-Key header.

About these practice questions

Courseiva writes every AI-103 question from scratch — 510 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 August 2026 · checked against the official Microsoft exam blueprint

This AI-103 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-103 exam.