AZ-204 試験問題 311
You are developing an ASP.NET Core app that includes feature flags which are managed by Azure App Configuration. You create an Azure App Configuration store named AppFeatureFlagStore that contains a feature flag named Export.
You need to update the app to meet the following requirements:
* Use the Export feature in the app without requiring a restart of the app.
* Validate users before users are allowed access to secure resources.
* Permit users to access secure resources.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You need to update the app to meet the following requirements:
* Use the Export feature in the app without requiring a restart of the app.
* Validate users before users are allowed access to secure resources.
* Permit users to access secure resources.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

AZ-204 試験問題 312
A company runs an international travel and bookings management service. The company plans to begin offering restaurant bookings. You must develop a solution that uses Azure Search and meets the following requirements:
* Users must be able to search for restaurants by name, description, location, and cuisine.
* Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
* All words in descriptions must be included in searches.
You need to add annotations to the restaurant class.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

* Users must be able to search for restaurants by name, description, location, and cuisine.
* Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
* All words in descriptions must be included in searches.
You need to add annotations to the restaurant class.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

AZ-204 試験問題 313
Case study 1 - Litware Inc
Background
You are a developer for Litware Inc., a SaaS company that provides a solution for managing employee expenses. The solution consists of an ASP.NET Core Web API project that is deployed as an Azure Web App.
Overall architecture
Employees upload receipts for the system to process. When processing is complete, the employee receives a summary report email that details the processing results. Employees then use a web application to manager their receipts and perform any additional tasks needed for reimbursement.
Receipt processing
Employees may upload receipts in two ways:
* Uploading using an Azure Files mounted folder
* Uploading using the web application
Data Storage
Receipt and employee information is stored in an Azure SQL database.
Documentation
Employees are provided with a getting started document when they first use the solution. The documentation includes details on supported operating systems for Azure File upload, and instructions on how to configure the mounted folder.
Solution details
Users table

Web Application
You enable MSI for the Web App and configure the Web App to use the security principal name.
Processing
Processing is performed by an Azure Function that uses version 2 of the Azure Function runtime.
Once processing is completed, results are stored in Azure Blob Storage and an Azure SQL database. Then, an email summary is sent to the user with a link to the processing report. The link to the report must remain valid if the email is forwarded to another user.
Requirements
Receipt processing
Concurrent processing of a receipt must be prevented.
Logging
Azure Application Insights is used for telemetry and logging in both the processor and the web application. The processor also has TraceWriter logging enabled. Application Insights must always contain all log messages.
Disaster recovery
Regional outage must not impact application availability. All DR operations must not be dependent on application running and must ensure that data in the DR region is up to date.
Security
* Users' SecurityPin must be stored in such a way that access to the database does not allow the viewing of SecurityPins. The web application is the only system that should have access to SecurityPins.
* All certificates and secrets used to secure data must be stored in Azure Key Vault.
* You must adhere to the Least Privilege Principal.
* All access to Azure Storage and Azure SQL database must use the application's Managed Service Identity (MSI)
* Receipt data must always be encrypted at rest.
* All data must be protected in transit.
* User's expense account number must be visible only to logged in users. All other views of the expense account number should include only the last segment with the remaining parts obscured.
* In the case of a security breach, access to all summary reports must be revoked without impacting other parts of the system.
Issues
Upload format issue
Employees occasionally report an issue with uploading a receipt using the web application. They report that when they upload a receipt using the Azure File Share, the receipt does not appear in their profile. When this occurs, they delete the file in the file share and use the web application, which returns a 500 Internal Server error page.
Capacity issue
During busy periods, employees report long delays between the time they upload the receipt and when it appears in the web application.
Log capacity issue
Developers report that the number of log messages in the trace output for the processor is too high, resulting in lost log messages.
Processing.cs

Database.cs

ReceiptUploader.cs

ConfigureSSE.ps1

Hotspot Question
You need to ensure that security requirements are met.
What value should be used for the ConnectionString field on line DB03 in the Database class? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Background
You are a developer for Litware Inc., a SaaS company that provides a solution for managing employee expenses. The solution consists of an ASP.NET Core Web API project that is deployed as an Azure Web App.
Overall architecture
Employees upload receipts for the system to process. When processing is complete, the employee receives a summary report email that details the processing results. Employees then use a web application to manager their receipts and perform any additional tasks needed for reimbursement.
Receipt processing
Employees may upload receipts in two ways:
* Uploading using an Azure Files mounted folder
* Uploading using the web application
Data Storage
Receipt and employee information is stored in an Azure SQL database.
Documentation
Employees are provided with a getting started document when they first use the solution. The documentation includes details on supported operating systems for Azure File upload, and instructions on how to configure the mounted folder.
Solution details
Users table

