exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 4 question 17 discussion

Actual exam question from Microsoft's AZ-400
Question #: 17
Topic #: 4
[All AZ-400 Questions]

HOTSPOT -
You manage build and release pipelines by using Azure DevOps. Your entire managed environment resides in Azure.
You need to configure a service endpoint for accessing Azure Key Vault secrets. The solution must meet the following requirements:
✑ Ensure that the secrets are retrieved by Azure DevOps.
✑ Avoid persisting credentials and tokens in Azure DevOps.
How should you configure the service endpoint? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Azure Pipelines service connection
Box 2: Managed Service Identity Authentication
The managed identities for Azure resources feature in Azure Active Directory (Azure AD) provides Azure services with an automatically managed identity in Azure
AD. You can use the identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without any credentials in your code.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-key-vault https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jhxetc
Highly Voted 3 years, 8 months ago
https://azuredevopslabs.com/labs/vstsextend/azurekeyvault/ Task 3 Step 6 - The answer for part 1 should definitely be ARM
upvoted 37 times
Freyr
3 months, 1 week ago
I am not sure, but I think that the ARM is the not the correct answer. To find the service connection, please follow the steps below: 1. Go to dev.azure.com 2. Select the project 3. Select Project Settings, which can be found at the bottom left side 4. Under Project Settings, find Pipelines, then select Service Connections 5. Choose Service Connection, then click New Connection 6. It will now prompt you to select Azure Resource Manager 7. Providing this will create a service connection. So, the service connection does exist, and I believe this is the correct answer. Therefore, the provided answer is correct.
upvoted 1 times
...
...
Lyonel
Highly Voted 3 years, 8 months ago
Here is what the link (link: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-key-vault?view=azure-devops] provided states under 'Prerequisites': "An Azure subscription linked to Azure Pipelines or Team Foundation Server using the Azure Resource Manager service connection." Answer #1 is CORRECT (Team Foundation Server / Azure Pipelines service connection). It appears that the answer is worded wrongly or even poorly, but is CORRECT. As for Answer #2, specified in the second link provided [link: https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview]: "Managed identities eliminate the need for developers to manage credentials." So, as specified in the question -- "Avoid persisting credentials and tokens in Azure DevOps." Answer #2 is CORRECT (Managed Service Identity Authentication), as it states in the link, "Managed identities eliminate the need for developers to manage credentials."
upvoted 27 times
djhyfdgjk
1 year, 2 months ago
And how are you going to assign Managed Identity to Azure Devops organization ?? As far as I know it is not possible. Therefore correct answers should be ARM Service Connection and Authorization.
upvoted 1 times
8fc2e85
6 months, 3 weeks ago
It is supported: https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#2-add-and-manage-service-principals-in-an-azure-devops-organization
upvoted 1 times
...
...
mmdex
2 years, 3 months ago
Answer #1 should be "Azure Resource Manager". It isn't worded wrongly. The "Team Foundation Server / Azure Pipelines service connection" type simply does not exist. The "Azure Resource Manager" and "Generic" service connection types do exist. Here is a list of common service connection types: https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#common-service-connection-types
upvoted 6 times
...
rdemontis
3 years, 1 month ago
No it isn't worded wrongly. "An Azure subscription linked to Azure Pipelines or Team Foundation Server using the Azure Resource Manager service connection" means you have already an ARM service connection in the devops project or in the pipeline that links to your Azure subscription. You need it to access to any azure resource in your azure subscription. So the provided answer #1 is wrong. ARM is correct
upvoted 14 times
...
...
Christian_garcia_martin
Most Recent 8 months ago
Copilot : Service connection type: Azure Resource Manager Authentication/authorization method for the connection: Managed Service Identity Authentication
upvoted 2 times
...
FeriAZ
1 year, 1 month ago
Service connection type: Azure Resource Manager Authentication/authorization method for the connection: Managed Service Identity (MSI) Azure Resource Manager service type: This service connection type specifically targets Azure resources, including Key Vault. It allows your pipeline to interact with Key Vault using the Managed Service Identity assigned to the Azure DevOps project. Managed Service Identity (MSI) authentication: This eliminates the need to store sensitive information like credentials or tokens within your pipeline. Instead, the pipeline leverages its assigned MSI to access resources securely. Azure automatically manages and rotates the MSI credentials, enhancing security and reducing the risk of exposure.
upvoted 3 times
Lubomir
5 months, 2 weeks ago
Agree: ARM + MSI. Here is an article describing how to use federated credential (which is managed identity): https://learn.microsoft.com/en-us/azure/devops/pipelines/release/configure-workload-identity?view=azure-devops&tabs=managed-identity
upvoted 1 times
...
...
ozbonny
1 year, 2 months ago
ARM and Manage Identity
upvoted 1 times
...
codeByJazz
1 year, 2 months ago
copilot says : GitHub Copilot To configure a service endpoint for accessing Azure Key Vault secrets without persisting credentials and tokens in Azure DevOps, you should use Managed Service Identity (MSI). Here are the steps: Enable Managed Service Identity (MSI) on your Azure DevOps. This will create an identity for your Azure DevOps in Azure Active Directory. Assign the necessary permissions to the MSI in Azure Key Vault. You can do this by adding an access policy in Key Vault that gives the MSI the necessary permissions (like Get, List) to retrieve secrets. In Azure DevOps, when creating the service connection for Azure Key Vault, choose "Managed identity" as the Authentication method. This way, Azure DevOps will use the managed identity to authenticate to Azure Key Vault and retrieve secrets, and you won't need to store any credentials or tokens in Azure DevOps.
upvoted 1 times
...
vsvaid
1 year, 4 months ago
ARM and Managed Service
upvoted 1 times
...
varinder82
1 year, 4 months ago
Final Answer After all comments analysis: 1. Azure Resource Manager 2. Managed Service Identity Authentication
upvoted 6 times
Dankho
3 months, 3 weeks ago
thank you 'ol great one! Sorry I've been studying for like a million hours. I'm a little feisty to say the least.
upvoted 1 times
...
...
Spectrum128k
1 year, 6 months ago
Can we discourage people posting answers from ChatGPT? I can use that myself and it's often wrong on the simplest things!
upvoted 15 times
...
yana_b
1 year, 8 months ago
Following the URLs provided by Lyonel, it seems that provided answer is correct
upvoted 1 times
...
318touring
1 year, 11 months ago
According to ChatGPT, and the usual way of doing things: " To configure a service endpoint for accessing Azure Key Vault secrets while meeting the given requirements, you should use the Azure Resource Manager service endpoint type. Here are the steps to configure the service endpoint: In Azure DevOps, navigate to the project where you want to create the service endpoint. Go to Project Settings and select Service connections under Pipelines. Click on New service connection and select Azure Resource Manager."
upvoted 1 times
...
Rams_84zO6n
2 years, 1 month ago
AzureResourceManager, Managed Service Identity Authentication Step1: Enabled KV for ARM deployment Ste[2: To the devops project, add a ARM service connection and select ARM Service Identity for authentication, provide your cloud subscription, tenant id, provide a name for service connection, grant permission to all pipelines, save.
upvoted 3 times
...
mohiniu
2 years, 1 month ago
Azure Pipelines supports the following service connection types by default. Any service connection other than ARM doesnt look relevant. Azure Classic | Azure Repos/TFS | Azure Resource Manager | Azure Service Bus | Bitbucket | Chef | Docker hub or others | Other Git | Generic | GitHub | GitHub Enterprise Server | Jenkins | Kubernetes | Maven | npm | NuGet | Python package download | Python package upload | Service Fabric | SSH | Subversion | Visual Studio App Center |
upvoted 1 times
mohiniu
2 years, 1 month ago
Also in reference link of answer its mentioned: An Azure subscription linked to Azure Pipelines or Team Foundation Server using the Azure Resource Manager service connection. So answer should be ARM
upvoted 1 times
...
...
reks2022
2 years, 4 months ago
azureresourcemanager & managed identity
upvoted 2 times
...
syu31svc
2 years, 8 months ago
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-key-vault?view=azure-devops "An Azure subscription linked to Azure Pipelines or Team Foundation Server using the Azure Resource Manager service connection." Service connection is ARM "Avoid persisting credentials and tokens" so this would be managed identity for authentication
upvoted 1 times
...
Eltooth
2 years, 11 months ago
ARM and MI are correct.
upvoted 2 times
...
UnknowMan
2 years, 11 months ago
Arm + Managed identity (to not store, access token etc..)
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago