exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 17 question 2 discussion

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

In Azure DevOps, you create Project3.
You need to meet the requirements of the project.
What should you do first?

  • A. From Azure DevOps, modify the build definition.
  • B. From SonarQube, obtain an authentication token.
  • C. From Azure DevOps, create a service endpoint.
  • D. From SonarQube, create a project.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
LNE
Highly Voted 3 years, 6 months ago
D. From SonarQube, create a project.
upvoted 41 times
LNE
3 years, 6 months ago
Before creating the service endpoint, you have to set up the organization and import the project into sonar cloud.
upvoted 8 times
chingdm
2 years, 1 month ago
" To set up the import of Azure DevOps repositories: Set your global DevOps platform settings Add a personal access token for importing repositories Adding a personal access token for importing repositories After setting your global settings, you can add a project from Azure DevOps by clicking the Add project button in the upper-right corner of the Projects homepage and selecting Azure DevOps. Then, you'll be asked to provide a personal access token with Code (Read & Write) scope so SonarQube can access and list your Azure DevOps projects. This token will be stored in SonarQube and can be revoked at any time in Azure DevOps. After saving your personal access token, you'll see a list of your Azure DevOps projects that can be set up and added to SonarQube. Setting up your projects this way also defines your project settings for pull request decoration." https://docs.sonarqube.org/latest/devops-platform-integration/azure-devops-integration/#analyzing-projects-with-azure-pipelines
upvoted 1 times
...
...
...
TrangNguyen_6
Highly Voted 3 years, 8 months ago
Got this on 19th July 2021 exam. Chose C and Scored 800+ so it should be correct.
upvoted 9 times
gerardjongh
11 months ago
you mean 80% change my answer was correct instead of should be correct.
upvoted 1 times
...
gabo
1 year, 5 months ago
You need to import the repo into SonarCloud before everything else and for that you need to create a new project. So, C is definitely not the correct answer. https://azuredevopslabs.com/labs/vstsextend/sonarcloud/
upvoted 4 times
...
prashantjoge
2 years, 11 months ago
you only got 800+ so you could be wrong. Very confusing question. You need to create a project, get the token, create service enpoint and modify the build definition. I would go with C. because the question is related to azure devops.
upvoted 10 times
prashantjoge
2 years, 11 months ago
C ties in the other answers together
upvoted 3 times
prashantjoge
2 years, 11 months ago
Sorry, I the @LNE is correct. What would you do first?
upvoted 1 times
...
...
...
...
billycat
Most Recent 3 days, 1 hour ago
Selected Answer: D
Answer is D: First you need to create a project in SonarQube. You will then specify the Project Name and DevopsPersonal Access token to be able to import the project.
upvoted 1 times
...
Dankho
2 months, 2 weeks ago
Selected Answer: B
first thing is to connect DevOPs with SonarQube is Obtain an authentication token from SonarQube
upvoted 1 times
Dankho
2 months, 2 weeks ago
You have to do all the options but first you must get a token, gotta connect first...
upvoted 1 times
...
...
hotspot02103
2 months, 2 weeks ago
Selected Answer: A
I'm voting for A, so that we just have a bit from everything! Good luck to everyone!
upvoted 1 times
...
Gooldmember
4 months ago
Selected Answer: B
I redraw my previous answer. The correct choice is B
upvoted 1 times
...
Gooldmember
4 months ago
Selected Answer: D
D) create project first in SonarCloud is the first step from the available choices
upvoted 1 times
Gooldmember
4 months ago
Discard this comment and choice.
upvoted 1 times
...
...
Dkijc
4 months, 2 weeks ago
I'm going to go with: D Reason: There's nothing on the info where they already have SonarQube setup. And it said to implement projects based on the PLANNED changes. Since there are more than one possible option I'm choosing the choice as if I am starting from zero.
upvoted 1 times
...
MrAZ105
4 months, 2 weeks ago
Selected Answer: B
Obtaining an authentication token is the first step
upvoted 1 times
...
Mattt
5 months, 1 week ago
Selected Answer: C
First you need a connection in Azure DevOps to SonarQube. So first add the SonarQube extention in the Azure DevOps and add a new SonarQube service endpoint Here is the document: https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/azure-devops-integration/#:~:text=In%20Azure%20DevOps%2C%20go%20to,Save%20to%20save%20your%20connection.
upvoted 1 times
...
Mattt
5 months, 2 weeks ago
Selected Answer: B
The first step in integrating any external tool, like SonarQube, with Azure DevOps is to establish a secure connection. For this, you need an authentication token from SonarQube. This token allows Azure DevOps to communicate securely with SonarQube. Without the token, you wouldn't be able to set up a proper connection between the two systems.
upvoted 2 times
...
vsvaid
1 year, 2 months ago
Selected Answer: D
Need to create project first in SonarClond before creating a service connection devops.
upvoted 5 times
...
Firdous586
1 year, 4 months ago
In order to integrate with sonar cloud you need to create the service endpoint in azure devops portal Therefore answer is service endpoint
upvoted 1 times
...
gabo
1 year, 5 months ago
Selected Answer: D
As per, https://azuredevopslabs.com/labs/vstsextend/sonarcloud/ , the first thing to happen is to Import your repo into SonarCloud and for that we create a new project. Hence the answer is D. The Service Connection comes into picture only when Azure Pipelines nee to access SonarCloud and that happens much later.
upvoted 3 times
...
ieboaix
1 year, 7 months ago
C . 1. Installing SonarQube extension 2. Adding a new SonarQube service endpoint https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/azure-devops-integration/
upvoted 2 times
...
renzoku
1 year, 8 months ago
Selected Answer: D
D. From SonarQube, create a project. From Azure DevOps, create a service endpoint. you need SonarCloud server URL before. From SonarQube, obtain an authentication token. you get it by log in to your SonarQube project, My account, Security, Generate tokens.
upvoted 6 times
...
sudhakaru
1 year, 8 months ago
Service EndPoint is correct From the Visual Studio Marketplace, install the SonarQube extension by clicking the Get it free button. After installing your extension, you need to declare your SonarQube server as a service endpoint in your Azure DevOps project settings: In Azure DevOps, go to Project Settings > Service connections. Select New service connection and then select SonarQube from the service connection list. Enter your SonarQube Server URL, an authentication token, and a memorable Service connection name. Then, select Save to save your connection. https://docs.sonarqube.org/latest/devops-platform-integration/azure-devops-integration/
upvoted 1 times
renzoku
1 year, 8 months ago
To obtain SonarCloud server URL, involves having created the SonarCloud project before
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