DP-300日本語 無料問題集「Microsoft Administering Relational Databases on Microsoft Azure (DP-300日本語版)」
Azure SQL データベースがあります。
次の PowerShell スクリプトを実行します。

次の各文について、正しい場合は「はい」を選択してください。そうでない場合は「いいえ」を選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

次の PowerShell スクリプトを実行します。

次の各文について、正しい場合は「はい」を選択してください。そうでない場合は「いいえ」を選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Reference:
https://docs.microsoft.com/en-us/powershell/module/az.sql/set-azsqldatabasebackupshorttermretentionpolicy?
view=azps-7.2.0
https://docs.microsoft.com/en-us/powershell/module/az.sql/set-azsqldatabasebackuplongtermretentionpolicy?
view=azps-7.2.0
Azure SQL データベースを含む Azure サブスクリプションがあります。
データベースがクエリにタイムリーに応答できません。
問題が resource_semaphore 待機に関連しているかどうかを特定する必要があります。
Transact-SQL クエリをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択します。
注意: 正しい選択ごとに 1 ポイントが付与されます。

データベースがクエリにタイムリーに応答できません。
問題が resource_semaphore 待機に関連しているかどうかを特定する必要があります。
Transact-SQL クエリをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択します。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/azure-sql/database/monitoring-with-dmvs
次の Azure Resource Manager テンプレートがあります。

次の各文について、正しい場合は「はい」を選択してください。そうでない場合は「いいえ」を選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。


次の各文について、正しい場合は「はい」を選択してください。そうでない場合は「いいえ」を選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/azure-sql/database/purchasing-models
https://docs.microsoft.com/en-us/azure/azure-sql/database/single-database-create-arm-template-quickstart
Azure への移行後、ManufacturingSQLDb1 の構成を推奨する必要があります。ソリューションはビジネス要件を満たす必要があります。
推奨事項には何を含めるべきですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

推奨事項には何を含めるべきですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Scenario: Business Requirements
Litware identifies business requirements include: meet an SLA of 99.99% availability for all Azure deployments.
Box 1: Cloud witness
If you have a Failover Cluster deployment, where all nodes can reach the internet (by extension of Azure), it is recommended that you configure a Cloud Witness as your quorum witness resource.
Box 2: Azure Basic Load Balancer
Microsoft guarantees that a Load Balanced Endpoint using Azure Standard Load Balancer, serving two or more Healthy Virtual Machine Instances, will be available 99.99% of the time.
Note: There are two main options for setting up your listener: external (public) or internal. The external (public) listener uses an internet facing load balancer and is associated with a public Virtual IP (VIP) that is accessible over the internet. An internal listener uses an internal load balancer and only supports clients within the same Virtual Network.
Reference:
https://technet.microsoft.com/windows-server-docs/failover-clustering/deploy-cloud-witness
https://azure.microsoft.com/en-us/support/legal/sla/load-balancer/v1_0/
Topic 1, Litware
Existing Environment
Network Environment
The manufacturing and research datacenters connect to the primary datacenter by using a VPN.
The primary datacenter has an ExpressRoute connection that uses both Microsoft peering and private peering.
The private peering connects to an Azure virtual network named HubVNet.
Identity Environment
Litware has a hybrid Azure Active Directory (Azure AD) deployment that uses a domain named litwareinc.
com. All Azure subscriptions are associated to the litwareinc.com Azure AD tenant.
Database Environment
The sales department has the following database workload:
* An on-premises named SERVER1 hosts an instance of Microsoft SQL Server 2012 and two 1-TB databases.
* A logical server named SalesSrv01A contains a geo-replicated Azure SQL database named SalesSQLDb1. SalesSQLDb1 is in an elastic pool named SalesSQLDb1Pool. SalesSQLDb1 uses database firewall rules and contained database users.
* An application named SalesSQLDb1App1 uses SalesSQLDb1.
The manufacturing office contains two on-premises SQL Server 2016 servers named SERVER2 and SERVER3. The servers are nodes in the same Always On availability group. The availability group contains a database named ManufacturingSQLDb1 Database administrators have two Azure virtual machines in HubVnet named VM1 and VM2 that run Windows Server 2019 and are used to manage all the Azure databases.
Licensing Agreement
Litware is a Microsoft Volume Licensing customer that has License Mobility through Software Assurance.
Current Problems
SalesSQLDb1 experiences performance issues that are likely due to out-of-date statistics and frequent blocking queries.
Requirements
Planned Changes
Litware plans to implement the following changes:
* Implement 30 new databases in Azure, which will be used by time-sensitive manufacturing apps that have varying usage patterns. Each database will be approximately 20 GB.
* Create a new Azure SQL database named ResearchDB1 on a logical server named ResearchSrv01.
ResearchDB1 will contain Personally Identifiable Information (PII) data.
* Develop an app named ResearchApp1 that will be used by the research department to populate and access ResearchDB1.
* Migrate ManufacturingSQLDb1 to the Azure virtual machine platform.
* Migrate the SERVER1 databases to the Azure SQL Database platform.
Technical Requirements
Litware identifies the following technical requirements:
* Maintenance tasks must be automated.
* The 30 new databases must scale automatically.
* The use of an on-premises infrastructure must be minimized.
* Azure Hybrid Use Benefits must be leveraged for Azure SQL Database deployments.
* All SQL Server and Azure SQL Database metrics related to CPU and storage usage and limits must be analyzed by using Azure built-in functionality.
Security and Compliance Requirements
Litware identifies the following security and compliance requirements:
* Store encryption keys in Azure Key Vault.
* Retain backups of the PII data for two months.
* Encrypt the PII data at rest, in transit, and in use.
* Use the principle of least privilege whenever possible.
* Authenticate database users by using Active Directory credentials.
* Protect Azure SQL Database instances by using database-level firewall rules.
* Ensure that all databases hosted in Azure are accessible from VM1 and VM2 without relying on public endpoints.
Business Requirements
Litware identifies the following business requirements:
* Meet an SLA of 99.99% availability for all Azure deployments.
* Minimize downtime during the migration of the SERVER1 databases.
* Use the Azure Hybrid Use Benefits when migrating workloads to Azure.
* Once all requirements are met, minimize costs whenever possible.
Instance1 への移行後に、App1 が DB1 および DB2 にアクセスするための認証ソリューションを推奨する必要があります。ソリューションは可用性の要件を満たす必要があります。
どのアクションを順番に実行する必要がありますか? 回答するには、適切なアクションを正しい順序にドラッグします。
各アクションは 1 回、複数回、またはまったく使用されない場合があります。コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要がある場合があります。
注意: 正しい選択ごとに 1 ポイントが付与されます。

