Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
SonarQube is a set of static analyzers that can be used to identify areas of improvement in your code. It allows you to analyze the technical debt in your project and keep track of it in the future. With Maven and Gradle build tasks, you can run SonarQube analysis with minimal setup in a new or existing Azure DevOps Services build task.
https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devops
You are designing a build pipeline in Azure Pipelines.
The pipeline requires a self-hosted agent. The build pipeline will run once daily and will take 30 minutes to complete.
You need to recommend a compute type for the agent. The solution must minimize costs.
What should you recommend?
2You have a GitHub repository.
You need to ensure that all changes to code are validated by your company's security department before the main branch is deployed.
Which two actions can you perform? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
SIMULATION
Task 4
Initialize the default main branch, if it does not exist already.
In the Userl-42147509 Azure DevOps project, you need to implement an approval process for the default main branch.
The process must use the four-eyes principle and have at least one approval on every iteration.
Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps:
Go to Azure DevOps and sign in with your credentials.
Select Your Project:
ChooseProject1from your list of projects.
Initialize the Main Branch:
Go toRepos>Files.
If the main branch does not exist, you will see an option to initialize it. Click onInitializeand follow the prompts to create the main branch.
Step 2: Implement an Approval Process for the Main Branch
Navigate to Branch Policies:
Go toRepos>Branches.
Find themainbranch and click on the...(ellipsis) next to it.
SelectBranch policies.
Enable Required Reviewers:
UnderPolicies, enableMinimum number of reviewers.
Set the minimum number of reviewers to2to enforce the four-eyes principle.
Add Required Reviewers:
Add the users who should review the changes. Ensure that at least one approval is required on every iteration.
Enable Reset Code Reviewer Votes:
Enable theReset code reviewer votes when there are new changesoption to ensure that any new changes require re-approval.
Save Changes:
Click onSave changesto apply the policies.
Step 3: Verify the Approval Process
Create a Pull Request:
Make a change in a branch and create a pull request to merge it into the main branch.
Review and Approve:
Ensure that the pull request requires at least two reviewers to approve it before it can be merged.
You use Azure Pipelines to build and release application code, The pipelines include validation tests that must be completed successfully before deployment proceeds from the test stage to production.
You discover inconsistent test outcomes for the same source code.
You need to validate the test logic.
What should you do?