70-462日本語試験無料問題集「Microsoft Administering Microsoft SQL Server 2012/2014 Databases (70-462日本語版) 認定」
ServerAとServerBという2つのMicrosoft SQL Server 2012サーバーを管理します。 AdventureWorksという名前のデータベースを使用します。
データベースミラーリング用にAdventureWorksデータベースを準備する必要があります。 ServerBは、ServerAと一緒にミラーリングパートナーシップのミラーとして機能します。
どの3つのアクションを順番に実行しますか? (答えるには、適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。)

データベースミラーリング用にAdventureWorksデータベースを準備する必要があります。 ServerBは、ServerAと一緒にミラーリングパートナーシップのミラーとして機能します。
どの3つのアクションを順番に実行しますか? (答えるには、適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。)

正解:

Explanation

References:
Human_Resourcesという名前のMicrosoft SQL Serverデータベースを管理します。 データベースにはdbo.Salaryという名前のテーブルが含まれています。
dbo.Salaryに対するすべての読み取りアクティビティが監査され、Windowsセキュリティログに書き込まれていることを確認する必要があります。
あなたは何をするべきか? (答えるには、3つの適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。)

dbo.Salaryに対するすべての読み取りアクティビティが監査され、Windowsセキュリティログに書き込まれていることを確認する必要があります。
あなたは何をするべきか? (答えるには、3つの適切な行動を行動のリストから回答領域に移動し、正しい順序で並べます。)

正解:

Explanation
Box 1:

Box 2:

Box 3:

Note:
Example (step 2) (we should audit SELECT on the Salary table):
USE AdventureWorks2012 ;
GO
-- Create the database audit specification.
CREATE DATABASE AUDIT SPECIFICATION Audit_Pay_Tables
FOR SERVER AUDIT Payrole_Security_Audit
ADD (SELECT, INSERT
ON HumanResources.EmployeePayHistory BY dbo )
WITH (STATE = ON);
GO
References:
http://msdn.microsoft.com/en-us/library/cc280386.aspx
http://msdn.microsoft.com/en-us/library/cc280448.aspx
http://msdn.microsoft.com/en-us/library/cc280404.aspx
REPORTINGという名前のレポートデータベースをホストするSQL1という名前のサーバーがあります。 REPORTINGには、本番データベースにも格納されているデータが含まれています。
REPORTINGで多くのブロッキングロックを発見した。 ブロックされたクエリはSELECTステートメントです。 ブロッキングロックを保持するクエリは、WRITELOG待機タイプで待機するINSERTステートメントです。
INSERTステートメントがブロッキングロックを作成しないようにする必要があります。 この解決策では、INSERTステートメントがWRITELOG待機タイプで待機する時間も最小限に抑える必要があります。
どの2つのデータベース設定を変更する必要がありますか? 回答するには、回答領域で適切な設定を選択します。

REPORTINGで多くのブロッキングロックを発見した。 ブロックされたクエリはSELECTステートメントです。 ブロッキングロックを保持するクエリは、WRITELOG待機タイプで待機するINSERTステートメントです。
INSERTステートメントがブロッキングロックを作成しないようにする必要があります。 この解決策では、INSERTステートメントがWRITELOG待機タイプで待機する時間も最小限に抑える必要があります。
どの2つのデータベース設定を変更する必要がありますか? 回答するには、回答領域で適切な設定を選択します。

正解:

Explanation

Is Read Committed Snapshot On: True
Snapshot isolation enhances concurrency for OLTP applications.
Understanding Snapshot Isolation and Row Versioning
Once snapshot isolation is enabled, updated row versions for each transaction are maintained in tempdb. A unique transaction sequence number identifies each transaction, and these unique numbers are recorded for each row version. The transaction works with the most recent row versions having a sequence number before the sequence number of the transaction. Newer row versions created after the transaction has begun are ignored by the transaction.
The term "snapshot" reflects the fact that all queries in the transaction see the same version, or snapshot, of the database, based on the state of the database at the moment in time when the transaction begins. No locks are acquired on the underlying data rows or data pages in a snapshot transaction, which permits other transactions to execute without being blocked by a prior uncompleted transaction. Transactions that modify data do not block transactions that read data, and transactions that read data do not block transactions that write data, as they normally would under the default READ COMMITTED isolation level in SQL Server. This non-blocking behavior also significantly reduces the likelihood of deadlocks for complex transactions.
References:
https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/snapshot-isolation-in-sql-server
あなたはMicrosoft SQL Server2012データベースのデータベース開発者です。あなたはさまざまなソースから顧客データを格納するテーブルを設計しています。表にはソースシステムから得意先コードが含まれている列とソースIDを含む列が含まれます。次の表に示すようにこのデータのサンプルです。

