AI-102 Implement computer vision solutions Practice Question
Network Topology
You have an Azure AI Vision resource named MyVisionService. You run the above Azure CLI command and get the keys. Your application uses key1 for authentication. You need to rotate the keys without downtime. What should you do?
⚠ Common exam trap
Watch out — candidates often think regenerating the key currently in use is acceptable if done quickly, but Azure explicitly requires using the secondary key to avoid any period of invalid credentials.
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
✓
Update the application to use key2, then regenerate key1
It enables key rotation without downtime. By first updating the application to use key2 (the secondary key), you ensure that authentication continues to work while key1 is being regenerated. After key1 is regenerated, you can optionally update the application back to key1 at a later time. This pattern is standard for Azure Cognitive Services to maintain continuous access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete and recreate the Cognitive Services resource
Why it's wrong here
Deleting the resource causes downtime and is unnecessary.
- ✗
Regenerate key1 immediately and update the application to use the new key1
Why it's wrong here
Regenerating key1 while the app uses it will cause authentication failure.
- ✗
Regenerate both keys at the same time
Why it's wrong here
Regenerating both keys will cause downtime as the app loses access.
- ✓
Update the application to use key2, then regenerate key1
Why this is correct
By switching to key2 first, the app remains active while key1 is regenerated.
Go deeper
Related to this question
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 →
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.