- A
The primary and secondary keys along with the endpoint
Why wrong: Incorrect. The `keys list` command does not return the endpoint; it only returns the primary and secondary keys.
- B
The primary and secondary keys
Correct. The command returns the primary and secondary API keys.
- C
A list of endpoints for the service
Why wrong: Incorrect. The command does not return a list of endpoints; it returns keys.
- D
An error because the command is incorrect
Why wrong: Incorrect. The command is valid and will execute successfully.
AI-102 Azure Cognitive Services Practice Question
This AI-102 practice question tests your understanding of plan and manage an azure ai solution. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: azure Cognitive Services. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
You run the above Azure CLI command. What is the expected output?
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.
Key principle: Azure Cognitive Services
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.
Related concept
Azure Cognitive Services
- ✗
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.
Common exam traps
Common exam trap: answer the scenario, not the keyword
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`.
Trap categories for this question
Command / output trap
Incorrect. The `keys list` command does not return the endpoint; it only returns the primary and secondary keys.
Detailed technical explanation
How to think about this question
The `az cognitiveservices account keys list` command uses the Azure Resource Manager API to fetch the keys associated with a specific Cognitive Services resource. The keys are used for authentication when making API calls to the service, typically via the `Ocp-Apim-Subscription-Key` header. The endpoint, on the other hand, is a separate property of the resource and is retrieved via `az cognitiveservices account show`, which returns the `properties.endpoint` field. In real-world scenarios, you often need both the endpoint and a key to configure a client application, but they are obtained through distinct CLI commands.
KKey Concepts to Remember
- Azure Cognitive Services
- az cognitiveservices account keys list
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Azure Cognitive Services
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Azure Cognitive Services Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Review azure Cognitive Services, then practise related AI-102 questions on the same topic to reinforce the concept.
- →
Plan and manage an Azure AI solution — study guide chapter
Learn the concepts, then practise the questions
- →
Plan and manage an Azure AI solution practice questions
Targeted practice on this topic area only
- →
All AI-102 questions
993 questions across all exam domains
- →
Microsoft Azure AI Engineer Associate AI-102 study guide
Full concept coverage aligned to exam objectives
- →
AI-102 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AI-102 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Implement an agentic solution practice questions
Practise AI-102 questions linked to Implement an agentic solution.
Implement computer vision solutions practice questions
Practise AI-102 questions linked to Implement computer vision solutions.
Implement knowledge mining and information extraction solutions practice questions
Practise AI-102 questions linked to Implement knowledge mining and information extraction solutions.
Implement image and video processing solutions practice questions
Practise AI-102 questions linked to Implement image and video processing solutions.
Implement natural language processing solutions practice questions
Practise AI-102 questions linked to Implement natural language processing solutions.
Implement generative AI solutions practice questions
Practise AI-102 questions linked to Implement generative AI solutions.
Implement agentic AI solutions practice questions
Practise AI-102 questions linked to Implement agentic AI solutions.
Implement knowledge mining and document intelligence solutions practice questions
Practise AI-102 questions linked to Implement knowledge mining and document intelligence solutions.
Plan and manage an Azure AI solution practice questions
Practise AI-102 questions linked to Plan and manage an Azure AI solution.
Implement content moderation solutions practice questions
Practise AI-102 questions linked to Implement content moderation solutions.
AI-102 fundamentals practice questions
Practise AI-102 questions linked to AI-102 fundamentals.
AI-102 scenario practice questions
Practise AI-102 questions linked to AI-102 scenario.
Practice this exam
Start a free AI-102 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AI-102 question test?
Plan and manage an Azure AI solution — This question tests Plan and manage an Azure AI solution — Azure Cognitive Services.
What is the correct answer to this question?
The correct answer is: 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.
What should I do if I get this AI-102 question wrong?
Review azure Cognitive Services, then practise related AI-102 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
Azure Cognitive Services
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More AI-102 practice questions
- Drag and drop the steps to set up Azure AI Content Safety for content moderation into the correct order.
- Drag and drop the steps to configure an Azure AI Search index with a custom skill into the correct order.
- You have an Azure AI Search index defined as shown in the exhibit. Users want to filter search results by author and by…
- Refer to the exhibit. You are configuring an Azure AI Video Indexer job. The exhibit shows a JSON snippet of the job con…
- Refer to the exhibit. You are configuring the Azure AI Vision Analyze Image API. You need to ensure that the response in…
- A company is deploying a generative AI solution using Azure OpenAI Service to generate product descriptions. The solutio…
Last reviewed: Jun 24, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.