どのアクションを順番に実行する必要がありますか? 回答するには、適切なアクションを正しい順序にドラッグします。
各アクションは 1 回、複数回、またはまったく使用されない場合があります。コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要がある場合があります。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Microsoft SQL Server がインストールされた Server1 という名前の Azure 仮想マシンがあります。Server1 には DB1 という名前のデータベースが含まれています。
ADB1 という名前の Azure SQL データベースを含む ASVR1 という名前の論理 SQL サーバーがあります。
SQL データ同期を使用して、DB1 を Server! から ASVR1 に移行する予定です。
移行のための環境を準備する必要があります。ソリューションでは、Server1 から ADB1 への接続でパブリック エンドポイントが使用されないようにする必要があります。
どうすればいいでしょうか? 回答するには、回答エリアで適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

ADB1 という名前の Azure SQL データベースを含む ASVR1 という名前の論理 SQL サーバーがあります。
SQL データ同期を使用して、DB1 を Server! から ASVR1 に移行する予定です。
移行のための環境を準備する必要があります。ソリューションでは、Server1 から ADB1 への接続でパブリック エンドポイントが使用されないようにする必要があります。
どうすればいいでしょうか? 回答するには、回答エリアで適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

databasebackups という名前のストレージ アカウントを含む Azure サブスクリプションがあります。
DB1 という名前の Azure SQL マネージド インスタンスがあります。
DB1 をデータベースバックアップにバックアップする必要があります。
コマンドをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

DB1 という名前の Azure SQL マネージド インスタンスがあります。
DB1 をデータベースバックアップにバックアップする必要があります。
コマンドをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

DB1 という名前のデータベースをホストするオンプレミスの Microsoft SQL Server 2019 インスタンスがあります。
Azure Database Migration Service を使用して、DB1 を Azure SQL マネージド インスタンスにオンライン移行することを計画しています。
Azure Database Migration Service からアクセスできる DB1 のバックアップを作成する必要があります。
バックアップのために何を実行し、バックアップをどこに保存すればよいですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

Azure Database Migration Service を使用して、DB1 を Azure SQL マネージド インスタンスにオンライン移行することを計画しています。
Azure Database Migration Service からアクセスできる DB1 のバックアップを作成する必要があります。
バックアップのために何を実行し、バックアップをどこに保存すればよいですか? 回答するには、回答領域で適切なオプションを選択してください。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/dms/tutorial-sql-server-managed-instance-online
ゲーム データを取得するための Azure Stream Analytics ジョブを構築しています。
ジョブが各ゲームの 5 分間の間隔ごとに最高得点の記録を返すようにする必要があります。
Stream Analytics クエリをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択します。
注意: 正しい選択ごとに 1 ポイントが付与されます。

ジョブが各ゲームの 5 分間の間隔ごとに最高得点の記録を返すようにする必要があります。
Stream Analytics クエリをどのように完了すればよいですか? 回答するには、回答領域で適切なオプションを選択します。
注意: 正しい選択ごとに 1 ポイントが付与されます。

正解:

Explanation:

