exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 11 discussion

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

During a code review, you discover many quality issues. Many modules contain unused variables and empty catch blocks.
You need to recommend a solution to improve the quality of the code.
What should you recommend?

  • A. In a Grunt build task, select Enabled from Control Options.
  • B. In a Maven build task, select Run PMD.
  • C. In a Xcode build task, select Use xcpretty from Advanced.
  • D. In a Gradle build task, select Run Checkstyle.
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
AS007
Highly Voted 4 years, 6 months ago
Verified - its correct We can use PMD and Findbugs for code analysis
upvoted 22 times
...
Jkmr622
Highly Voted 3 years, 11 months ago
Correctamundo dude
upvoted 9 times
...
FeriAZ
Most Recent 9 months ago
Selected Answer: B
PMD: (Programming Mistake Detector) is a static code analysis tool specifically designed for Java. It excels at identifying common code quality issues, including unused variables, empty catch blocks, and other potential problems.
upvoted 3 times
...
Sukon_Desknot
1 year, 4 months ago
Isn't PMD what finds the code issue and check for quality?
upvoted 1 times
...
zellck
1 year, 6 months ago
Selected Answer: B
B is the answer. https://pmd.github.io/ PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth.
upvoted 3 times
...
tjeerd
2 years, 4 months ago
Selected Answer: B
On exam 20220727.
upvoted 3 times
...
Govcomm
2 years, 4 months ago
Maven PMD (Problem Mistake Detection)
upvoted 1 times
...
Leandrocei
2 years, 4 months ago
Correct. Came today 22 july 9
upvoted 2 times
...
UnknowMan
2 years, 7 months ago
Selected Answer: B
correct
upvoted 1 times
...
rdemontis
2 years, 8 months ago
Selected Answer: B
correct
upvoted 1 times
...
Optimist_Indian
2 years, 10 months ago
Got this question in Feb-2022 exam (scored 910+). Given answer is correct. Maven PMD.
upvoted 4 times
...
francis6170
3 years, 5 months ago
Got this in the AZ-400 exam (June 2021).
upvoted 3 times
...
kumardeb
4 years ago
B. In a Maven build task, select Run PMD.
upvoted 3 times
...
Rimbik
4 years, 2 months ago
B. This answer is correct.
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 ...