Hard1 markMultiple Choice
Domain 1.4: Application IdentitiesDomain 1.4Key VaultManaged Identity

AZ-305 · Question 15 · Domain 1.4: Application Identities

An application running on an Azure Virtual Machine needs to access a third-party API using an API key. The API key must be stored securely in Azure Key Vault. You need to design a solution for the VM to retrieve the API key without storing any credentials in the VM's code or configuration files. Which TWO actions should you include in your design? (Select TWO)

Answer options:

A.

Store the Key Vault client ID and secret in the VM's environment variables.

B.

Enable a managed identity on the Azure Virtual Machine.

C.

Configure a Key Vault access policy granting the VM's public IP address access.

D.

Grant the VM's managed identity the Key Vault Secrets User role.

E.

Use Azure AD B2C to authenticate the application.

How to approach this question

Identify the identity type for VMs and how to grant it access to Key Vault.

Full Answer

B,D
To access Key Vault without credentials, the VM must have a Managed Identity enabled. Then, that identity must be granted permission (via RBAC or Access Policy) to read secrets from the Key Vault.

Common mistakes

Attempting to use service principal secrets stored in environment variables.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 6

55 questions · hints · full answers · grading

More questions from this exam