Microsoft Developing Solutions for Microsoft Azure (AZ-203日本語版) - AZ-203日本語 Exam Practice Test
オンラインゲームのプレーヤースコアを保存するアプリがあります。アプリは、PlayerScoreという名前のクラスをテーブルエンティティとして使用して、Azureテーブルにデータを保存します。テーブルには100,000レコードが入力されます。
プレーヤーのスコアが15,000を超える20個のレコードを取得するためのコードの次のセクションを確認しています。 (行番号は参照用にのみ含まれています。)

次のコードがあります。 (参照用に行番号が含まれています。)Azure Cosmosデータベースに顧客情報を保存します。次のデータは既にデータベースに存在します。
次のコードを開発します。 (行番号は参照用にのみ含まれています。)

以下の各ステートメントについて、ステートメントが真である場合は「はい」を選択します。それ以外の場合は、「いいえ」を選択します。
注:それぞれの正しい選択には1ポイントの価値があります。

プレーヤーのスコアが15,000を超える20個のレコードを取得するためのコードの次のセクションを確認しています。 (行番号は参照用にのみ含まれています。)

次のコードがあります。 (参照用に行番号が含まれています。)Azure Cosmosデータベースに顧客情報を保存します。次のデータは既にデータベースに存在します。
次のコードを開発します。 (行番号は参照用にのみ含まれています。)

以下の各ステートメントについて、ステートメントが真である場合は「はい」を選択します。それ以外の場合は、「いいえ」を選択します。
注:それぞれの正しい選択には1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: No
Box 2: Yes
The TableQuery.Take method defines the upper bound for the number of entities the query returns.
Example:
query.Take(10);
Box 3: Yes
Box 4: Yes
References:
https://www.vkinfotek.com/azureqa/how-do-i-query-azure-table-storage-using-tablequery-class.html
注:この質問は同じシナリオを提示する一連の質問の一部です。シリーズの各質問には固有の解決策が含まれています解決策が記載された目標を満たしているかどうかを判断します。
仕入先通知要件を満たす必要があります。
解決策:Azure API Managementインスタンスで通知を構成します。
解決策は目標を満たしていますか?
仕入先通知要件を満たす必要があります。
解決策:Azure API Managementインスタンスで通知を構成します。
解決策は目標を満たしていますか?
Correct Answer: A
Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
Visual Studioを使用してAzure Function Appを開発しています。アプリはAzure Web Appによる注文入力を処理します。 Webアプリは注文情報をAzure Queue Storageに配置します。
以下に示すAzure Function Appコードを確認する必要があります。

注:それぞれ正しい選択は1ポイントの価値があります。

以下に示すAzure Function Appコードを確認する必要があります。

注:それぞれ正しい選択は1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: No
ExpirationTime - The time that the message expires.
InsertionTime - The time that the message was added to the queue.
Box 2: Yes
maxDequeueCount - The number of times to try processing a message before moving it to the poison queue.
Default value is 5.
Box 3: Yes
When there are multiple queue messages waiting, the queue trigger retrieves a batch of messages and invokes function instances concurrently to process them. By default, the batch size is 16. When the number being processed gets down to 8, the runtime gets another batch and starts processing those messages. So the maximum number of concurrent messages being processed per function on one virtual machine (VM) is 24.
Box 4: Yes
References:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue
ある会社がJava Webアプリケーションを開発しています。 Webアプリのコードは、次の場所にあるGitHubリポジトリでホストされています。
https://github.com/Contoso/webapp
Webアプリケーションは、運用環境に移行する前に評価する必要があります。最初のコードリリースをstagingという名前の配置スロットに配置する必要があります。
Webアプリケーションを作成してコードをデプロイする必要があります。
どのようにコマンドを完成させるべきですか?回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

https://github.com/Contoso/webapp
Webアプリケーションは、運用環境に移行する前に評価する必要があります。最初のコードリリースをstagingという名前の配置スロットに配置する必要があります。
Webアプリケーションを作成してコードをデプロイする必要があります。
どのようにコマンドを完成させるべきですか?回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

Correct Answer:

Explanation


