Microsoft 70-464 Exam Practice Questions (P. 1)
- Full Access (209 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
You have a table named Rooms that contains three columns.
You run the following Transact-SQL statement:

You discover the execution plan shown in the exhibit. (Click the Exhibit button.)

You need to recommend a solution to reduce the amount of time it takes to execute the query.
What should you do?
More than one answer choice may achieve the goal. Select the BEST answer.
You run the following Transact-SQL statement:

You discover the execution plan shown in the exhibit. (Click the Exhibit button.)

You need to recommend a solution to reduce the amount of time it takes to execute the query.
What should you do?
More than one answer choice may achieve the goal. Select the BEST answer.
- AInclude the RoomName column and the Position column in the Room_IX index.
- BCreate a nonclustered index for RoomName, Id, and Position.
- CCreate a clustered index for Id.
- DUse the WITH (INDEX(Room_IX),NOLOCK) query hint.
Correct Answer:
B
B
send
light_mode
delete
Question #2
You have a database named database1.
Database developers report that there are many deadlocks.
You need to implement a solution to monitor the deadlocks. The solution must meet the following requirements:
✑ Support real-time monitoring.
✑ Be enabled and disabled easily.
✑ Support querying of the monitored data.
What should you implement?
More than one answer choice may achieve the goal. Select the BEST answer.
Database developers report that there are many deadlocks.
You need to implement a solution to monitor the deadlocks. The solution must meet the following requirements:
✑ Support real-time monitoring.
✑ Be enabled and disabled easily.
✑ Support querying of the monitored data.
What should you implement?
More than one answer choice may achieve the goal. Select the BEST answer.
- ALog errors by using trace flag 1222
- BLog errors by using trace flag 1204
- CA SQL Server Profiler template
- DAn Extended Events session
Correct Answer:
D
References:
http://www.sqlservercentral.com/blogs/james-sql-footprint/2012/08/12/monitor-deadlock-in-sql-2012/ http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
D
References:
http://www.sqlservercentral.com/blogs/james-sql-footprint/2012/08/12/monitor-deadlock-in-sql-2012/ http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
send
light_mode
delete
Question #3
You execute the following code:

The execution plan for the query is shown in the exhibit. (Click the Exhibit button.)

You need to prevent the key lookup.
What should you modify?
More than one answer choice may achieve the goal. Select the BEST answer.


The execution plan for the query is shown in the exhibit. (Click the Exhibit button.)

You need to prevent the key lookup.
What should you modify?
More than one answer choice may achieve the goal. Select the BEST answer.

send
light_mode
delete
Question #4
DRAG DROP -
You have a table named Table1. Table1 has 1 million rows.
Table1 has a columnstore index for a column named Column1.
You need to import data to Table1. The solution must minimize the amount of time it takes to import the data.
What should you do?
To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

You have a table named Table1. Table1 has 1 million rows.
Table1 has a columnstore index for a column named Column1.
You need to import data to Table1. The solution must minimize the amount of time it takes to import the data.
What should you do?
To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Correct Answer:
Box 1: Create a table named Table2 by using the same schema as Table1.
Note: Table2 is the staging table.
Box 2: Partition Table1 -
Box 3: Import the data to Table2.
Box 4: Create a columnstore index on Table2 for Column1.
Box 5: Switch Table2 to Table1 -
Note:
* An xVelocity memory optimized columnstore index, groups and stores data for each column and then joins all the columns to complete the whole index.
Columnstore indexes can transform the data warehousing experience for users by enabling faster performance for common data warehousing queries such as filtering, aggregating, grouping, and star-join queries.
* Tables that have a columnstore index cannot be updated.
There are three ways to work around this problem.
A) To update a table with a columnstore index, drop the columnstore index, perform any required INSERT, DELETE, UPDATE, or MERGE operations, and then rebuild the columnstore index. B) (applies in this scenario) Partition the table and switch partitions. For a bulk insert, insert data into a staging table, build a columnstore index on the staging table, and then switch the staging table into an empty partition. For other updates, switch a partition out of the main table into a staging table, disable or drop the columnstore index on the staging table, perform the update operations, rebuild or re-create the columnstore index on the staging table, and then switch the staging table back into the main table.
C) Place static data into a main table with a columnstore index, and put new data and recent data likely to change, into a separate table with the same schema that does not have a columnstore index.
Reference: Best Practices: Updating Data in a Columnstore Index

Box 1: Create a table named Table2 by using the same schema as Table1.
Note: Table2 is the staging table.
Box 2: Partition Table1 -
Box 3: Import the data to Table2.
Box 4: Create a columnstore index on Table2 for Column1.
Box 5: Switch Table2 to Table1 -
Note:
* An xVelocity memory optimized columnstore index, groups and stores data for each column and then joins all the columns to complete the whole index.
Columnstore indexes can transform the data warehousing experience for users by enabling faster performance for common data warehousing queries such as filtering, aggregating, grouping, and star-join queries.
* Tables that have a columnstore index cannot be updated.
There are three ways to work around this problem.
A) To update a table with a columnstore index, drop the columnstore index, perform any required INSERT, DELETE, UPDATE, or MERGE operations, and then rebuild the columnstore index. B) (applies in this scenario) Partition the table and switch partitions. For a bulk insert, insert data into a staging table, build a columnstore index on the staging table, and then switch the staging table into an empty partition. For other updates, switch a partition out of the main table into a staging table, disable or drop the columnstore index on the staging table, perform the update operations, rebuild or re-create the columnstore index on the staging table, and then switch the staging table back into the main table.
C) Place static data into a main table with a columnstore index, and put new data and recent data likely to change, into a separate table with the same schema that does not have a columnstore index.
Reference: Best Practices: Updating Data in a Columnstore Index
send
light_mode
delete
Question #5
You have a database for a mission-critical web application. The database is stored on a SQL Server 2012 instance and is the only database on the instance.
The application generates all T-SQL statements dynamically and does not use stored procedures. You need to maximize the amount of memory available for data caching.
Which advanced server option should you modify?
The application generates all T-SQL statements dynamically and does not use stored procedures. You need to maximize the amount of memory available for data caching.
Which advanced server option should you modify?
- AOptimize for Ad hoc Workloads
- BEnable Contained Databases
- CAllow Triggers to Fire Others
- DScan for Startup Procs
Correct Answer:
A
A
send
light_mode
delete
All Pages