Securing AI Platform Config with Key Vault and Managed Identity
Short answer
CDE Store API keys in Key Vault, allow configuration updates with a polling interval, and use managed identity for both App Configuration and Key Vault access.
Question
Key Takeaways
This question tests the integration of Azure App Configuration and Key Vault for secure, dynamic AI platform configuration. The correct approach uses Key Vault for secrets, managed identity for authentication, and polling intervals for dynamic refresh, avoiding insecure service principal secrets and static environment variables.
Expert Analysis
Store API keys and other secrets in Key Vault while App Configuration retains non-secret configuration and Key Vault references. Dynamic refresh is implemented through the App Configuration refresh/polling mechanism rather than an application restart. Managed identity provides credential-free access to both services in Azure.
The scenario presents a classic separation-of-concerns problem in cloud-native architecture: distinguishing between mutable configuration data and sensitive credentials, while ensuring the application remains responsive to changes without manual intervention. The current design fails on three specific fronts: it mixes secrets with config, lacks dynamic refresh capability, and presumably relies on static or less secure authentication methods that need upgrading. To rectify this, we must address storage, refresh mechanisms, and identity management simultaneously.
First, consider the storage of sensitive data. Option C, "Store API keys in Key Vault," is mandatory because Azure App Configuration is not designed for secret management. While App Configuration can store Key Vault references, it does not store the actual secret values themselves. By moving API keys to Azure Key Vault, you adhere to the principle of least privilege and centralize secret lifecycle management (rotation, expiration). This directly addresses the requirement to "store secrets outside App Configuration." Storing them in environment variables (Option A) is incorrect because environment variables are typically static within a running container or app instance; they do not integrate with App Configuration’s centralized management, nor do they offer the same granular access control and auditing features as Key Vault. Furthermore, relying on environment variables often leads to configuration drift and makes dynamic updates more complex compared to using Key Vault references.
Second, regarding dynamic refresh, Option D, "Allow configuration updates with a polling interval," is the correct mechanism. Azure App Configuration supports a client-side caching strategy where the application periodically polls the service for changes. When combined with the ConfigurationRefresher class in the.NET SDK (or equivalent in other languages), the application can detect changes to configuration settings or Key Vault references without restarting. This satisfies the requirement for "dynamic configuration refresh." Without this polling mechanism, the application would only see the configuration state at startup, violating the dynamic requirement. It is crucial to note that the refresh applies to the configuration values retrieved from App Configuration, including the URIs pointing to Key Vault secrets.
Third, for secure access to both services, Option E, "Use managed identity for both App Configuration and Key Vault access," is the superior choice over Option B. A managed identity allows the application (whether running on Azure App Service, Kubernetes, or Functions) to authenticate to Azure AD without storing any credentials in code or configuration files. This eliminates the risk of leaked secrets. Option B suggests using a "service principal secret," which introduces significant security risks. Service principal secrets must be stored somewhere (e.g., in App Configuration itself or environment variables), creating a circular dependency or a new secret management problem. Moreover, rotating these secrets requires updating the application's configuration, which contradicts the goal of simplifying credential management. Managed identities are automatically rotated by Azure, reducing operational overhead and enhancing security.
In summary, the correct redesign involves moving secrets to Key Vault (C), enabling polling-based dynamic refresh in the App Configuration client (D), and authenticating via managed identity (E). Options A and B introduce security vulnerabilities or operational complexities that contradict the requirements for secure, dynamic, and centralized management.
Related Analysis
Practice All AI-200 Questions
Access 69 questions with complete answers and detailed explanations.
View Full AI-200 Practice Test →