Box 1: group
# Create a resource group.
az group create --location westeurope --name myResourceGroup
Box 2: appservice plan
# Create an App Service plan in STANDARD tier (minimum required by deployment slots).
az appservice plan create --name $webappname --resource-group myResourceGroup --sku S1 Box 3: webapp
# Create a web app.
az webapp create --name $webappname --resource-group myResourceGroup \
--plan $webappname
Box 4: webapp deployment slot
#Create a deployment slot with the name "staging".
az webapp deployment slot create --name $webappname --resource-group myResourceGroup \
--slot staging
Box 5: webapp deployment source
# Deploy sample code to "staging" slot from GitHub.
az webapp deployment source config --name $webappname --resource-group myResourceGroup \
--slot staging --repo-url $gitrepo --branch master --manual-integration References:
https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment
あなたはモバイル配信サービスのためのソフトウェアソリューションを開発します。あなたは、ユーザーが自分の地域のレストランから注文するのに使用できるモバイルアプリを開発しています。アプリは次のワークフローを使用します。
1.運転手が注文を出すレストランを選択します。
2.注文はエリア内のすべての利用可能なドライバーに送信されます。
3.選択したレストランの注文のみが運転手に表示されます。
4.最初に注文を受け付けるドライバーは、それを使用可能な注文のリストから削除します。
Azure Service Busソリューションを実装する必要があります。
どの3つのアクションを順番に実行しますか?答えるには、適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。

1.運転手が注文を出すレストランを選択します。
2.注文はエリア内のすべての利用可能なドライバーに送信されます。
3.選択したレストランの注文のみが運転手に表示されます。
4.最初に注文を受け付けるドライバーは、それを使用可能な注文のリストから削除します。
Azure Service Busソリューションを実装する必要があります。
どの3つのアクションを順番に実行しますか?答えるには、適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。

Correct Answer:

Explanation

Box 1: Create a single Service Bus Namespace
To begin using Service Bus messaging entities in Azure, you must first create a namespace with a name that is unique across Azure. A namespace provides a scoping container for addressing Service Bus resources within your application.
Box 2: Create a Service Bus Topic for each restaurant for which a driver can receive messages.
Create topics.
Box 3: Create a Service Bus subscription for each restaurant for which a driver can receive orders.
Topics can have multiple, independent subscriptions.
References:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview
複数のコンテナーを使用するAzure Kubernetes Services(AKS)クラスターを展開しています。
クラスタを作成し、コンテナのサービスが正しく設定されて利用可能になっていることを確認する必要があります。
ソリューションを開発するためにどの4つのコマンドを使用する必要がありますか?回答するには、適切なコマンドセグメントをコマンドセグメントのリストから回答領域に移動し、それらを正しい順序で配置します。

クラスタを作成し、コンテナのサービスが正しく設定されて利用可能になっていることを確認する必要があります。
ソリューションを開発するためにどの4つのコマンドを使用する必要がありますか?回答するには、適切なコマンドセグメントをコマンドセグメントのリストから回答領域に移動し、それらを正しい順序で配置します。

Correct Answer:

Explanation

Step 1: az group create
Create a resource group with the az group create command. An Azure resource group is a logical group in which Azure resources are deployed and managed.
Example: The following example creates a resource group named myAKSCluster in the eastus location.
az group create --name myAKSCluster --location eastus
Step 2 : az aks create
Use the az aks create command to create an AKS cluster.
Step 3: kubectl apply
To deploy your application, use the kubectl apply command. This command parses the manifest file and creates the defined Kubernetes objects.
Step 4: az aks get-credentials
Configure it with the credentials for the new AKS cluster. Example:
az aks get-credentials --name aks-cluster --resource-group aks-resource-group References:
https://docs.bitnami.com/azure/get-started-aks/
一般向けのニュースAPI用のゲートウェイソリューションを開発します。
ニュースAPIバックエンドは、RESTfulなセンサーとして実装され、Azure App Serviceインスタンスでホストされています。
API Managementサービスインスタンスのバックエンド認証を設定する必要があります。
どのターゲットとゲートウェイの認証情報タイプを使用しますか?答えるには、適切な値を正しいパラメータにドラッグします。それぞれの値は、一度だけ、二度以上、あるいはまったく使われないかもしれません。コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。
注:それぞれ正しい選択は1ポイントの価値があります。

