AZ-400 Practice Test Questions

488 Questions


Topic 5, Labs & Tasks

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.






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.

You have a public GitHub repository named Public1. A commit is made to Public1. The commit contains a pattern that matches a regular expression. Who is notified first when the commit is made?


A. the owner of Public1


B. the secret scanning partner


C. the committer


D. the administrator of the GitHub organization





B.
  the secret scanning partner

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.






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

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: 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

You have a project in Azure DevOps. You need to push notifications about pull requests to a Microsoft Teams channel. The solution must minimize development effort. What should you do?


A. Install the Azure Repos app for teams and configure a subscription to receive notifications in the channel.


B. Use Azure Automation to connect to the Azure DevOps REST API and send messages to Teams.


C. Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in the channel.


D. Use an Azure function to connect to the Azure DevOps REST API and send messages to Teams.





C.
  Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in the channel.

Task 9
In Project1, you need to create a variable group named varGroup1 that will contain the following variables:
serverNane: server1 dbName: db1






Answer: See the solution below in explanation.

Explanation: Step 1: Navigate to the Library
Navigate to Azure DevOps:
Select Your Project:
Access the Library:
Step 2: Create a Variable Group
Create a New Variable Group:
Configure the Variable Group:
Add Variables:
Save the Variable Group:
By following these steps, you will have successfully created a variable group named varGroup1 containing the specified variables

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: See the solution below in explanation.

Explanation:
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:
uk.co.certification.simulator.questionpool.PList@34825ba9 Install Selenium and Google Chrome on the VM:
Generalize the VM:
Capture the Generalized VM to Create a Template:
Add Selenium and Google Chrome Artifacts to the Template: Create VMs from the Template: 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.

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 an Octopus Tentacle on an on-premises machine. Use the Package Application task in the build pipeline. Does this meet the goal?


A. Yes


B. No





A.
  Yes

Explanation: Octopus Deploy is an automated deployment server that makes it easy to automate deployment of ASP.NET web applications, Java applications, NodeJS application and custom scripts to multiple environments.
Octopus can be installed on various platforms including Windows, Mac and Linux. It can also be integrated with most version control tools including VSTS and GIT.
When you deploy software to Windows servers, you need to install Tentacle, a lightweight agent service, on your Windows servers so they can communicate with the Octopus server.
When defining your deployment process, the most common step type will be a package step. This step deploys your packaged application onto one or more deployment targets.
When deploying a package you will need to select the machine role that the package will be deployed to.

Task 2
You need to create an instance of Azure Application Insights named az400-38443478-main and configure the instance to receive telemetry data from an Azure web app named az400- 38443478-main
You must create a Log Analytics workspace before this task.






Answer: See the solution below in explanation.

Explanation: To create an instance of Azure Application Insights named az400-38443478-main and configure it to receive telemetry data from an Azure web app with the same name, you’ll need to follow these steps:
Create a Log Analytics Workspace:
uk.co.certification.simulator.questionpool.PList@6141a294 Create an Azure Application Insights Instance:
Configure the Azure Web App to Send Telemetry Data: Verify Telemetry Data Reception: Remember to replace placeholder names with the actual names of your resources where necessary. These steps will help you set up Azure Application Insights to monitor your web app effectively.

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 plan to update the Azure DevOps strategy of your company. You need to identify the following issues as they occur during the company’s development process:

  • Licensing violations
  • Prohibited libraries
Solution: You implement continuous deployment. Does this meet the goal?


A. Yes


B. No





B.
  No

Note: WhiteSource is the leader in continuous open source software security and compliance management. WhiteSource integrates into your build process, irrespective of your programming languages, build tools, or development environments. It works automatically, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against WhiteSource constantly-updated denitive database of open source repositories.

Task 3
You need to create a new team dashboard named Dashboard1 for the default project team of Project1. The dashboard must display the members of the team






Answer: See the solution below in explanation.

Explanation: Step 1: Create a New Team Dashboard
Navigate to Azure DevOps:
Select Your Project:
Access Dashboards:
Create a New Dashboard:
Step 2: Add the Team Members Widget
Open the Widget Catalog:
Search for Team Members Widget:
Add the Widget:
Configure the Widget:
Step 3: Save and Share the Dashboard
Save the Dashboard:
Share the Dashboard:
By following these steps, you will have a new team dashboard named Dashboard1 that displays the members of the default project team for Project1

You have a project in Azure DevOps named Project1. Project1 contains a build pipeline named Pipe1 that builds an application named Appl. You have an agent pool named Pool1 that contains a Windows Server 2019-based selfhosted agent. Pipe1 uses Pool1. You plan to implement another project named Project2. Project2 will have a build pipeline named Pipe2 that builds an application named App2. App1 and App2 have conflicting dependencies. You need to minimize the possibility that the two build pipelines will conflict with each other. The solution must minimize infrastructure costs. What should you do?


A. Create two container jobs


B. Change the self-hosted agent to use Red Hat Enterprise Linux (RHEL) 9.


C. Add another self-hosted agent


D. Add a Docker Compose task to the build pipelines





A.
  Create two container jobs


Page 10 out of 41 Pages
Previous