Courseiva
Plan and manage an Azure AI solutionhardMultiple ChoiceObjective-mapped

AI-102 Plan and manage an Azure AI solution Practice Question

Network Topology
az cognitiveservices account list-deletedquery "[].{Name:nameOutput:Name Location KindmyTextAnalytics eastus TextAnalyticsmyVision westus ComputerVision

Refer to the exhibit. You run the Azure CLI command to list deleted cognitive services accounts. You need to recover the 'myTextAnalytics' account. Which command should you use?

⚠ Common exam trap

Many exam-takers confuse the Azure CLI verb 'recover' with 'restore' or 'undelete' from other Azure services (e.g., Azure SQL Database uses 'restore', Azure Storage uses 'undelete'), leading them to pick a non-existent or incorrect command for Cognitive Services recovery.

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

az cognitiveservices account recover --name myTextAnalytics --resource-group <rg> --location eastus

The Azure CLI command `az cognitiveservices account recover` is specifically designed to restore a soft-deleted Cognitive Services account within the 90-day retention period. The command requires the account name, resource group, and location to identify the deleted resource for recovery.

Answer analysis

Option-by-option breakdown

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

  • az cognitiveservices account create --name myTextAnalytics --resource-group <rg> --kind TextAnalytics --location eastus

    Why it's wrong here

    This would fail because the name still exists in soft-deleted state.

  • az cognitiveservices account restore --name myTextAnalytics --resource-group <rg> --location eastus

    Why it's wrong here

    'restore' is not a valid command for cognitive services.

  • az cognitiveservices account recover --name myTextAnalytics --resource-group <rg> --location eastus

    Why this is correct

    The 'recover' command restores a soft-deleted account.

  • az cognitiveservices account undelete --name myTextAnalytics --resource-group <rg> --location eastus

    Why it's wrong here

    'undelete' is not a valid command.

About these practice questions

One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.