AZ-204日本語試験無料問題集「Microsoft Developing Solutions for Microsoft Azure (AZ-204日本語版) 認定」

Four Coffeeには、Dockerで実行されるASP.NET CoreWebアプリがあります。アプリはwww.fourthcoffee.comドメインにマップされています。
Four Coffeeは、このアプリケーションをAzureに移行しています。
このDockerイメージをホストし、カスタムドメインをApp Service Webアプリにマップするには、App ServiceWebアプリをプロビジョニングする必要があります。
4番目のCoffeePublicWebResourceGroupという名前のリソースグループが、AppServiceLinuxDockerPlanという名前のアプリサービスプランを含むWestUSリージョンに作成されました。
ソリューションを開発するには、CLIコマンドをどの順序で使用する必要がありますか?回答するには、すべてのAzure CLIコマンドをコマンドのリストから回答領域に移動し、正しい順序で配置します。
正解:

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
Microsoft Entraテナントと統合するアプリケーションを開発しています。テナントに権限分類を実装する予定です。分類に含める権限を選択する必要があります。どの権限を選択すればよいでしょうか?

Azure EventGridからのすべてのメッセージが処理されることを確認する必要があります。
何を使うべきですか?

解説: (GoShiken メンバーにのみ表示されます)
AzureでホストされているeコマースWebアプリケーションを開発しています。アプリケーションは、Azure CosmosDBを使用して販売注文を保存します。最新のSDKを使用して、データベース内の販売注文を管理しています。
新しいAzureCosmosDBインスタンスを作成します。コードプロジェクトのappSettings.jsonファイルに有効なエンドポイントと有効な認証キーを含めます。
次のアプリケーションコードを評価しています:(行番号は参照用にのみ含まれています。)

次の各ステートメントについて、ステートメントがtrueの場合は、[はい]を選択します。それ以外の場合は、[いいえ]を選択します。
注:正しい選択はそれぞれ1ポイントの価値があります。
正解:

Explanation:

Box 1: Yes
The createDatabaseIfNotExistsAsync method checks if a database exists, and if it doesn ' t, create it.
The Database.CreateContainerAsync method creates a container as an asynchronous operation in the Azure Cosmos service.
Box 2: Yes
The CosmosContainer.CreateItemAsync method creates an item as an asynchronous operation in the Azure Cosmos service.
Box 3: Yes
Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosclient.
createdatabaseifnotexistsasync
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.database.createcontainerasync
https://docs.microsoft.com/en-us/dotnet/api/azure.cosmos.cosmoscontainer.createitemasync
あなたは Azure Function アプリを開発しています。
Azure Function アプリでは、WebHook が Azure Blob Storage からイメージを読み取り、新しい Azure Cosmos DB ドキュメントを作成できるようにする必要があります。
Azure Function アプリを実装する必要があります。
どの構成を使用する必要がありますか? 回答するには、回答領域で適切なオプションを選択してください。
注: 正しく選択するたびに 1 ポイントの価値があります。
正解:

Explanation:
注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には、固有の解決策が含まれています。ソリューションが指定された目標を満たしているかどうかを判断します。
複数のASP.NETWebアプリケーションを開発してAzureAppServiceにデプロイしています。セッション状態情報とHTML出力を保存する予定です。
次の要件を持つストレージメカニズムを使用する必要があります。
*すべてのASP.NETWebアプリケーション間でセッション状態を共有します。
*複数のリーダーと単一のライターの同じセッション状態データへの制御された同時アクセスをサポートします。
*同時リクエストの完全なHTTP応答を保存します。
情報を保存する必要があります。
解決策:アプリケーション要求ルーティング(ARR)を有効にします。
ソリューションは目標を達成していますか?

解説: (GoShiken メンバーにのみ表示されます)
AzureでホストされているLinux仮想マシン(VM)に新しいアプリケーションをデプロイすることを計画しています。
業界標準の暗号化テクノロジーを使用してVM全体を保護し、組織のセキュリティとコンプライアンスの要件に対応する必要があります。
VMのAzureDiskEncryptionを構成する必要があります。
Azure Cliコマンドをどのように完了する必要がありますか?回答するには、回答領域で適切なオプションを選択します。
注:正しい選択はそれぞれ1ポイントの価値があります。
正解:

Explanation:


