Microsoft Azure AI Engineer Associate AI-102 Practice Question
You manage an Azure AI Foundry Service resource that currently authenticates requests from a production application with the resource's primary key (key1). Security operations reports a potential leak of key1 and mandates that the key be revoked immediately without causing any application downtime. Which sequence of actions should you perform?
Enable Azure Active Directory authentication for the resource and disable both keys.
Regenerate key2, update the application to use the new key2, and then regenerate key1.
Update the application configuration to use key2, then regenerate key1 and leave key2 unchanged.
Regenerate key1 first, update the application to use the new key1, and then regenerate key2.
An Azure AI resource provides two independent access keys. To rotate a key without service interruption, first switch the application to use the non-compromised secondary key, then regenerate the compromised key. Regenerating a key invalidates only that key, so leaving the application pointed at the secondary key keeps the service available while ensuring the leaked key can no longer be used. Regenerating the wrong key or regenerating both keys before updating the application would either leave the compromised key valid or break connectivity. Changing to Azure AD authentication does not meet the immediate rotation requirement and would still require code changes and testing.
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.
What is the purpose of having two independent access keys in Azure AI resources?
Open an interactive chat with Bash
What is the process of rotating access keys for an Azure AI resource?
Open an interactive chat with Bash
Why is Azure Active Directory (Azure AD) authentication not suitable for immediate key rotation in this case?
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 .