exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 6 question 5 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You integrate a cloud-hosted Jenkins server and a new Azure DevOps deployment.
You need Azure DevOps to send a notification to Jenkins when a developer commits changes to a branch in Azure Repos.
Solution: You create a service hook subscription that uses the build completed event.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
dimitartachev23
Highly Voted 3 years, 8 months ago
The answer is "NO", because the event should be when code is pushed and not when a build is completed.
upvoted 37 times
...
Optimist_Indian
Highly Voted 2 years, 10 months ago
Got this question in Feb-2022 exam. Answer is : Code Push event.
upvoted 9 times
...
vsvaid
Most Recent 11 months, 3 weeks ago
Selected Answer: B
Agree with answer
upvoted 2 times
...
yana_b
1 year, 2 months ago
Selected Answer: B
Correct answer
upvoted 2 times
...
WH16
1 year, 3 months ago
Selected Answer: B
On exam 2023-09-06, selected B. No
upvoted 3 times
...
itexamsmicrosoft
1 year, 4 months ago
Selected Answer: B
B. No Explanation: The "build completed" event in Azure DevOps is triggered when a build pipeline run is completed, not when a developer commits changes to a branch in Azure Repos. To achieve the goal of sending a notification to Jenkins when a developer commits changes to a branch in Azure Repos, a service hook subscription needs to be created that uses the code push event or the pull request created event. Therefore, creating a service hook subscription that uses the "build completed" event would not meet the goal.
upvoted 3 times
...
xRiot007
1 year, 4 months ago
Well, this depends on how "lax" Microsoft sees the "commit" action. If it's just a commit done locally, on some random branch, it will not trigger Jenkins. If you push your code to origin or prepare PR, that will trigger Jenkins. Here is ref: https://learn.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops
upvoted 1 times
...
CodeMaestro
1 year, 11 months ago
The answer is NO. You can read up on the same from the below link: https://learn.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops
upvoted 1 times
...
syu31svc
2 years, 4 months ago
Selected Answer: B
https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/jenkins?view=azure-devops: "You can trigger a Jenkins build when you push code to your project's Git repository" Answer is No
upvoted 3 times
...
rdemontis
2 years, 8 months ago
Selected Answer: B
correct answer
upvoted 2 times
...
swapmaverick
2 years, 11 months ago
Question is - You need Azure DevOps to send a notification to Jenkins when a developer commits changes to a branch in Azure Repos. - Clearly scenario is Code pushed not build completed so answer should be No as given solution says - You create a service hook subscription that uses the build completed event.
upvoted 2 times
...
Aniruddha_dravyakar
3 years, 1 month ago
Given answer is correct as it is for branch
upvoted 1 times
...
Kalaismile06
3 years, 6 months ago
In addition to that the code pushed event available in the trigger type, please refer the below link for more info, https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/jenkins?view=azure-devops
upvoted 2 times
...
Kalaismile06
3 years, 6 months ago
The answer is "Yes". If you want to confirm, please refer the below link, https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/jenkins?view=azure-devops If there is any changes in the code repo, the service hooks can be triggered for Java/any app.
upvoted 2 times
...
rafapaz09
3 years, 7 months ago
Doing a commit is not equal to doing a push, the documentation says "You can trigger a Jenkins build when you push code to your project's Git repository", that's it pushing your code into Git, not just committing your code
upvoted 1 times
...
Boruc
3 years, 7 months ago
The answer is "yes". There is a service hook with push code type of event as in the documentation: https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/jenkins?view=azure-devops
upvoted 1 times
...
denisred
3 years, 8 months ago
Answer is Yes, the description is right!
upvoted 1 times
vasonic
3 years, 8 months ago
But the description also says that the event should be "code pushed", not "build completed", so that's why the answer is "No".
upvoted 8 times
noussa
3 years, 7 months ago
I agree , the answer is NO
upvoted 3 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 ...