ExamGecko
Home Home / Microsoft / AZ-400

Microsoft AZ-400 Practice Test - Questions Answers, Page 31

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You have an Azure subscription that contains the resources shown in the following table.

You plan to create a linked service in DF1. The linked service will connect to SQL1 by using Microsoft SQL Server authentication. The password for the SQL Server login will be stored in KV1.

You need to configure DF1 to retrieve the password when the data factory connects to SQL1. The solution must use the principle of least privilege.

How should you configure DF1? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 301
Correct answer: Question 301

Explanation:

Box 1: Secret

Store credential in Azure Key Vault by reference secret stored in key vault.

To reference a credential stored in Azure Key Vault, you need to:

1. Retrieve data factory managed identity

2. Grant the managed identity access to your Azure Key Vault. In your key vault -> Access policies -> Add Access Policy, search this managed identity to grant Get permission in Secret permissions dropdown. It allows this designated factory to access secret in key vault.

3. Create a linked service pointing to your Azure Key Vault.

4. Create data store linked service, inside which reference the corresponding secret stored in key vault. Box 2: Access policy

Reference: https://docs.microsoft.com/en-us/azure/data-factory/store-credentials-in-key-vault

You have several Azure Active Directory (Azure AD) accounts.

You need to ensure that users use multi-factor authentication (MFA) to access Azure apps from untrusted networks. What should you configure in Azure AD?

A.
access reviews
A.
access reviews
Answers
B.
managed identities
B.
managed identities
Answers
C.
entitlement management
C.
entitlement management
Answers
D.
conditional access
D.
conditional access
Answers
Suggested answer: D

Explanation:

You can configure a Conditional Access policy that requires MFA for access from untrusted networks.

Reference: https://docs.microsoft.com/en-us/azure/active-directory/conditional-access/howto-conditional-access-policy-all-users-mfa

HOTSPOT

Your company uses GitHub for source control. GitHub repositories store source code and store process documentation. The process documentation is saved as Microsoft Word documents that contain simple flow charts stored as .bmp files. You need to optimize the integration and versioning of the process documentation and the flow charts. The solution must meet the following requirements:

Store documents as plain text.

Minimize the number of files that must be maintained.

Simplify the modification, merging, and reuse of flow charts.

Simplify the modification, merging, and reuse of documents.


Question 303
Correct answer: Question 303

Explanation:

Box 1: Markdown (.md)

Github understands several text formats, including .txt and .md. .md stands for a file written in Markdown. Box 2: Mermaid diagrams

Mermaid lets you create diagrams and visualizations using text and code.

It is a Javascript based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically.

Reference:

https://ourcodingclub.github.io/tutorials/git/ https://mermaid-js.github.io/mermaid/#/

You have a project in Azure DevOps that has a release pipeline.

You need to integrate work item tracking and an Agile project management system to meet the following requirements:

Ensure that developers can track whether their commits are deployed to production. Report the deployment status. Minimize integration effort.

Which system should you use?

A.
Asana
A.
Asana
Answers
B.
Basecamp
B.
Basecamp
Answers
C.
Trello
C.
Trello
Answers
D.
Jira
D.
Jira
Answers
Suggested answer: D

Explanation:

Jira Software is a development tool used by agile teams to plan, track, and manage software releases. Using Azure Pipelines, teams can configure CI/CD pipelines for applications of any language, deploying to any platform or any cloud. Note: Microsoft and Atlassian have partnered together to build an integration between Azure Pipelines and Jira Software. This integration connects the two products, providing full tracking of how and when the value envisioned with an issue is delivered to end users. This enables teams to setup a tight development cycle from issue creation through release. Key development milestones like builds and deployments associated to a Jira issue can then be tracked from within Jira Software.

Incorrect Answers:

C: Trello is a collaboration tool that organizes your projects into boards. In one glance, Trello tells you what's being worked on, who's working on what, and where something is in a process.

Reference: https://devblogs.microsoft.com/devops/azure-pipelines-integration-with-jira-software/

You plan to onboard 10 new developers.

You need to recommend a development environment that meets the following requirements:

Integrates with GitHub

Provides integrated debugging tools

Supports remote workers and hot-desking environments

Supports developers who use browsers, tablets, and Chromebooks

What should you recommend?

A.
VS Code
A.
VS Code
Answers
B.
Xamarin Studio
B.
Xamarin Studio
Answers
C.
MonoDevelop
C.
MonoDevelop
Answers
D.
Github Studio Codespaces
D.
Github Studio Codespaces
Answers
Suggested answer: D