あなたはテーブルがSourceIDに重複したCustomerIDを持っていないことを確認する必要があります。また、テーブル内のデータはそのSourceIDとCustomerIDのオーダーであることを確認する必要があります。どのTransact-SQLのステートメントは使用すべきか。

あなたはテーブルがSourceIDに重複したCustomerIDを持っていないことを確認する必要があります。また、テーブル内のデータはそのSourceIDとCustomerIDのオーダーであることを確認する必要があります。どのTransact-SQLのステートメントは使用すべきか。
正解:A
解答を投票する
あなたのデータベースはProductsとProductsPriceLogという名前のテーブルが含まれています。ProductsテーブルはProductCodeとPriceという名前の列が含まれています。ProductsPriceLogテーブルはProductCode、OldPriceとNewPriceという名前の列が含まれています。ProductsPriceLogテーブルはOldPrice列とNewPrice列に新しい価格が前の価格を格納します。
あなたは5パーセントでProductsテーブル内のすべての製品の価格列の値を増やす必要があります。
またProductsPriceLog表への変更をログに記録する必要があります。
どのTransact-SQLのクエリは使用すべきか。
あなたは5パーセントでProductsテーブル内のすべての製品の価格列の値を増やす必要があります。
またProductsPriceLog表への変更をログに記録する必要があります。
どのTransact-SQLのクエリは使用すべきか。
正解:C
解答を投票する
あなたはWindows Server2008 R2 64ビットサーバー上の32ビットMicrosoft SQL Server 2005のインスタンスの複数のデータベースを維持します。
あなたは同じサーバー上で64ビットSQL Server 2012のインスタンスにデータベースを移行する必要があります。 また、SQL Server 2012の中の新しいTransact-SQLの機能は移行後のデータベースで使用することができることを確認する必要があります。
あなたは何をすべきか。(それぞれの正しい答えはソリューションの一部を提供します。該当することをすべて選択してください。)
あなたは同じサーバー上で64ビットSQL Server 2012のインスタンスにデータベースを移行する必要があります。 また、SQL Server 2012の中の新しいTransact-SQLの機能は移行後のデータベースで使用することができることを確認する必要があります。
あなたは何をすべきか。(それぞれの正しい答えはソリューションの一部を提供します。該当することをすべて選択してください。)
正解:A,C,D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
Microsoft SQL Serverデータベースからのデータを使用するアプリケーションを開発します。
MyProcedureという名前のストアドプロシージャで、過度のブロック問題が発生します。
行のバージョン管理を有効にする必要があります。 ただし、すべての接続で行のバージョン管理を有効にする必要はありません。
Transact-SQLステートメントを完成させるためにどのコードセグメントを使用する必要がありますか? 回答するには、適切なコマンドを回答領域の適切な位置にドラッグして、Transact-SQLステートメントを完成させます。 答えの選択は、一度だけ、二度以上、あるいはまったく使わないことができます。 回答対象は1回使用できます。 さらに、コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。

MyProcedureという名前のストアドプロシージャで、過度のブロック問題が発生します。
行のバージョン管理を有効にする必要があります。 ただし、すべての接続で行のバージョン管理を有効にする必要はありません。
Transact-SQLステートメントを完成させるためにどのコードセグメントを使用する必要がありますか? 回答するには、適切なコマンドを回答領域の適切な位置にドラッグして、Transact-SQLステートメントを完成させます。 答えの選択は、一度だけ、二度以上、あるいはまったく使わないことができます。 回答対象は1回使用できます。 さらに、コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。

正解:

Explanation

Box 1: SET ALLOW_SNAPSHOT_ISOLATION ON
Database administrators control the database-level settings for row versioning by using the READ_COMMITTED_SNAPSHOT and ALLOW_SNAPSHOT_ISOLATION database options in the ALTER DATABASE statement.
The following Transact-SQL statement will enable ALLOW_SNAPSHOT_ISOLATION:
ALTER DATABASE AdventureWorks2008R2
SET ALLOW_SNAPSHOT_ISOLATION ON;
Incorrect: Not READ_COMMITTED_SNAPSHOT
When setting the READ_COMMITTED_SNAPSHOT option, only the connection executing the ALTER DATABASE command is allowed in the database.
Box 2: SET TRANSACTION ISOLATION LEVEL SNAPSHOT
The ALLOW_SNAPSHOT_ISOLATION ON option transactions can specify the SNAPSHOT transaction isolation level.
References:
https://technet.microsoft.com/en-us/library/ms175095(v=sql.105).aspx
https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-set-options