Courseiva
Implement an agentic solutionhardMultiple ChoiceObjective-mapped

AI-102 Implement an agentic solution Practice Question

You deploy an agent in Microsoft Foundry that uses a custom skill in Azure AI Search. The skill calls an Azure Function to enrich documents. The function uses an API key. The deployment succeeds but the skill returns an error when processing documents. The function logs show the request is received but the API key is missing. What is the most likely cause?

⚠ Common exam trap

Candidates often assume the API key is automatically injected by Azure AI Search when the function is in the same subscription, but in reality, the key must be explicitly defined in the skill's `httpHeaders` configuration.

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

The skill definition does not include the apiKey in the header.

The custom skill definition in Azure AI Search must include an `apiKey` property in the header to authenticate requests to the Azure Function. Since the function logs show the request is received but the API key is missing, the most likely cause is that the skill definition omitted the `apiKey` header. This is a common configuration error when setting up custom skills with HTTP-triggered functions.

Answer analysis

Option-by-option breakdown

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

  • The Azure Function is not running.

    Why it's wrong here

    Logs show requests received.

  • The skill definition does not include the apiKey in the header.

    Why this is correct

    The skill must pass the key as a header.

  • The API key stored in Azure Key Vault is expired.

    Why it's wrong here

    Logs don't indicate key expiration.

  • The custom skill's URI is incorrect.

    Why it's wrong here

    Function receives requests.

About these practice questions

Courseiva writes every AI-102 question from scratch — 945 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 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.