live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

Microsoft Developing SQL Databases (70-762日本語版) - 70-762日本語 Exam Questions

QUESTION NO: 1
以下の要件を満たす機能を構築する必要があります。
Transact-SQLステートメントをどのように完成させるべきですか? 回答するには、適切なTransact-SQLステートメントを正しい場所にドラッグします。 各Transact-SQLセグメントは、1回、複数回、またはまったく使用しないことができます。 コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。
Correct Answer:

Explanation

References: https://technet.microsoft.com/en-us/library/ms189294(v=sql.105).aspx
QUESTION NO: 2
データベース環境のパフォーマンスを分析しています。
データベースにアクセスするアプリケーションは、長期間にわたってロックされています。 あなたはダーティー、反復不能、ファントムリードなどの孤立現象を経験しています。
特定のトランザクション分離レベルがデータの並行性と一貫性に与える影響を特定する必要があります。
各トランザクション分離レベルの一貫性と並行性への影響は何ですか? 答えるには、適切な隔離レベルを正しい場所にドラッグします。 各分離レベルは、1回、複数回、またはまったく使用しないことができます。 コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。
Correct Answer:

Explanation

Read Uncommitted (aka dirty read): A transaction T1executing under this isolation level can access data changed by concurrent transaction(s).
Pros:No read locks needed to read data (i.e. no reader/writer blocking). Note, T1 still takes transaction duration locks for any data modified.
Cons: Data is not guaranteed to be transactionally consistent.
Read Committed: A transaction T1 executing under this isolation level can only access committed data.
Pros: Good compromise between concurrency and consistency.
Cons: Locking and blocking. The data can change when accessed multiple times within the same transaction.
Repeatable Read: A transaction T1 executing under this isolation level can only access committed data with an additional guarantee that any data read cannot change (i.e. it is repeatable) for the duration of the transaction.
Pros: Higher data consistency.
Cons: Locking and blocking. The S locks are held for the duration of the transaction that can lower the concurrency. It does not protect against phantom rows.
Serializable: A transaction T1 executing under this isolation level provides the highest data consistency including elimination of phantoms but at the cost of reduced concurrency. It prevents phantoms by taking a range lock or table level lock if range lock can't be acquired (i.e. no index on the predicate column) for the duration of the transaction.
Pros: Full data consistency including phantom protection.
Cons: Locking and blocking. The S locks are held for the duration of the transaction that can lower the concurrency.
References:
https://blogs.msdn.microsoft.com/sqlcat/2011/02/20/concurrency-series-basics-of-transaction-isolation-levels/
QUESTION NO: 3
データベースユーザーは、SELECTステートメントが結果を返すのに時間がかかると報告しています。 次のTransact-SQLステートメントを実行します。

上記の表のすべての列を含む1つの非クラスター化カバーインデックスを作成する必要があります。 インデックスキーのサイズを最小化する必要があります。
どのTransact-SQLステートメントを実行する必要がありますか?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 4
バックグラウンド
Employeeという名前のテーブルを含むHR1という名前のデータベースがあります。
定期的に変化する合計を含む、読み取り専用の履歴レポートがいくつかあります。 レポートは複数のクエリを使用して給与計算費用を見積もります。 クエリは同時に実行されます。 ユーザーは、給与見積もりレポートが常に実行されるとは限らないと報告しています。 データベースを監視して、レポートの実行を妨げる問題を特定する必要があります。
他のアプリケーションをサポートするデータベースサーバーにアプリケーションを配置することを計画しています。 データベースに必要なストレージの量を最小限に抑える必要があります。
従業員テーブル
次のTransact-SQLステートメントを使用して、Employeeテーブルを作成、設定、設定します。

応用
Employeesテーブルを更新するアプリケーションがあります。 アプリケーションは、次のストアドプロシージャを同時に非同期に呼び出します。
- UspA:このストアード・プロシージャーはEmployeeStatus列のみを更新します。
- UspB:このストアドプロシージャは、EmployeePayRate列のみを更新します。
アプリケーションはビューを使用してデータへのアクセスを制御します。 ビューは以下の要件を満たす必要があります。
- ビューがアクセスするテーブル内のすべての列へのユーザーアクセスを許可します。
- ビューから返される行のみに更新を制限します。
示す

展示物に示されているようにデッドロックグラフを見る。 ドロップダウンメニューを使用して、グラフィックに表示されている情報に基づいて各質問に回答する回答の選択肢を選択します。
注:それぞれ正しい選択は1ポイントの価値があります。
Correct Answer:

Explanation

References: https://msdn.microsoft.com/en-us/library/ms186736.aspx
QUESTION NO: 5
Salesという名前のテーブルを持つMicrosoft SQL Serverデータベースがあります。 このテーブルはデータの取得に使用され、営業時間外に更新されます。
次のTransact-SQLステートメントを実行します。

文の実行計画を分析します。 (展示ボタンをクリック)。

パフォーマンスを最適化するインデックスを追加する必要があります。
Transact-SQLステートメントをどのように完成させるべきですか?
Correct Answer:

Explanation

