Microsoft Designing and Implementing Microsoft DevOps Solutions (AZ-400日本語版) - AZ-400日本語 Exam Practice Test
タスク9
デフォルトのメインブランチが存在しない場合は、初期化します。
srcディレクトリに対して.NET Coreビルドタスクを実行するパイプラインを作成する必要があります。
パイプラインコードは、azure-pipelinesT という名前の新しいブランチに保存する必要があります。
mamブランチに対するプルリクエストが作成または更新された際に、パイプラインが自動的に実行される必要があります。
デフォルトのメインブランチが存在しない場合は、初期化します。
srcディレクトリに対して.NET Coreビルドタスクを実行するパイプラインを作成する必要があります。
パイプラインコードは、azure-pipelinesT という名前の新しいブランチに保存する必要があります。
mamブランチに対するプルリクエストが作成または更新された際に、パイプラインが自動的に実行される必要があります。
Correct Answer:
See explanation below
Explanation:
Task 9: Initialize the main branch (if it doesn't exist) and create a pull request-triggered pipeline for .NET Core build Step 1: Initialize the main Branch In your Azure DevOps Project (Project1), navigate to Repos.
In the left menu, click Files.
If you see a message like "This repository is empty," click Initialize.
Create a README.md file (or another file) and set the default branch name to main.
Click Initialize.
If the main branch already exists, you can skip this step.
Step 2: Create a New Branch for the Pipeline
In Repos > Files, click on the Branches tab.
Click New branch.
Enter:
Branch name: azure-pipelinesT
Based on: main
Click Create.
This creates a new branch named azure-pipelinesT from main.
Step 3: Create the Pipeline YAML File in the New Branch
Switch to the azure-pipelinesT branch.
In Files, click New file.
Name the file: azure-pipelines.yml.
Step 4: Write the YAML Pipeline for .NET Core Build
Here's a sample YAML file:
trigger: none
pr:
branches:
include:
- main
pool:
vmImage: ' windows-latest '
variables:
buildConfiguration: ' Release '
steps:
- task: UseDotNet@2
displayName: ' Install .NET Core SDK '
inputs:
packageType: ' sdk '
version: ' 8.x ' # Or specify the exact version of .NET Core SDK you need installationPath: $(Agent.ToolsDirectory)/dotnet
- script: dotnet build src --configuration $(buildConfiguration)
displayName: ' Build .NET Core project '
This pipeline:
Runs only when a pull request is created or updated targeting the main branch.
Uses the windows-latest agent.
Installs the .NET SDK and builds the project in the src directory.
Step 5: Commit the Pipeline File
In the bottom commit message box:
Message: Add PR-triggered pipeline for .NET Core build
Ensure the branch is set to azure-pipelinesT.
Click Commit.
Step 6: Create the Pipeline in Azure DevOps
In the left menu, click Pipelines.
Click New pipeline.
Select:
Azure Repos Git.
Select your repository.
Choose Existing Azure Pipelines YAML file.
In the branch selector, choose the azure-pipelinesT branch.
Select the YAML file path (azure-pipelines.yml).
Click Continue and Run to validate.
Step 7: Test the Pipeline Trigger
Create a new branch (e.g., feature/test-pr).
Push a commit and create a pull request targeting main.
Verify that the pipeline runs automatically for this PR in Pipelines.
Explanation:
Task 9: Initialize the main branch (if it doesn't exist) and create a pull request-triggered pipeline for .NET Core build Step 1: Initialize the main Branch In your Azure DevOps Project (Project1), navigate to Repos.
In the left menu, click Files.
If you see a message like "This repository is empty," click Initialize.
Create a README.md file (or another file) and set the default branch name to main.
Click Initialize.
If the main branch already exists, you can skip this step.
Step 2: Create a New Branch for the Pipeline
In Repos > Files, click on the Branches tab.
Click New branch.
Enter:
Branch name: azure-pipelinesT
Based on: main
Click Create.
This creates a new branch named azure-pipelinesT from main.
Step 3: Create the Pipeline YAML File in the New Branch
Switch to the azure-pipelinesT branch.
In Files, click New file.
Name the file: azure-pipelines.yml.
Step 4: Write the YAML Pipeline for .NET Core Build
Here's a sample YAML file:
trigger: none
pr:
branches:
include:
- main
pool:
vmImage: ' windows-latest '
variables:
buildConfiguration: ' Release '
steps:
- task: UseDotNet@2
displayName: ' Install .NET Core SDK '
inputs:
packageType: ' sdk '
version: ' 8.x ' # Or specify the exact version of .NET Core SDK you need installationPath: $(Agent.ToolsDirectory)/dotnet
- script: dotnet build src --configuration $(buildConfiguration)
displayName: ' Build .NET Core project '
This pipeline:
Runs only when a pull request is created or updated targeting the main branch.
Uses the windows-latest agent.
Installs the .NET SDK and builds the project in the src directory.
Step 5: Commit the Pipeline File
In the bottom commit message box:
Message: Add PR-triggered pipeline for .NET Core build
Ensure the branch is set to azure-pipelinesT.
Click Commit.
Step 6: Create the Pipeline in Azure DevOps
In the left menu, click Pipelines.
Click New pipeline.
Select:
Azure Repos Git.
Select your repository.
Choose Existing Azure Pipelines YAML file.
In the branch selector, choose the azure-pipelinesT branch.
Select the YAML file path (azure-pipelines.yml).
Click Continue and Run to validate.
Step 7: Test the Pipeline Trigger
Create a new branch (e.g., feature/test-pr).
Push a commit and create a pull request targeting main.
Verify that the pipeline runs automatically for this PR in Pipelines.
Terraformを使用してAzureリソースグループをデプロイする予定です。
計画された展開をサポートするには、必要なフレームワークをインストールする必要があります。
どの2つのフレームワークをインストールする必要がありますか?それぞれの正解は、ソリューションの一部を示しています。
注:それぞれの正しい選択は1ポイントの価値があります。
計画された展開をサポートするには、必要なフレームワークをインストールする必要があります。
どの2つのフレームワークをインストールする必要がありますか?それぞれの正解は、ソリューションの一部を示しています。
注:それぞれの正しい選択は1ポイントの価値があります。
Correct Answer: B,C
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Azure DevOps を使用して、Kubernetes クラスターでホストされるアプリケーションを構築およびデプロイする予定です。
アプリイメージをクラスターにデプロイする前に、脆弱性がないかスキャンする必要があります。
解決策には何を含めるべきですか?
アプリイメージをクラスターにデプロイする前に、脆弱性がないかスキャンする必要があります。
解決策には何を含めるべきですか?
Correct Answer: A
あなたはAzureサブスクリプションをお持ちです。
仮想マシンとウェブサイトを作成するために使用する、Template1とTemplate2という名前の2つのBicepテンプレートを作成します。
Template1とTemplate2のロジックを再利用するために、Template3という名前のテンプレートを作成する必要があります。
まず最初に何を定義すべきでしょうか?
仮想マシンとウェブサイトを作成するために使用する、Template1とTemplate2という名前の2つのBicepテンプレートを作成します。
Template1とTemplate2のロジックを再利用するために、Template3という名前のテンプレートを作成する必要があります。
まず最初に何を定義すべきでしょうか?
Correct Answer: A
Azure Monitor を使用する Azure サブスクリプションがあり、その中に Log Analytics ワークスペースが含まれています。
あなたは暗号化キーを持っています。
Azure Monitor がログデータを暗号化するためにキーを使用するように構成する必要があります

あなたは暗号化キーを持っています。
Azure Monitor がログデータを暗号化するためにキーを使用するように構成する必要があります

Correct Answer:

Explanation:

ソースコードリポジトリとしてGitHubを使用しています。
commit-msgイベントでクライアント側のGitフックを作成します。フックでは、各コミットメッセージにカスタム作業項目タグが含まれている必要があります。
作業項目タグのないコミットを行う必要があります。
どのgitcommitパラメーターを使用する必要がありますか?
commit-msgイベントでクライアント側のGitフックを作成します。フックでは、各コミットメッセージにカスタム作業項目タグが含まれている必要があります。
作業項目タグのないコミットを行う必要があります。
どのgitcommitパラメーターを使用する必要がありますか?
Correct Answer: A
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Contosoという名前のAzure DevOps組織とAzureサブスクリプションをお持ちです。
Azure DevOps を使用して、App1 という名前の Web アプリを構築およびデプロイします。Azure Monitor は、App1 でサーバー側エラーが発生するたびに生成されるアラートに応じて、電子メール通知を生成するように構成されています。
Azure Monitorのアラートが生成された際に、Microsoft Teamsで通知を受け取るように設定する必要があります。
どの2つの行動をとるべきでしょうか?それぞれの正解は、解決策の一部を示しています。
注:正解ごとに1ポイントが加算されます。
Azure DevOps を使用して、App1 という名前の Web アプリを構築およびデプロイします。Azure Monitor は、App1 でサーバー側エラーが発生するたびに生成されるアラートに応じて、電子メール通知を生成するように構成されています。
Azure Monitorのアラートが生成された際に、Microsoft Teamsで通知を受け取るように設定する必要があります。
どの2つの行動をとるべきでしょうか?それぞれの正解は、解決策の一部を示しています。
注:正解ごとに1ポイントが加算されます。
Correct Answer: A,E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
あなたは、Windows Server 2019のServer Coreインストール環境で動作するサーバーアプリケーションをデプロイしようとしています。
Azure Key Vaultとシークレットを作成します。
サードパーティとの連携におけるAPIシークレットを保護するには、キーボールトを使用する必要があります。
実行すべき3つの行動はどれですか?それぞれの正解は、解決策の一部を示しています。
注:正解ごとに1ポイントが加算されます。
D18912E1457D5D1DDCBD40AB3BF70D5D
Azure Key Vaultとシークレットを作成します。
サードパーティとの連携におけるAPIシークレットを保護するには、キーボールトを使用する必要があります。
実行すべき3つの行動はどれですか?それぞれの正解は、解決策の一部を示しています。
注:正解ごとに1ポイントが加算されます。
D18912E1457D5D1DDCBD40AB3BF70D5D
Correct Answer: B,C,D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Azure Pipelines パイプラインを開発しています。
パイプラインがビルドを運用環境にデプロイする前に、Azure Boards を照会してアクティブな作業項目の問題がないことを確認するチェックをパイプライン内に構成する必要があります。
どのタイプのチェックを実装する必要がありますか?
パイプラインがビルドを運用環境にデプロイする前に、Azure Boards を照会してアクティブな作業項目の問題がないことを確認するチェックをパイプライン内に構成する必要があります。
どのタイプのチェックを実装する必要がありますか?
Correct Answer: C
あなたの会社はJavaで新しいソリューションを構築しています。
同社は現在、SonarQubeサーバーを使って.NETソリューションのコードを分析しています。
Javaソリューションのコード品質を分析し監視する必要があります。
ビルドパイプラインにどのタスクタイプを追加しますか?
同社は現在、SonarQubeサーバーを使って.NETソリューションのコードを分析しています。
Javaソリューションのコード品質を分析し監視する必要があります。
ビルドパイプラインにどのタスクタイプを追加しますか?
Correct Answer: D
貴社は、サードパーティのパブリッククラウド上でLinuxを実行する仮想マシンを2台所有しています。
あなたは、会社のAzure Automation State Configurationの実装を使用して、2台の仮想マシンを管理し、構成のずれを検出する予定です。
Linux仮想マシンをオンボーディングする必要があります。
仮想マシンにPowerShell Desired State Configuration (DSC)をインストールし、register.pyを実行します。
次に実行すべき3つの行動はどれですか?回答するには、行動リストから該当する行動を回答欄に移動させ、正しい順序に並べ替えてください。

あなたは、会社のAzure Automation State Configurationの実装を使用して、2台の仮想マシンを管理し、構成のずれを検出する予定です。
Linux仮想マシンをオンボーディングする必要があります。
仮想マシンにPowerShell Desired State Configuration (DSC)をインストールし、register.pyを実行します。
次に実行すべき3つの行動はどれですか?回答するには、行動リストから該当する行動を回答欄に移動させ、正しい順序に並べ替えてください。

Correct Answer:

Explanation:
Step 1: Create a DSC metaconfiguration
Load up the DSC Configuration into Azure Automation.
Step 2: Copy the metaconfiguration to the virtual machines.
Linking the Node Configuration to the Linux Host
Step 3: Add the virtual machines as DSC nodes in Azure Automation.
go to DSC Nodes, select your node, and then click Assign node configuration. This step assigns the DSC configuration to the Linux machine.
Next up will be to link the node configuration to the host. Go to the host and press the "Assign node..."- button. Next up you can select your node configuration.