ニュースAPIバックエンドは、RESTfulなセンサーとして実装され、Azure App Serviceインスタンスでホストされています。
API Managementサービスインスタンスのバックエンド認証を設定する必要があります。
どのターゲットとゲートウェイの認証情報タイプを使用しますか?答えるには、適切な値を正しいパラメータにドラッグします。それぞれの値は、一度だけ、二度以上、あるいはまったく使われないかもしれません。コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。
注:それぞれ正しい選択は1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: Azure Resource
Box 2: Client cert
API Management allows to secure access to the back-end service of an API using client certificates.
References:
https://docs.microsoft.com/en-us/rest/api/apimanagement/apimanagementrest/azure-api-management-rest-api-ba
部門番号:148
注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、記載された目標を達成する可能性がある独自のソリューションが含まれています。一部の質問セットには複数の正しい解決策がある場合もあれば、正しい解決策がない場合もあります。
この質問の質問に回答すると、その質問に戻ることはできません。その結果、これらの質問はレビュー画面に表示されません。
Azure Kubernetes Service(AKS)クラスターにデプロイされるソリューションを開発しています。ソリューションには、カスタムVNet、Azure Container Registryイメージ、およびAzure Storageアカウントが含まれます。
ソリューションは、AKSクラスター内のすべてのAzureリソースの動的な作成と管理を許可する必要があります。
Azure APIで使用するAKSクラスターを構成する必要があります。
解決策:ネットワークポリシーをサポートするAKSクラスターを作成します。定義された名前空間内からのトラフィックのみを許可するネットワークを作成して適用します。
ソリューションは目標を達成していますか?
注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、記載された目標を達成する可能性がある独自のソリューションが含まれています。一部の質問セットには複数の正しい解決策がある場合もあれば、正しい解決策がない場合もあります。
この質問の質問に回答すると、その質問に戻ることはできません。その結果、これらの質問はレビュー画面に表示されません。
Azure Kubernetes Service(AKS)クラスターにデプロイされるソリューションを開発しています。ソリューションには、カスタムVNet、Azure Container Registryイメージ、およびAzure Storageアカウントが含まれます。
ソリューションは、AKSクラスター内のすべてのAzureリソースの動的な作成と管理を許可する必要があります。
Azure APIで使用するAKSクラスターを構成する必要があります。
解決策:ネットワークポリシーをサポートするAKSクラスターを作成します。定義された名前空間内からのトラフィックのみを許可するネットワークを作成して適用します。
ソリューションは目標を達成していますか?
Correct Answer: B
Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
dataという名前のAzure blobを使用してアプリケーションデータを保存するアプリケーションを開発しています。アプリケーションはblobスナップショットを作成して、アプリケーションの状態を以前の状態に戻すことができます。 Azureストレージアカウントでは、ソフト削除が有効になっています。
システムは次の操作を順番に実行します。
* BLOBが更新されます
*スナップショット1が作成されます。
*スナップショット2が作成されます。
*スナップショット1が削除されます。
システムエラーが発生すると、データBLOBとすべてのスナップショットが削除されます。
どのアプリケーション状態を復元できるかを決定する必要があります。
アプリケーションデータの復元可能性はどのくらいですか?回答するには、回答エリアで適切なオプションを選択します。
注:それぞれの正しい選択には1ポイントの価値があります。

システムは次の操作を順番に実行します。
* BLOBが更新されます
*スナップショット1が作成されます。
*スナップショット2が作成されます。
*スナップショット1が削除されます。
システムエラーが発生すると、データBLOBとすべてのスナップショットが削除されます。
どのアプリケーション状態を復元できるかを決定する必要があります。
アプリケーションデータの復元可能性はどのくらいですか?回答するには、回答エリアで適切なオプションを選択します。
注:それぞれの正しい選択には1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: Can be restored
When enabled, soft delete enables you to save and recover your data when blobs or blob snapshots are deleted.
This protection extends to blob data that is erased as the result of an overwrite.
Box 2: Cannot be restored
It has been deleted.
Box 3: Can be restored
It has not been deleted.
References:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-soft-delete
注:このセクションでは、同じシナリオと問題についての質問が1つ以上表示されます。それぞれの質問は問題に対する独自の解決策を提示します、そしてあなたは解決策が述べられた目標を満たすかどうか決定しなければなりません。複数の解決策が問題を解決するかもしれません。解決策のどれも問題を解決しないことはまた可能性のあるです。
このセクションで質問に答えた後は、それに戻ることはできません。その結果、これらの質問はレビュー画面に表示されません。
注:この質問は同じシナリオを提示する一連の質問の一部です。シリーズの各質問には固有の解決策が含まれています。解決策が記載されている目標を満たしているかどうかを判断します。
LabelMakerのアプリケーションセキュリティ要件を満たす必要があります。
解決策:RoleBindingを作成してAzure ADアカウントに割り当てます。
解決策は目標を満たしていますか?
このセクションで質問に答えた後は、それに戻ることはできません。その結果、これらの質問はレビュー画面に表示されません。
注:この質問は同じシナリオを提示する一連の質問の一部です。シリーズの各質問には固有の解決策が含まれています。解決策が記載されている目標を満たしているかどうかを判断します。
LabelMakerのアプリケーションセキュリティ要件を満たす必要があります。
解決策:RoleBindingを作成してAzure ADアカウントに割り当てます。
解決策は目標を満たしていますか?
Correct Answer: A
Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
ユーザーエクスペリエンスに影響を与えずに、DatabaseクラスのLoadUserDetails関数で再試行を構成する必要があります。
DB07行にどんなコードを入れるべきですか?
回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

