exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 28 discussion

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

You have an Azure subscription.

You use Bicep templates to deploy websites and Azure SQL infrastructure.

You need to automate the deployments by using Azure Pipelines and a self-hosted agent that runs on two virtual machines. The solution must minimize administrative effort.

What should you do first?

  • A. Create a service principal.
  • B. Create an Azure Automation account.
  • C. Create a user-assigned managed identity.
  • D. On each virtual machine, enable a system-assigned managed identity.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
AlexDa
1 month ago
Selected Answer: C
It is C: User-assigned managed identity If you were deploying from outside Azure (e.g., GitHub Actions, a different cloud, or an on-premises server), then a Service Principal would be required. However, since your self-hosted agent is running on Azure VMs, UAMI is the better choice.
upvoted 1 times
...
Todo69
7 months ago
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/windows-agent?view=azure-devops Agent setup authentication type When you register an agent, choose from the following authentication types, and setup will prompt you for the specific additional information required for each authentication type. For more information, see Self-hosted agent authentication options. Personal access token Device code flow Service principal
upvoted 1 times
...
8fc2e85
7 months ago
Selected Answer: A
I think answer is correct because service principal for the Azure service connection in devops that each agent will use to deploy to Azure.
upvoted 1 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