AZ-400 Exam QuestionsBrowse all questions from this exam

AZ-400 Exam - Question 106


HOTSPOT -

You have an Azure subscription that contains the resources shown in the following table.

You plan to create a linked service in DF1. The linked service will connect to SQL1 by using Microsoft SQL Server authentication. The password for the SQL

Server login will be stored -

in KV1.

You need to configure DF1 to retrieve the password when the data factory connects to SQL1. The solution must use the principle of least privilege.

How should you configure DF1? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Show Answer
Correct Answer:

Box 1: Secret -

Store credential in Azure Key Vault by reference secret stored in key vault.

To reference a credential stored in Azure Key Vault, you need to:

1. Retrieve data factory managed identity

2. Grant the managed identity access to your Azure Key Vault. In your key vault -> Access policies -> Add Access Policy, search this managed identity to grant

Get permission in Secret permissions dropdown. It allows this designated factory to access secret in key vault.

3. Create a linked service pointing to your Azure Key Vault.

4. Create data store linked service, inside which reference the corresponding secret stored in key vault.

Box 2: Access policy -

Reference:

https://docs.microsoft.com/en-us/azure/data-factory/store-credentials-in-key-vault

Discussion

17 comments
Sign in to comment
surensaluka
Feb 14, 2023

This came today (2023-02-14) for my exam. Selected Secret and Access Policy

pc1707
Aug 17, 2023

Hey! Did you get simulation questions?

meoukg
Nov 5, 2022

saw it yesterday in my exam

pc1707
Aug 17, 2023

Hey! Did you get simulation questions?

zellck
Jun 3, 2023

1. Secret 2. Access policy https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy?tabs=azure-portal A Key Vault access policy determines whether a given security principal, namely a user, application or user group, can perform different operations on Key Vault secrets, keys, and certificates. You can assign access policies using the Azure portal, the Azure CLI, or Azure PowerShell.

Rod_DA
Sep 24, 2023

New recommended acceess configuration to vault is now RBAC instead of access policy and there is a role to give access only to secrets so The answer should be secret and RBAC

Aqlanoz
Feb 21, 2023

since keyvault have rbac now, should the answer be rbac instead of access policy ?

Tyler2023
Sep 2, 2023

Access Policy is a legacy authorization system built in Key Vault to provide access to keys, secrets, and certificates but there is new recommended authorization, which is RBAC, you can setup the Managed Identity of Azure Data Factory and allow the identity to access Key Vault BUT since, in the question, they ask which permission type that you need which is Secret so you have to Access Policy instead of RBACK Answer is Secret and Access Policy refs: https://learn.microsoft.com/en-us/azure/data-factory/data-factory-service-identity https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-access-policy

ppo12
Apr 24, 2022

I think correct, since password usually stored in Secret, No need to give RBAC, access policy will do

Leandrocei
Jul 9, 2022

Correct. Came today 22 july 9

Govcomm
Jul 22, 2022

Secret Access Policy (Data Plan)

UnknowMan
May 6, 2022

Secret (Password is stored) And Access Policy

syu31svc
Aug 13, 2022

"Password" so secret for permission Access to Key Vault so Access Policy Answer is correct

dibbadobbagibbu
Feb 21, 2023

RBAC is the only one than can limit access per Secret. So you could argue that Rbac is correct

Rubends
Apr 12, 2023

RBAC is use for keyvault access for use secret you must configure access policy

catfood
Jul 17, 2023

no, rbac can be used for individual secrets, configure in the secret's IAM blade.

Pav143
Jun 13, 2024

Well, now that means RBAC for individual secret access satisfies for least privilege than an access policy that offers high privilege by giving access to ALL secrets. So yeah, microsoft is not dumb, if you select access policy when there is RBAC in the options, youre going to lose a point there for sure.

xRiot007
Jul 16, 2023

Answer is secret and access policy. See ref: https://tech-tutes.com/2020/05/16/get-database-password-from-key-vault-in-data-factory/

yana_b
Aug 10, 2023

Provided answer is correct

vsvaid
Dec 17, 2023

Agree with suggested answer

ozbonny
Feb 21, 2024

secret access policy

Skankhunt
Jul 21, 2024

It's an old question. I believe the correct answer now would be: Secret RBAC