Task 6
Initialize the default main branch, if it does not exist already.
For Project 1, you need to implement branch merging restrictions to enable squash merge for all changes merged into the main branch.
Show answerHide answer
Explanation
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: Enable Squash Merge for the Main Branch
Navigate to Branch Policies: Enable Squash Merge: Save Changes:
Step 3: Verify the Squash Merge Policy
Create a Pull Request: Complete the Pull Request
Question 142
Task 2
For the RG1 lod42147S09 resource group, you need to create an action group named DevOpsAG that can be triggered in any region by using Alerts.
The action group must email two users named admin1 @contoso.com and admin2@contoso.com and notify members of the Owner role for the resource.
Use only the common alert schema for notifying the resource owners.
Show answerHide answer
Explanation
Answer: See the solution below in explanation.
Explanation:
Step 1: Create an Action Group
Navigate to Azure Portal:
Access Azure Monitor:
Create Action Group:
Configure Basic Settings:
Step 2: Define Actions
Add Email Notifications:
Notify Resource Owners:
Step 3: Enable Common Alert Schema
Common Alert Schema:
Step 4: Review and Create
Review:
Create:
By following these steps, you will have successfully created an action group named DevOpsAG that emails the specified users and notifies resource owners using the common alert schema
Question 143
Task 3
You need to ensure that an Azure Web App named az400-38443478-matn supports rolling upgrades The solution must ensure that only 10 percent of users who connect to az400- 38443478 main use updated versions of the app. The solution must minimize administrative effort.
Show answerHide answer
Explanation
Answer: See the solution below in explanation.
Explanation:
To ensure that your Azure Web App named az400-38443478-main supports rolling upgrades and only 10 percent of users connect to the updated version of the app, you can use deployment slots with the following steps:
Create a Deployment Slot: uk.co.certification.simulator.questionpool.PList@45d2312b Configure the Traffic Percentage:
Deploy the Updated App to the Staging Slot:
Complete the Rolling Upgrade:
By using deployment slots, you can achieve rolling upgrades with minimal administrative effort, as it allows you to test the new version on a subset of users before fully releasing it. Remember to adjust the traffic percentage and monitor the application’s performance throughout the process.
Question 144
Task 5
For Project1, you need to create a project wiki named Wiki1 that uses the Mermaid syntax to render a diagram A sample of the desired output is stored in C:\Resources\TCPHandshake.png.
Show answerHide answer
Explanation
Answer: See the solution below in explanation.
Explanation:
Step 1: Create a Project Wiki
Navigate to Azure DevOps:
Select Your Project:
Create a Wiki:
Step 2: Add Mermaid Syntax to Render a Diagram
Open the Wiki Page:
Edit the Wiki Page:
Insert Mermaid Diagram:
```mermaid graph TD; A-->B;
A-->C;
B-->D;
C-->D;
Save the Page:
Step 3: Render the TCP Handshake Diagram
Convert TCPHandshake.png to Mermaid Syntax:
```mermaid sequenceDiagram participant Client participant Server Client->>Server: SYN
Server-->>Client: SYN-ACK Client->>Server: ACK
Add the Diagram to the Wiki:
Save the Page:
By following these steps, you will have created a project wiki named Wiki1 and used Mermaid syntax to render a diagram
Question 145
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
Show answerHide answer
Explanation
Answer: See the solution below in explanation.
Explanation:
Step 1: Write the KQL Query
Open Azure Data Explorer:
Access the Securitylogs Database:
Write the Query: 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:
Export the Results:
By following these steps, you will have successfully written a KQL query to count the number of inbound requests for each source IP address during the last three months of 2021 and exported the results to C:\Samples
That's the last free question
You've seen the free 30% (145 of 488 questions). Full access unlocks every question and full-length AZ-400 mock exams (65 questions, 105 minutes), a different mock on every attempt.
Full-length mocks with the same number of questions and the same time limit as the real AZ-400 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.