The correct answer is:
A. personal access token (PAT)
Explanation:
- To register a self-hosted agent in Azure DevOps, the recommended and secure way is to use a Personal Access Token (PAT). A PAT allows the agent to authenticate with Azure DevOps during the registration process, enabling secure and authorized communication.
Why other options are incorrect:
B. SSH key
- SSH keys are commonly used for secure shell access to Linux systems or for Git authentication. They are not used for registering a self-hosted agent in Azure DevOps.
C. Alternate credentials:
- Alternate credentials are deprecated in Azure DevOps because they are less secure compared to using PATs. This method is no longer recommended or supported for agent registration.
D. certificate:
- Certificates are not a valid or supported authentication mechanism for registering a self-hosted agent in Azure DevOps.
When provisioning a self-hosted Linux agent in Azure DevOps, you should use an SSH key for authentication to register the agent. Azure DevOps uses the SSH protocol for secure communication with the self-hosted agent.
GPT: PATs are typically used to authenticate users or services to Azure DevOps resources, and are not specifically designed for registering self-hosted agents. Additionally, using a PAT for authentication would require the PAT to be stored on the machine hosting the self-hosted agent, which could potentially pose a security risk if the machine were compromised.
A more secure and recommended authentication mechanism for registering a self-hosted Linux agent would be to use an SSH key. SSH keys are a common and secure way to authenticate to remote machines using public-key cryptography, and are widely supported in the Linux ecosystem. They also do not require the sharing or storage of any sensitive information like a PAT.
Therefore, if given the choice, I would recommend using an SSH key as the authentication mechanism for registering a self-hosted Linux agent over a personal access token.
"PATs are typically used to authenticate users or services to Azure DevOps resources, and are not specifically designed for registering self-hosted agents. " - Wrong. That's exactly one of the use cases of PATs. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/linux-agent?view=azure-devops . As for SSH, they are used to authenticate to 3rd party services, like GitHub, so that the agent can clone repos. So, to recap, you need a PAT to authenticate in DevOps and then you need a SSH for GitHub connections.
GPT:If only one option is allowed and the question specifically asks for the authentication mechanism to register a self-hosted Linux agent, and based on the available options, I would agree that choosing "personal access token (PAT)" is likely the best choice in the context of the AZ-400 exam.
While using an SSH key is more secure, it's possible that the exam question may have constraints or requirements that make using an SSH key not feasible or desirable. Additionally, the use of a personal access token (PAT) is a common authentication mechanism in Azure DevOps and would align with the focus of the exam.
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
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.
kumardeb
Highly Voted 3 years, 11 months agoHooters
Highly Voted 3 years, 11 months agonikolayivanov
Most Recent 3 months, 1 week agoozbonny
8 months, 1 week agosaket051985
8 months, 4 weeks agovsvaid
10 months, 2 weeks agoOmarook
1 year, 6 months agoFal991l
1 year, 7 months agoxRiot007
1 year, 3 months agoFal991l
1 year, 7 months agomeoukg
1 year, 11 months agosyu31svc
2 years, 2 months agoGovcomm
2 years, 3 months agokennynelcon
2 years, 3 months agoEltooth
2 years, 5 months agoUnknowMan
2 years, 5 months agordemontis
2 years, 7 months agoMcphyl
1 year, 10 months agoshermin1
2 years, 7 months agoPlumpyTumbler
2 years, 9 months ago