Box 1: keyvault
Create an Azure Key Vault with az keyvault create and enable the Key Vault for use with disk encryption.
Specify a unique Key Vault name for keyvault_name as follows:
keyvault_name=myvaultname$RANDOM
az keyvault create \
--name $keyvault_name \
--resource-group $resourcegroup \
--location eastus \
--enabled-for-disk-encryption True
Box 2: keyvault key
The Azure platform needs to be granted access to request the cryptographic keys when the VM boots to decrypt the virtual disks. Create a cryptographic key in your Key Vault with az keyvault key create. The following example creates a key named myKey:
az keyvault key create \
--vault-name $keyvault_name \
--name myKey \
--protection software
Box 3: vm
Create a VM with az vm create. Only certain marketplace images support disk encryption. The following example creates a VM named myVM using an Ubuntu 16.04 LTS image:
az vm create \
--resource-group $resourcegroup \
--name myVM \
--image Canonical:UbuntuServer:16.04-LTS:latest \
--admin-username azureuser \
--generate-ssh-keys \
Box 4: vm encryption
Encrypt your VM with az vm encryption enable:
az vm encryption enable \
--resource-group $resourcegroup \
--name myVM \
--disk-encryption-keyvault $keyvault_name \
--key-encryption-key myKey \
--volume-type all
Note: seems to an error in the question. Should have enable instead of create.
Box 5: all
Encrypt both data and operating system.
References:
https://docs.microsoft.com/bs-latn-ba/azure/virtual-machines/linux/encrypt-disks
あなたはSoftwareas a Service(SaaS)会社の開発者です。 Azure NotificationHubsを使用して通知を送信する機能を提供するソリューションを開発します。
生の通知をWindowsプッシュ通知サービス(WNS)デバイスに送信する方法のリファレンスとして顧客が使用できるサンプルコードを作成する必要があります。サンプルコードは外部パッケージを使用してはなりません。
コードセグメントをどのように完成させる必要がありますか?答えるには、適切なコードセグメントを正しい場所にドラッグします。各コードセグメントは、1回使用することも、複数回使用することも、まったく使用しないこともできます。コンテンツを表示するには、分割バーをペイン間でドラッグするか、スクロールする必要がある場合があります。
注:正しい選択はそれぞれ1ポイントの価値があります。
正解:

Explanation:

Box 1: windows
Example code:
var request = new HttpRequestMessage(method, $ " {resourceUri}?api-version=2017-04 " ); request.Headers.Add( " Authorization " , createToken(resourceUri, KEY_NAME, KEY_VALUE)); request.Headers.Add( " X-WNS-Type " , " wns/raw " ); request.Headers.Add( " ServiceBusNotification-Format " , " windows " ); return request; Box 2: application/octet-stream Example code capable of sending a raw notification:
string resourceUri = $ " https://{NH_NAMESPACE}.servicebus.windows.net/{HUB_NAME}/messages/ " ; using (var request = CreateHttpRequest(HttpMethod.Post, resourceUri))
{
request.Content = new StringContent(content, Encoding.UTF8,
" application/octet-stream " );
request.Content.Headers.ContentType.CharSet = string.Empty;
var httpClient = new HttpClient();
var response = await httpClient.SendAsync(request);
Console.WriteLine(response.StatusCode);
}
Reference:
https://stackoverflow.com/questions/31346714/how-to-send-raw-notification-to-azure-notification-hub
/31347901
Azure AppConfigurationによって管理される機能フラグを含むASP.NETCoreアプリを開発しています。 Exportという名前の機能フラグを含むAppFeatureFlagStoreという名前のAzureAppConfigurationストアを作成します。
次の要件を満たすようにアプリを更新する必要があります。
*アプリを再起動せずにアプリのエクスポート機能を使用します。
*ユーザーが安全なリソースへのアクセスを許可される前に、ユーザーを検証します。
*ユーザーに安全なリソースへのアクセスを許可します。
コードセグメントをどのように完了する必要がありますか?回答するには、回答領域で適切なオプションを選択します。
注:正しい選択はそれぞれ1ポイントの価値があります。
正解:

Explanation:

Box 1: UseAuthentication
Need to validate users before users are allowed access to secure resources.
UseAuthentication adds the AuthenticationMiddleware to the specified IApplicationBuilder, which enables authentication capabilities.
Box 2: UseAuthorization
Need to permit users to access secure resources.
UseAuthorization adds the AuthorizationMiddleware to the specified IApplicationBuilder, which enables authorization capabilities.
Box 3: UseStaticFiles
Need to use the Export feature in the app without requiring a restart of the app.
UseStaticFiles enables static file serving for the current request path Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.iapplicationbuilder?view=aspnetcore-
5.0