Courseiva
Plan and manage an Azure AI solutioneasyMultiple ChoiceObjective-mapped

AI-102 Azure Cognitive Services Practice Question

Network Topology
name my-cog-serviceresource-group my-rgRefer to the exhibit.```

You run the above Azure CLI command. What is the expected output?

⚠ Common exam trap

The trap is that candidates may assume `az cognitiveservices account keys list` returns the endpoint along with the keys, but it only returns the primary and secondary keys. The endpoint is obtained via `az cognitiveservices account show`.

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 primary and secondary keys

The Azure CLI command `az cognitiveservices account keys list` retrieves only the primary and secondary API keys for the Cognitive Services account. The endpoint is not included in the output; it must be obtained separately using `az cognitiveservices account show`. Therefore, the expected output contains the primary key and secondary key only.

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 primary and secondary keys along with the endpoint

    Why it's wrong here

    Incorrect. The `keys list` command does not return the endpoint; it only returns the primary and secondary keys.

  • The primary and secondary keys

    Why this is correct

    Correct. The command returns the primary and secondary API keys.

  • A list of endpoints for the service

    Why it's wrong here

    Incorrect. The command does not return a list of endpoints; it returns keys.

  • An error because the command is incorrect

    Why it's wrong here

    Incorrect. The command is valid and will execute successfully.

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.