StudyToCert

All certifications / Azure AI Engineer / Lessons

Microsoft Certified: Azure AI Engineer Associate AI-102 · Domain 1: Plan and manage an Azure AI solution

Protecting keys and networks: Azure Key Vault, key rotation, private endpoints and network restrictions

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

An AI service in Azure has two kinds of protection to think about: the secret keys that prove you may use it, and the network paths that let anyone reach it at all. Keys should live in Azure Key Vault, a locked safe for secrets that records every time someone opens it, rather than in code or settings files. Every resource has two keys so you can swap them without interruption: move your apps to the second key, then make a fresh first key. For the network, you can let only certain networks reach the service, or give it a private address inside your company's own network so it is invisible from the public internet. It is like moving your spare key from under the doormat into a safe, and then also locking the front gate.

At 6:40 a.m., a secret-scanning alert wakes Tomas, the on-call engineer at Fenwick Legal Aid. A contractor pushed a sample app to a public code repository last night, and the settings file contains the key for the firm's Azure AI Language resource, which processes confidential client intake notes. The resource accepts calls from anywhere on the internet. Tomas needs to stop the leaked key from working without taking down the intake app that eight caseworkers will open at 8 a.m., and then make sure that the next leaked key, if there is one, is useless to an outsider. What does he do first, and what does he change for good?

Even when you plan to move to Microsoft Entra ID, many apps still use keys, and every resource is reachable over the network. Securing an Azure AI solution means protecting the secrets and limiting who can even reach the endpoint. These are two independent layers: a strong network boundary limits the damage of a leaked key, and good secret handling limits the damage of a network gap. The exam expects you to know both and to combine them.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Azure AI Engineer for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Azure AI Engineer study plan