Courseiva
Implement computer vision solutionshardMultiple ChoiceObjective-mapped

AI-102 Implement computer vision solutions Practice Question

Network Topology
resource-group rg-visionname MyComputerVisionquery "key1"

Refer to the exhibit. You run the Azure CLI command shown. What is the output?

⚠ Common exam trap

Microsoft often tests the distinction between retrieving keys versus other account properties (like endpoint or region), and the trap here is that candidates assume `keys list` returns all keys by default without recognizing that the `--query` parameter can filter to a single key.

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

A single key string

The `az cognitiveservices account keys list` command retrieves the access keys for an Azure Cognitive Services account. By default, it returns both key1 and key2, but the `--query` parameter with `keys[0]` filters the output to return only the first key (key1) as a single string. This is a standard Azure CLI query syntax using JMESPath to extract a specific element from the JSON response.

Answer analysis

Option-by-option breakdown

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

  • A single key string

    Why this is correct

    The query extracts key1 as a string.

  • Both key1 and key2

    Why it's wrong here

    The query limits to key1.

  • The endpoint URL

    Why it's wrong here

    The command is for keys, not endpoints.

  • The region of the account

    Why it's wrong here

    Keys do not include region.

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.