Explanation:

You can develop in your codespace directly in Visual Studio Code by connecting the GitHub Codespaces extension with your account on GitHub.

Reference: https://docs.github.com/en/codespaces/developing-in-codespaces/using-codespaces-in-visual-studio-code

HOTSPOT

You plan to use Desired State Configuration (DSC) to maintain the configuration state of virtual machines that run Windows Server.

You need to perform the following:

Install Internet Information Services (IIS) on the virtual machines. Update the default home page of the IIS web server. How should you configure the DSC configuration file? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.


Question 306
Correct answer: Question 306

Explanation:

Box 1: WindowsFeature Example:

Configuration WebsiteTest {

# Import the module that contains the resources we're using.

Import-DscResource -ModuleName PsDesiredStateConfiguration

# The Node statement specifies which targets this configuration will be applied to.

Node 'localhost' {

# The first resource block ensures that the Web-Server (IIS) feature is enabled.

WindowsFeature WebServer {

Ensure = "Present"

Name = "Web-Server" }

Box 2: File

Example continued:

# The second resource block ensures that the website content copied to the website root folder. File WebsiteContent { Ensure = 'Present'

SourcePath = 'c:\test\index.htm'

DestinationPath = 'c:\inetpub\wwwroot' }

Reference: https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart

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 build 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 get repository in Azure DevOps.

Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running the Windows Server 2022 with Visual Studio 2022 image. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:


You have a project in Azure DevOps.

You create the following YAML template named Template1.yml.

steps:

- script: npm install

- script: yarn install

- script: npm run compile

You create the following pipeline named File1.yml.

parameters: usersteps: - task: MyTask@1

- script: echo Done

You need to ensure that Template1.yaml runs before File1.yml.

How should you update File1.yml?

A.
parameters: usersteps: extends: template: template1.yml- task: MyTask@1 - script: echo Done
A.
parameters: usersteps: extends: template: template1.yml- task: MyTask@1 - script: echo Done
Answers
B.
template: template1.yml parameters: usersteps:- task: MyTask@1 - script: echo Done
B.
template: template1.yml parameters: usersteps:- task: MyTask@1 - script: echo Done
Answers
C.
extends: template: templatel.yml parameters: usersteps:- task: MyTask@1 - script: echo Done
C.
extends: template: templatel.yml parameters: usersteps:- task: MyTask@1 - script: echo Done
Answers
D.
parameters: usersteps: - template: templatel.yml- task: MyTask@1 - script: echo Done
D.
parameters: usersteps: - template: templatel.yml- task: MyTask@1 - script: echo Done
Answers
Suggested answer: C

Explanation:

Azure Pipelines offers two kinds of templates: includes and extends. Included templates behave like #include in C++: it's as if you paste the template's code right into the outer file, which references it. To continue the C++ metaphor, extends templates are more like inheritance: the template provides the outer structure of the pipeline and a set of places where the template consumer can make targeted alterations.

Example: extends: template: template.yml@templates parameters: usersteps:

- script: echo This is my first step - script: echo This is my second step

Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/security/templates

You have an Azure solution that contains a build pipeline in Azure Pipelines.

You experience intermittent delays before the build pipeline starts.

You need to reduce the time it takes to start the build pipeline.

What should you do?

A.
Enable self-hosted build agents.
A.
Enable self-hosted build agents.
Answers
B.
Create a new agent pool.
B.
Create a new agent pool.
Answers
C.
Split the build pipeline into multiple stages.
C.
Split the build pipeline into multiple stages.
Answers
D.
Purchase an additional parallel job.
D.
Purchase an additional parallel job.
Answers
Suggested answer: D

Explanation:

We need to ensure that resources are available without a startup delay. We don't have enough concurrency. To check how much concurrency you have:

To check your limits, navigate to Project settings, Parallel jobs.

Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/troubleshooting

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 build 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 get repository in Azure DevOps.

Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: A

Explanation:

To run your jobs, you'll need at least one agent. A Linux agent can build and deploy different kinds of apps, including Java and Android apps.

If your pipelines are in Azure Pipelines and a Microsoft-hosted agent meets your needs, you can skip setting up a private Linux agent.

The Azure Pipelines agent pool offers several virtual machine images to choose from, each including a broad range of tools and software. We support Ubuntu, Red Hat, and CentOS.

Reference: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=azure-devops https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml

Total 482 questions
Go to page: of 49