Box 1:
Specifying the order in which key values are stored in an index is useful when queries referencing the table have ORDER BY clauses that specify different directions for the key column or columns in that index. In these cases, the index can remove the need for a SORT operator in the query plan; therefore, this makes the query more efficient.
The Database Engine can move equally efficiently in either direction. An index defined as (RejectedQty DESC, ProductID ASC) can still be used for a query in which the sort direction of the columns in the ORDER BY clause are reversed. For example, a query with the ORDER BY clause ORDER BY RejectedQty ASC, ProductID DESC can use the index.
Box 2:
You can include nonkey columns in a nonclustered index to avoid exceeding the current index size limitations of a maximum of 16 key columns and a maximum index key size of 900 bytes. The Database Engine does not consider nonkey columns when calculating the number of index key columns or index key size.
References: https://technet.microsoft.com/en-us/library/jj835095(v=sql.110).aspx
QUESTION NO: 6
注:この質問は、同じシナリオを提示する一連の質問の一部です。シリーズの各質問には固有の解決策が含まれています。解決策が記載されている目標を満たしているかどうかを判断します。
クラスタ化インデックスと非クラスタ化インデックスを持つテーブルがあります。インデックスはテーブルとは異なる列を使用します。ノンクラスタードインデックスを使用するQuery1という名前のクエリがあります。
ユーザーは、Query1が結果を報告するのに長い時間がかかることを報告します。 Query1を実行し、インデックスシーク操作について次の統計を確認します。

パフォーマンスの問題を解決する必要があります。
解決方法:ノンクラスタードインデックスを削除します。
解決策は目標を満たしていますか?
Correct Answer: B
QUESTION NO: 7
Microsoft Azure SQLデータベースを監視しています。
データベースで高いCPU消費が発生しています。
どのクエリが最も累積的なCPUを使用しているかを判断する必要があります。
Transact-SQLステートメントをどのように完成させるべきですか? 回答するには、適切なTransact-SQLセグメントを正しい場所にドラッグします。 各Transact-SQLセグメントは、1回、複数回、またはまったく使用しないことができます。
コンテンツを表示するには、ペイン間の分割バーをドラッグするか、スクロールする必要があります。
Correct Answer:

Explanation

Box 1: sys.dm_exec_query_stats
sys.dm_exec_query_stats returns aggregate performance statistics for cached query plans in SQL Server.
Box 2: highest_cpu_queries.total_worker_time DESC
Sort on total_worker_time column
Example: The following example returns information about the top five queries ranked by average CPU time.
This example aggregates the queries according to their query hash so that logically equivalent queries are grouped by their cumulative resource consumption.
USE AdventureWorks2012;
GO
SELECT TOP 5 query_stats.query_hash AS "Query Hash",
SUM(query_stats.total_worker_time) / SUM(query_stats.execution_count) AS "Avg CPU Time", MIN(query_stats.statement_text) AS "Statement Text" FROM (SELECT QS.*, SUBSTRING(ST.text, (QS.statement_start_offset/2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(ST.text) ELSE QS.statement_end_offset END
- QS.statement_start_offset)/2) + 1) AS statement_text
FROM sys.dm_exec_query_stats AS QS
CROSS APPLY sys.dm_exec_sql_text(QS.sql_handle)as ST) as query_stats
GROUP BY query_stats.query_hash
ORDER BY 2 DESC;
References: https://msdn.microsoft.com/en-us/library/ms189741.aspx
QUESTION NO: 8
注:この質問は、同じシナリオを提示する一連の質問の一部です。 シリーズの各質問には、独自のソリューションが含まれています。 ソリューションが規定の目標を満たしているかどうかを判断します。
Employeesという名前のテーブルを含むデータベースがあります。 このテーブルには、会社の従業員に関する情報が格納されます。
次のビジネスルールを実装および実施する必要があります。
* [給与]列で受け入れられる値を制限します。
* 給与が15,000ドル未満、300,000ドルを超えないようにします。
* 論理式を使用して有効な値を決定します。
* DELETEステートメントの実行時にデータの整合性を検証しないでください。
解決策:テーブルに外部キーを実装します。
ソリューションは目標を達成していますか?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 9
4つのサーバーにクラスター化されるデータウェアハウスを設計しています。 データウェアハウスのいくつかのテーブルには、必要に応じて再構築できる一時データが含まれています。
データのスキーマは定期的に変更されます。 スキーマを変更し、それらの変更をサーバーファーム全体に展開するために必要な作業を最小限に抑える必要があります。 管理者は、次のスキーマ変更を行える必要があります。
*テーブルへの列の追加
*テーブルから列を削除する
*テーブルの追加
*テーブルの削除
一時データへの変更は、シングルトン操作として行われます。 サーバーファーム内のすべてのサーバーでデータを利用できるようにする必要があります。 サーバー間のデータ移動は、リアルタイムまたはほぼリアルタイムで発生する必要があります。
どのサーバーからのデータに対しても、いつでもSELECTステートメントを実行できる必要があります。
環境を構成する必要があります。
どのテクノロジーを実装する必要がありますか? 回答するには、回答エリアで適切なテクノロジーを選択します。
注:それぞれの正しい選択には1ポイントの価値があります。
Correct Answer:

Explanation

Box 1: Durable in-Memory OLTP
Databases containing memory-optimized tables, with or without native compiled stored procedures, are fully supported with Always On Availability Groups. There is no difference in the configuration and support for databases which contain In-Memory OLTP objects as compared to those without.
Box 2: Always on Availability groups
The Always On availability groups feature is a high-availability and disaster-recovery solution that provides an enterprise-level alternative to database mirroring. Always On availability groups maximizes the availability of a set of user databases for an enterprise. An availability group supports a failover environment for a discrete set of user databases, known as availability databases, that fail over together. An availability group supports a set of read-write primary databases and one to eight sets of corresponding secondary databases. Optionally, secondary databases can be made available for read-only access and/or some backup operations.
An availability group fails over at the level of an availability replica.
References:
https://docs.microsoft.com/en-us/sql/relational-databases/in-memory-oltp/high-availability-support-for-in-memo
https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/always-on-availability-groups