Box 1: TopOne() OVER(PARTITION BY Game ORDER BY Score Desc)
TopOne returns the top-rank record, where rank defines the ranking position of the event in the window according to the specified ordering. Ordering/ranking is based on event columns and can be specified in ORDER BY clause.
Analytic Function Syntax:
TopOne() OVER ([<PARTITION BY clause>] ORDER BY (<column name> [ASC |DESC])+ <LIMIT DURATION clause> [<WHEN clause>]) Box 2: Tumbling(minute 5) Tumbling window functions are used to segment a data stream into distinct time segments and perform a function against them, such as the example below. The key differentiators of a Tumbling window are that they repeat, do not overlap, and an event cannot belong to more than one tumbling window.

Reference:
https://docs.microsoft.com/en-us/stream-analytics-query/topone-azure-stream-analytics
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/stream-analytics/stream-analytics-window- functions.md
タスク 4
db1 の変更データ キャプチャ (CDC) を有効にする必要があります。
db1 の変更データ キャプチャ (CDC) を有効にする必要があります。
正解:
See the explanation part for the complete Solution.
Explanation:
To enable change data capture (CDC) for db1, you need to run the stored procedure sys.sp_cdc_enable_db in the database context. CDC is a feature that records activity on a database when tables and rows have been modified1. CDC can be used for various scenarios, such as data synchronization, auditing, or ETL processes2.
Here are the steps to enable CDC for db1:
* Connect to db1 using SQL Server Management Studio, Azure Data Studio, or any other tool that supports Transact-SQL statements.
* Open a new query window and run the following command: EXEC sys.sp_cdc_enable_db; GO
* This command will enable CDC for the database and create the cdc schema, cdc user, metadata tables, and other system objects for the database3.
* To verify that CDC is enabled for db1, you can query the is_cdc_enabled column in the sys.databases catalog view. The value should be 1 for db1.
These are the steps to enable CDC for db1
Explanation:
To enable change data capture (CDC) for db1, you need to run the stored procedure sys.sp_cdc_enable_db in the database context. CDC is a feature that records activity on a database when tables and rows have been modified1. CDC can be used for various scenarios, such as data synchronization, auditing, or ETL processes2.
Here are the steps to enable CDC for db1:
* Connect to db1 using SQL Server Management Studio, Azure Data Studio, or any other tool that supports Transact-SQL statements.
* Open a new query window and run the following command: EXEC sys.sp_cdc_enable_db; GO
* This command will enable CDC for the database and create the cdc schema, cdc user, metadata tables, and other system objects for the database3.
* To verify that CDC is enabled for db1, you can query the is_cdc_enabled column in the sys.databases catalog view. The value should be 1 for db1.
These are the steps to enable CDC for db1
タスク 3
dbl に対して実行されるすべてのクエリがクエリ ストアにキャプチャされるようにする必要があります。
dbl に対して実行されるすべてのクエリがクエリ ストアにキャプチャされるようにする必要があります。
正解:
See the explanation part for the complete Solution.
Explanation:
To ensure that all queries executed against dbl are captured in the Query Store, you need to enable the Query Store feature for the database and set the query capture mode to ALL. The Query Store feature provides you with insight on query plan choice and performance for Azure SQL Database1. The query capture mode controls whether all queries or only a subset of queries are tracked2.
Here are the steps to enable the Query Store and set the query capture mode to ALL for the database dbl:
* Using the Azure portal:
* Go to the Azure portal and select your Azure SQL Database server.
* Select the database dbl and click on Query Performance Insight in the left menu.
* Click on Configure Query Store and turn on the Query Store switch.
* In the Query Capture Mode dropdown, select All and click on Save.
* Using Transact-SQL statements:
* Connect to the Azure SQL Database server and the database dbl using SQL Server Management Studio or Azure Data Studio.
* Run the following command to enable the Query Store for the database: ALTER DATABASE dbl SET QUERY_STORE = ON;
* Run the following command to set the query capture mode to ALL for the database: ALTER DATABASE dbl SET QUERY_STORE (QUERY_CAPTURE_MODE = ALL); These are the steps to ensure that all queries executed against dbl are captured in the Query Store.
Explanation:
To ensure that all queries executed against dbl are captured in the Query Store, you need to enable the Query Store feature for the database and set the query capture mode to ALL. The Query Store feature provides you with insight on query plan choice and performance for Azure SQL Database1. The query capture mode controls whether all queries or only a subset of queries are tracked2.
Here are the steps to enable the Query Store and set the query capture mode to ALL for the database dbl:
* Using the Azure portal:
* Go to the Azure portal and select your Azure SQL Database server.
* Select the database dbl and click on Query Performance Insight in the left menu.
* Click on Configure Query Store and turn on the Query Store switch.
* In the Query Capture Mode dropdown, select All and click on Save.
* Using Transact-SQL statements:
* Connect to the Azure SQL Database server and the database dbl using SQL Server Management Studio or Azure Data Studio.
* Run the following command to enable the Query Store for the database: ALTER DATABASE dbl SET QUERY_STORE = ON;
* Run the following command to set the query capture mode to ALL for the database: ALTER DATABASE dbl SET QUERY_STORE (QUERY_CAPTURE_MODE = ALL); These are the steps to ensure that all queries executed against dbl are captured in the Query Store.