DB07行にどんなコードを入れるべきですか?
回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: Policy
RetryPolicy retry = Policy
Handle<HttpRequestException>()
Retry(3);
The above example will create a retry policy which will retry up to three times if an action fails with an exception handled by the Policy.
Box 2: WaitAndRetryAsync(3,i => TimeSpan.FromMilliseconds(100* Math.Pow(2,i-1))); A common retry strategy is exponential backoff: this allows for retries to be made initially quickly, but then at progressively longer intervals, to avoid hitting a subsystem with repeated frequent calls if the subsystem may be struggling.
Example:
Policy
Handle<SomeExceptionType>()
WaitAndRetry(3, retryAttempt =>
TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))
);
References:
https://github.com/App-vNext/Polly/wiki/Retry
Fourth Coffeeには、Dockerで動作するASP.NET Core Webアプリケーションがあります。アプリはwww.fourthcoffee.comドメインにマッピングされています。
Fourth CoffeeはこのアプリケーションをAzureに移行しています。
このdockerイメージをホストし、カスタムドメインをApp Service Webアプリケーションにマッピングするには、App Service Webアプリケーションをプロビジョニングする必要があります。
FourthCoffeePublicWebResourceGroupという名前のリソースグループが、AppServiceLinuxDockerPlanという名前のApp Service Planを含むWestUSリージョンに作成されました。
ソリューションを開発するためにCLIコマンドを使用する順序はどれですか。回答するには、すべてのAzure CLIコマンドをコマンドの一覧から回答領域に移動して、正しい順序に並べます。

Fourth CoffeeはこのアプリケーションをAzureに移行しています。
このdockerイメージをホストし、カスタムドメインをApp Service Webアプリケーションにマッピングするには、App Service Webアプリケーションをプロビジョニングする必要があります。
FourthCoffeePublicWebResourceGroupという名前のリソースグループが、AppServiceLinuxDockerPlanという名前のApp Service Planを含むWestUSリージョンに作成されました。
ソリューションを開発するためにCLIコマンドを使用する順序はどれですか。回答するには、すべてのAzure CLIコマンドをコマンドの一覧から回答領域に移動して、正しい順序に並べます。

Correct Answer:

Explanation

Step 1: #bin/bash
The appName is used when the webapp-name is created in step 2.
Step 2: az webapp config hostname add
The webapp-name is used when the webapp is created in step 3.
Step 3: az webapp create
Create a web app. In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command.
Step : az webapp confing container set
In Create a web app, you specified an image on Docker Hub in the az webapp create command. This is good enough for a public image. To use a private image, you need to configure your Docker account ID and password in your Azure web app.
In the Cloud Shell, follow the az webapp create command with az webapp config container set.
References:
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image
ファイルを処理して変換し、そのファイルをAzureストレージに保存するAzure Batchプロジェクトがあります。バッチジョブを開始する機能を開発しています。
関数に次のパラメータを追加します。

変換したファイルは、outputContainerSasUrlパラメーターで参照されるコンテナーに配置するようにしなければなりません。変換に失敗したファイルは、failedContainerSasUrlパラメータによって参照されるコンテナ内の場所です。
ファイルが正しく処理されていることを確認する必要があります。
どのようにしてコードセグメントを完成させるべきですか?回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

関数に次のパラメータを追加します。