Web Application
You enable MSI for the Web App and configure the Web App to use the security principal name.
Processing
Processing is performed by an Azure Function that uses version 2 of the Azure Function runtime.
Once processing is completed, results are stored in Azure Blob Storage and an Azure SQL database. Then, an email summary is sent to the user with a link to the processing report. The link to the report must remain valid if the email is forwarded to another user.
Requirements
Receipt processing
Concurrent processing of a receipt must be prevented.
Logging
Azure Application Insights is used for telemetry and logging in both the processor and the web application. The processor also has TraceWriter logging enabled. Application Insights must always contain all log messages.
Disaster recovery
Regional outage must not impact application availability. All DR operations must not be dependent on application running and must ensure that data in the DR region is up to date.
Security
* Users' SecurityPin must be stored in such a way that access to the database does not allow the viewing of SecurityPins. The web application is the only system that should have access to SecurityPins.
* All certificates and secrets used to secure data must be stored in Azure Key Vault.
* You must adhere to the Least Privilege Principal.
* All access to Azure Storage and Azure SQL database must use the application's Managed Service Identity (MSI)
* Receipt data must always be encrypted at rest.
* All data must be protected in transit.
* User's expense account number must be visible only to logged in users. All other views of the expense account number should include only the last segment with the remaining parts obscured.
* In the case of a security breach, access to all summary reports must be revoked without impacting other parts of the system.
Issues
Upload format issue
Employees occasionally report an issue with uploading a receipt using the web application. They report that when they upload a receipt using the Azure File Share, the receipt does not appear in their profile. When this occurs, they delete the file in the file share and use the web application, which returns a 500 Internal Server error page.
Capacity issue
During busy periods, employees report long delays between the time they upload the receipt and when it appears in the web application.
Log capacity issue
Developers report that the number of log messages in the trace output for the processor is too high, resulting in lost log messages.
Processing.cs

Database.cs

ReceiptUploader.cs

ConfigureSSE.ps1

Hotspot Question
You need to ensure that security requirements are met.
What value should be used for the ConnectionString field on line DB03 in the Database class? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

AZ-204 試験問題 314
ケーススタディ6
ラベルメーカーアプリ
Coho Winery はボトルを製造し、さまざまなワインを世界中に流通しています。あなたは、Azure ソリューションを使用してオンライン注文処理をサポートする、拡張性と回復力に優れたアプリケーションを実装する開発者です。
Coho Winery には、ワインボトルのラベルを印刷する LabelMaker アプリケーションがあります。このアプリケーションは、複数のプリンターにデータを送信します。このアプリケーションは、仮想マシン (VM) 上で独立して実行される 5 つのモジュールで構成されています。Coho Winery は、このアプリケーションを Azure に移行し、ラベル作成のサポートを継続する予定です。
外部パートナーは、カスタム ラベル デザインのアートワークとテキストを含めるデータを LabelMaker アプリケーションに送信します。
データ
データの管理と操作に関する次の要件を特定します。
* 注文データは非リレーショナル JSON として保存され、構造化クエリ言語 (SQL) を使用してクエリする必要があります。
* 注文データへの変更は、すべてのパーティションに即座に反映される必要があります。注文データへのすべての読み取りは、最新の書き込みを取得する必要があります。
次のセキュリティ要件があります:
* Coho Winery アプリケーションのユーザーは、ドキュメント、リソース、アプリケーションへのアクセスを外部パートナーに提供できる必要があります。
* 外部パートナーは独自の資格情報を使用し、組織の ID 管理ソリューションで認証する必要があります。
* 会社のコンプライアンスを維持するために、外部パートナーのログインは、ユーザー アカウント管理者がアプリケーションの使用状況を毎月監査する必要があります。
* 電子商取引アプリケーション設定のストレージは、Azure Key Vault で管理する必要があります。
* 電子商取引アプリケーションのサインインは、Azure App Service 認証と Azure Active Directory (AAD) を使用してセキュリティ保護する必要があります。
* 会社のコンテンツを保護するには、アプリケーションレベルで条件付きアクセスポリシーを適用する必要があります。
* LabelMaker アプリケーションは、Azure Kubernetes Service (AKS) クラスターのすべての名前空間へのフル アクセス権を持つ AAD アカウントを使用してセキュリティ保護する必要があります。
ラベルメーカーアプリ
Kubernetes 環境にデプロイされ、Azure Kubernetes Service (AKS) でホストされているワークロードのパフォーマンスを監視するには、Azure Monitor Container Health を使用する必要があります。
AKS デプロイをサポートするイメージを公開するには、Azure Container Registry を使用する必要があります。

