Topic 4: Mix Questions Set
Your company uses cloud-hosted Jenkins for builds. You need to ensure that Jenkins can retrieve source code from Azure Repos. Which three actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct answer selection is worth one point.
A. Add the Team Foundation Server (TFS) plug-in to Jenkins.
B. Create a personal access token m your Azure DevOps account.
C. Create a webhook in Jenkins.
D. Add a domain to your Jenkins account.
E. Create a service hook m Azure DevOps.
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 use Azure Pipelines to build and test a React js application You have a pipeline that has a single job. You discover that installing JavaScript packages from npm lakes approximately five minutes each time you run the pipeline. You need to recommend a solution to reduce the pipeline execution time. Solution: You recommend enabling pipeline caching. Does this meet the goal?
A. Yes
B. No
npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer. It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their build process. Since dependencies don't change often, this often means slower build times. npm-cache helps alleviate this problem by caching previously installed dependencies on the build machine.
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. The lead developer at your company reports that adding new application features takes longer than expected due to a large accumulated technical debt. You need to recommend changes to reduce the accumulated technical debt. Solution: You recommend reducing the code coupling and the dependency cycles? Does this meet the goal?
A. Yes
B. No
Instead reduce the code complexity.
Note: Technical debt is the accumulation of sub-optimal technical decisions made over the
lifetime of an application. Eventually, it gets harder and harder to change things: it’s the
‘sand in the gears’ that sees IT initiatives grind to a halt.
You have an Azure subscription that contains an Azure container registry. The container registry contains an ACR Tasks task named Task1. Task1 is configured to run once every five days. You need to trigger Task1 to run immediately. Which command should you run?
A. az acr build
B. az acr task run
C. az acr run
D. az acr taskrun
During a code review, you discover quality issues in a Java application. You need to recommend a solution to detect quality issues including unused variables and empty catch blocks. What should you recommend?
A. In an Xcode build task, select Use xcpretty from Advanced.
B. In a Maven build task, select Run PMD.
C. In a Grunt build task, select Enabled from Control Options.
D. In a Gulp build task, specify a custom condition expression.
Explanation: PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. There is an Apache Maven PMD Plugin which allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results.
Page 29 out of 98 Pages |
Previous |