変換したファイルは、outputContainerSasUrlパラメーターで参照されるコンテナーに配置するようにしなければなりません。変換に失敗したファイルは、failedContainerSasUrlパラメータによって参照されるコンテナ内の場所です。
ファイルが正しく処理されていることを確認する必要があります。
どのようにしてコードセグメントを完成させるべきですか?回答するには、回答領域で適切なオプションを選択します。
注:それぞれ正しい選択は1ポイントの価値があります。

Correct Answer:

Explanation


Box 1: CreateJob
Box 2: TaskSuccess
TaskSuccess: Upload the file(s) only after the task process exits with an exit code of 0.
Incorrect: TaskCompletion: Upload the file(s) after the task process exits, no matter what the exit code was.
Box 3: TaskFailure
TaskFailure:Upload the file(s) only after the task process exits with a nonzero exit code.
Box 4: OutputFiles
To specify output files for a task, create a collection of OutputFile objects and assign it to the CloudTask.OutputFiles property when you create the task.
References:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.protocol.models.outputfileuploadcondition
https://docs.microsoft.com/en-us/azure/batch/batch-task-output-files
Shipping Webサイトのエラーを解決する必要があります。
Azure Table Storageサービスをどのように構成する必要がありますか? 答えるには、適切なオプションを選択します
回答エリア。
注:それぞれの正しい選択には1ポイントの価値があります。

Azure Table Storageサービスをどのように構成する必要がありますか? 答えるには、適切なオプションを選択します
回答エリア。
注:それぞれの正しい選択には1ポイントの価値があります。

Correct Answer:

Explanation

Box 1: AllowedOrigins
A CORS request will fail if Access-Control-Allow-Origin is missing.
Scenario:
The following error message displays while you are testing the website:

Box
2: http://test-shippingapi.wideworldimporters.com
Syntax: Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: <origin>
Access-Control-Allow-Origin: null
<origin> Specifies an origin. Only a single origin can be specified.
Box 3: AllowedOrigins
Box 4: POST
The only allowed methods are GET, HEAD, and POST. In this case POST is used.
"<Corsrule>" "allowedmethods" Failed to load no "Access-control-Origin" header is present References:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
Topic 2, Coho Winery
Case Study:
Overview
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference infonnation that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section.
To start the case study
To display the first question in this case study, dick the Next button Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
LabelMaker app
Coho Winery produces, bottles, and distributes a variety of wines globally. You are a developer implementing highly scalable and resilient applications to support online order processing by using Azure solutions.
Coho Winery has a LabelMaker application that prints labels for wine bottles. The application sends data to several printers. The application consists of five modules that run independently on virtual machines (VMs).
Coho Winery plans to move the application to Azure and continue to support label creation.
External partners send data to the LabelMaker application to include artwork and text for custom label designs.
Requirements
Data
You identify the following requirements for data management and manipulation:
* Order data is stored as nonrelational JSON and must be queried using Structured Query Language (SQL).
* Changes to the Order data must reflect immediately across all partitions. All reads to the Order data must fetch the most recent writes.
Security
You have the following security requirements:
* Users of Coho Winery applications must be able to provide access to documents, resources, and applications to external partners.
* External partners must use their own credentials and authenticate with their organization's identity management solution.
* External partner logins must be audited monthly for application use by a user account administrator to maintain company compliance.
* Storage of e-commerce application settings must be maintained in Azure Key Vault.
* E-commerce application sign-ins must be secured by using Azure App Service authentication and Azure Active Directory (AAD).
* Conditional access policies must be applied at the application level to protect company content.
* The LabelMaker application must be secured by using an AAD account that has full access to all namespaces of the Azure Kubernetes Service (AKS) cluster.
LabelMaker app
Azure Monitor Container Health must be used to monitor the performance of workloads that are deployed to Kubernetes environments and hosted on Azure Kubernetes Service (AKS).
You must use Azure Container Registry to publish images that support the AKS deployment.
Architecture

Issues
Calls to the Printer API App fall periodically due to printer communication timeouts.
Printer communication timeouts occur after 10 seconds. The label printer must only receive up to 5 attempts within one minute The order workflow fails to run upon initial deployment to Azure.
Order.Json
Relevant portions oi the app files are shown below. Line numbers are included for reference only. The JSON file contains a representation of the data for an order that includes a single item.