プリンターの通信タイムアウトにより、プリンター API アプリへの呼び出しが定期的に失敗します。
プリンタの通信タイムアウトは 10 秒後に発生します。ラベル プリンタは 1 分以内に最大 5 回の試行しか受信できません。
注文ワークフローは、Azure への初期展開時に実行されません。
.json を注文する

電子商取引チェックアウト API を実装する必要があります。
実行すべき 3 つのアクションはどれですか? それぞれの正解は解決策の一部を示しています。
注意: 正しい選択ごとに 1 ポイントが付与されます。
ラベルメーカーアプリ
Coho Winery はボトルを製造し、さまざまなワインを世界中に流通しています。あなたは、Azure ソリューションを使用してオンライン注文処理をサポートする、拡張性と回復力に優れたアプリケーションを実装する開発者です。
Coho Winery には、ワインボトルのラベルを印刷する LabelMaker アプリケーションがあります。このアプリケーションは、複数のプリンターにデータを送信します。このアプリケーションは、仮想マシン (VM) 上で独立して実行される 5 つのモジュールで構成されています。Coho Winery は、このアプリケーションを Azure に移行し、ラベル作成のサポートを継続する予定です。
外部パートナーは、カスタム ラベル デザインのアートワークとテキストを含めるデータを LabelMaker アプリケーションに送信します。
データ
データの管理と操作に関する次の要件を特定します。
* 注文データは非リレーショナル JSON として保存され、構造化クエリ言語 (SQL) を使用してクエリする必要があります。
* 注文データへの変更は、すべてのパーティションに即座に反映される必要があります。注文データへのすべての読み取りは、最新の書き込みを取得する必要があります。
次のセキュリティ要件があります:
* Coho Winery アプリケーションのユーザーは、ドキュメント、リソース、アプリケーションへのアクセスを外部パートナーに提供できる必要があります。
* 外部パートナーは独自の資格情報を使用し、組織の ID 管理ソリューションで認証する必要があります。
* 会社のコンプライアンスを維持するために、外部パートナーのログインは、ユーザー アカウント管理者がアプリケーションの使用状況を毎月監査する必要があります。
* 電子商取引アプリケーション設定のストレージは、Azure Key Vault で管理する必要があります。
* 電子商取引アプリケーションのサインインは、Azure App Service 認証と Azure Active Directory (AAD) を使用してセキュリティ保護する必要があります。
* 会社のコンテンツを保護するには、アプリケーションレベルで条件付きアクセスポリシーを適用する必要があります。
* LabelMaker アプリケーションは、Azure Kubernetes Service (AKS) クラスターのすべての名前空間へのフル アクセス権を持つ AAD アカウントを使用してセキュリティ保護する必要があります。
ラベルメーカーアプリ
Kubernetes 環境にデプロイされ、Azure Kubernetes Service (AKS) でホストされているワークロードのパフォーマンスを監視するには、Azure Monitor Container Health を使用する必要があります。
AKS デプロイをサポートするイメージを公開するには、Azure Container Registry を使用する必要があります。

プリンターの通信タイムアウトにより、プリンター API アプリへの呼び出しが定期的に失敗します。
プリンタの通信タイムアウトは 10 秒後に発生します。ラベル プリンタは 1 分以内に最大 5 回の試行しか受信できません。
注文ワークフローは、Azure への初期展開時に実行されません。
.json を注文する

電子商取引チェックアウト API を実装する必要があります。
実行すべき 3 つのアクションはどれですか? それぞれの正解は解決策の一部を示しています。
注意: 正しい選択ごとに 1 ポイントが付与されます。
AZ-204 試験問題 315
You are working for Contoso, Ltd.
You define an API Policy object by using the following XML markup:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

You define an API Policy object by using the following XML markup:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.









