Courseiva
Implement an agentic solutioneasyMultiple ChoiceObjective-mapped

AI-102 Implement an agentic solution Practice Question

You are deploying an agentic solution using Azure AI Agent Service. The agent needs to be invoked from a custom application using REST API calls. Which endpoint should you use to send a message to the agent?

⚠ Common exam trap

Many candidates confuse the endpoint for sending a message with the endpoint for starting a run, mistakenly thinking that POST /threads/{thread_id}/runs both sends the message and invokes the agent, when in fact messages must be added separately before a run.

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

POST /threads/{thread_id}/messages

To send a message to an existing conversation thread in Azure AI Agent Service, you must use the POST /threads/{thread_id}/messages endpoint. This adds the user's message to the specified thread, which the agent can then process in a subsequent run. The REST API requires the thread to already exist, and messages are posted directly to that thread's resource.

Answer analysis

Option-by-option breakdown

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

  • POST /threads/{thread_id}/runs

    Why it's wrong here

    This endpoint triggers an agent run, not send a message.

  • POST /threads

    Why it's wrong here

    This endpoint creates a new thread, not send a message.

  • POST /threads/{thread_id}/messages

    Why this is correct

    This endpoint adds a message to an existing thread.

  • GET /agents

    Why it's wrong here

    This endpoint lists agents, not send messages.

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.