Go Back on AZ-400 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

AZ-400 Practice Test


Page 27 out of 98 Pages

Topic 5, Labs & Tasks

Task 5
You plan to stoic signed images in an Azure Container Registry instance named az40038443478act1.
You need to modify the SKU for az40038443478aa1 to support the planned images. The solution must minimize costs.






Answer: See the solution below in explanation.

Explanation: To store signed images in an Azure Container Registry (ACR) instance and support your planned images while minimizing costs, you need to modify the SKU of your ACR instance to one that supports content trust and image signing. Here’s how you can do it:
Determine the Appropriate SKU:
uk.co.certification.simulator.questionpool.PList@2a5ef8fe Modify the SKU of the ACR Instance: By upgrading to the Premium SKU, you’ll be able to store signed images in your ACR instance. Remember to monitor your usage and costs to ensure they align with your budget and requirements.

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 need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:

  • The builds must access an on-premises dependency management system.
  • The build outputs must be stored as Server artifacts in Azure DevOps.
  • The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Hosted VS 2017 agent pool. Include the Java Tool Installer task in the build pipeline. Does this meet the goal?


A. Yes


B. No





B.
  No

Instead use Octopus Tentacle.

Task 10
For Project1, you need to ensure that artifacts, symbols, and attachments are retained for 60 days.






Answer: See the solution below in explanation.

Explanation: Step 1: Navigate to Project Settings
Navigate to Azure DevOps:
Select Your Project:
Access Project Settings:
Step 2: Configure Retention Policies
Navigate to Pipelines Settings:
Set Retention Policies:
Save Changes:
By following these steps, you will have successfully configured the retention policy to retain artifacts, symbols, and attachments for 60 days in Project1

You are designing a strategy to monitor the baseline metrics of Azure virtual machines that run Windows Server. You need to collect detailed data about the processes running in the guest operating system. Which two agents should you deploy? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.


A. the Dependency agent


B. the Azure Network Watcher Agent for Windows


C. the Telegraf agent


D. the Azure Log Analytics agent





A.
  the Dependency agent

D.
  the Azure Log Analytics agent

Task 8
Initialize the default main branch, if it does not exist already.
In Project 1, you need to create a new Azure Pipelines YAML pipeline by using the ASP.NET template.
The pipeline must use Azure Repos as the hosting platform and must be created in a new branch named azure-pipelines.






Answer: See the solution below in explanation.

Explanation: Step 1: Initialize the Default Main Branch
Navigate to Azure DevOps: Select Your Project: Initialize the Main Branch:
Step 2: Create a New Branch for the Pipeline
Navigate to Branches:
Create the Branch:
Step 3: Create a New Azure Pipelines YAML Pipeline
Navigate to Pipelines: Select the Repository: Configure the Pipeline:
trigger:
- main
pool:
vmImage: 'windows-latest'

variables:
buildConfiguration: 'Release'

steps:
- task: UseDotNet@2 inputs:
packageType: 'sdk' version: '5.x'
installationPath: $(Agent.ToolsDirectory)/dotnet

- script: |
dotnet build --configuration $(buildConfiguration) displayName: 'Build project'

- script: |
dotnet test --no-build --configuration $(buildConfiguration) displayName: 'Run tests'

Save the Pipeline:
By following these steps, you will have successfully initialized the main branch, created a new branch named azure-pipelines, and set up a new Azure Pipelines YAML pipeline using the ASP.NET template


Page 27 out of 98 Pages
Previous