Free AZ-400 Exam Braindumps (page: 31)

Page 30 of 128

Your company has a project in Azure DevOps for a new web application. The company identifies security as one of the highest priorities.

You need to recommend a solution to minimize the likelihood that infrastructure credentials will be leaked. What should you recommend?

  1. Add a Run Inline Azure PowerShell task to the pipeline.
  2. Add a PowerShell task to the pipeline and run Set-AzureKeyVaultSecret.
  3. Add an Azure Key Vault task to the pipeline.
  4. Add Azure Key Vault references to Azure Resource Manger templates.

Answer(s): C

Explanation:

Azure Key Vault provides a way to securely store credentials and other keys and secrets.
The Set-AzureKeyVaultSecretcmdlet creates or updates a secret in a key vault in Azure Key Vault.


Reference:

https://docs.microsoft.com/en-us/powershell/module/azurerm.keyvault/set-azurekeyvaultsecret



SIMULATION
You need to ensure that an Azure web app named az400-9940427-main can retrieve secrets from an Azure key vault named az400-9940427-kv1 by using a system managed identity.

The solution must use the principle of least privilege.
To complete this task, sign in to the Microsoft Azure portal.

  1. See Explanation section for answer.

Answer(s): A

Explanation:

In Azure portal navigate to the az400-9940427-main app. Scroll down to the Settings group in the left navigation.
Select Managed identity.
Within the System assigned tab, switch Status to On. Click Save.


Reference:

https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity



You create a Microsoft ASP.NET Core application.
You plan to use Azure Key Vault to provide secrets to the application as configuration data.
You need to create a Key Vault access policy to assign secret permissions to the application. The solution must use the principle of least privilege. Which secret permissions should you use?

  1. List only
  2. Get only
  3. Get and List

Answer(s): B

Explanation:

Application data plane permissions:
Keys: sign
Secrets: get


Reference:

https://docs.microsoft.com/en-us/azure/key-vault/key-vault-secure-your-key-vault



DRAG DROP (Drag and Drop is not supported)
Your company has a project in Azure DevOps.

You plan to create a release pipeline that will deploy resources by using Azure Resource Manager templates. The templates will reference secrets stored in Azure Key Vault.

You need to recommend a solution for accessing the secrets stored in the key vault during deployments. The solution must use the principle of least privilege.

What should you include in the recommendation? To answer, drag the appropriate configurations to the correct targets. Each configuration may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




Box 1: A key Vault advanced access policy


Box 2: RBAC
Management plane access control uses RBAC.
The management plane consists of operations that affect the key vault itself, such as:

-Creating or deleting a key vault.
-Getting a list of vaults in a subscription.
-Retrieving Key Vault properties (such as SKU and tags).
-Setting Key Vault access policies that control user and application access to keys and secrets.


Reference:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-tutorial-use-key-vault






Post your Comments and Discuss Microsoft AZ-400 exam with other Community members:

AZ-400 Exam Discussions & Posts