Pass4Future also provide interactive practice exam software for preparing Microsoft Designing and Implementing Microsoft DevOps Solutions (AZ-400) Exam effectively. You are welcome to explore sample free Microsoft AZ-400 Exam questions below and also try Microsoft AZ-400 Exam practice test software.
Do you know that you can access more real Microsoft AZ-400 exam questions via Premium Access? ()
SIMULATION
Task 4
You need to configure a virtual machine template in a DevTest Labs environment named az400-38443478-dtl1. The operating system must be based on Windows Server 2016 Datacenter. Virtual machines created from the DevTest Lab must include the Selenium tool and the Google Chrome browser.
Answer : A
To configure a virtual machine template in your DevTest Labs environment named az400-38443478-dtl1 with Windows Server 2016 Datacenter that includes the Selenium tool and the Google Chrome browser, follow these steps:
Create a Custom Image with Windows Server 2016 Datacenter:
In the Azure Portal, go to your DevTest Lab az400-38443478-dtl1.
Navigate to Configuration and policies > Custom images.
Use an existing VM or create a new one with Windows Server 2016 Datacenter.
After setting up the VM, capture it to create a custom image1.
Install Selenium and Google Chrome on the VM:
Connect to the VM via RDP.
Generalize the VM:
Run the sysprep command to generalize the VM, which prepares it to be used as a template.
Shut down the VM after sysprep completes.
Capture the Generalized VM to Create a Template:
In the Azure Portal, navigate to the VM and select Capture.
Provide the required details and create the image.
Add Selenium and Google Chrome Artifacts to the Template:
Go back to the DevTest Lab az400-38443478-dtl1.
Select Artifacts and add Selenium and Google Chrome artifacts to the template.
Ensure these artifacts are configured to install during the VM creation process.
Create VMs from the Template:
Now, when you create a new VM in the DevTest Lab, select the custom image you created.
The VM will be provisioned with Windows Server 2016 Datacenter, and the Selenium tool and Google Chrome browser will be installed automatically.
By following these steps, you can ensure that all virtual machines created from this template in your DevTest Lab will have the required operating system, tools, and browser installed. Remember to replace placeholder names with the actual names of your resources where necessary.
SIMULATION
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 : A
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.
Step 2: Create a New Branch for the Pipeline
Navigate to Branches:
Go toRepos>Branches.
Click onNew branch.
Create the Branch:
Enterazure-pipelinesas the branch name.
Selectmainas the base branch.
Step 3: Create a New Azure Pipelines YAML Pipeline
Navigate to Pipelines:
Go toPipelines>New pipeline.
Select the Repository:
ChooseAzure Repos Gitand select the relevant repository.
Configure the Pipeline:
SelectStarter pipeline.
Replace the default YAML with the ASP.NET template. You can find the ASP.NET template in the Azure Pipelines documentation or use the following example:
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
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:
Click onSaveand enterazure-pipelinesas the branch name.
Click onSave and runto save the pipeline to the new branch namedazure-pipelines3.
SIMULATION
Task 9
In Project1, you need to create a variable group named varGroup1 that will contain the following variables:
serverNane: server1 dbName: db1
Answer : A
Step 1: Navigate to the Library
Navigate to Azure DevOps:
Go to Azure DevOps and sign in with your credentials.
Select Your Project:
ChooseProject1from your list of projects.
Access the Library:
In the left-hand menu, selectPipelines>Library.
Step 2: Create a Variable Group
Create a New Variable Group:
On the Library page, click on+ Variable group.
Configure the Variable Group:
Name: EntervarGroup1.
Description: Optionally, add a description for the variable group.
Add Variables:
Click on+ Addto add a new variable.
Variable Name: EnterserverName.
Value: Enterserver1.
ClickOK.
Click on+ Addagain to add another variable.
Variable Name: EnterdbName.
Value: Enterdb1.
ClickOK.
Save the Variable Group:
Click onSaveto save the variable group.
SIMULATION
Task 10
For Project1, you need to ensure that artifacts, symbols, and attachments are retained for 60 days.
Answer : A
Step 1: Navigate to Project Settings
Navigate to Azure DevOps:
Go to Azure DevOps and sign in with your credentials.
Select Your Project:
ChooseProject1from your list of projects.
Access Project Settings:
In the left-hand menu, scroll down and selectProject settings.
Step 2: Configure Retention Policies
Navigate to Pipelines Settings:
UnderPipelines, selectSettings.
Set Retention Policies:
In theRetentionsection, set the number of days to keep artifacts, symbols, and attachments to60 days.
Ensure that the retention policy is applied to all relevant pipelines and branches.
Save Changes:
Click onSaveto apply the retention policy1.
SIMULATION
Task 11
You need to write a KQL query that will count the number of inbound requests for each source IP address, for any connection made during the last three months of 2021.
Open Azure Data Explorer by using the following link:
https//dataexploter azure.com/clusters/help/databases/Securiitylogs
The requests are contained in a table named InboundBrowsing in the Securitylogs connection.
The query must return two columns named NumberOfRequests and SourcelP.
Export the query result to C:\Samples
Answer : A
Step 1: Write the KQL Query
Open Azure Data Explorer:
Navigate to Azure Data Explorer and sign in with your credentials.
Access the Securitylogs Database:
Open theSecuritylogsdatabase.
Write the Query:
Use the following KQL query to count the number of inbound requests for each source IP address:
InboundBrowsing
| where Timestamp between (datetime(2021-10-01) .. datetime(2021-12-31))
| summarize NumberOfRequests = count() by SourceIP
| project SourceIP, NumberOfRequests
Step 2: Export the Query Results
Run the Query:
Execute the query in Azure Data Explorer.
Export the Results:
Once the query results are displayed, click on theExportbutton.
Choose the export format (e.g., CSV) and specify the export path asC:\Samples.