Microsoft Azure AI Engineer Associate AI-102 Practice Question
You manage an Azure AI Services resource. Production applications currently authenticate by using key1 only. To comply with security policy, you must rotate one account key each quarter without causing any downtime. Which approach should you take this quarter?
Change all applications to use key2, then regenerate key1, and optionally switch the applications back to key1 after validation.
Regenerate key2 and, after regeneration completes, update all applications to use the new key2.
Regenerate key1, wait for the new value to propagate, and then update all applications to use the regenerated key1.
Delete the Azure AI Services resource and create a new one to obtain fresh keys, then update the applications with the new keys.
Because the applications are still using key1, you should regenerate the unused key (key2) first. Regenerating a key immediately invalidates its previous value, so clients must not be using that key at the time of regeneration. After key2 is regenerated, update your application configuration to use the new key2 value. Clients continue to function throughout the change because they never attempt to use an invalidated secret. Regenerating key1 while it is still in use would break authentication, and deleting the resource is unnecessary. Switching clients to key2 before regenerating key1 would also expose them to an unrotated secret during the change window.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is it necessary to rotate Azure AI Services account keys regularly?
Open an interactive chat with Bash
What happens if a key is regenerated while applications are actively using it?
Open an interactive chat with Bash
How can you confirm that key rotation has been successful without causing downtime?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Plan and manage an Azure AI solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .