最新的Microsoft Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 1 - 70-457免費考試真題

問題1
You administer two Microsoft SQL Server 2012 servers named ServerA and ServerB. You use a database named AdventureWorks. You need to prepare the AdventureWorks database for database mirroring. ServerB will act as the mirror in a mirroring partnership along with ServerA. Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Build List and Reorder:
正確答案:

Explanation:
--Burgos - YES
I don't think this question will ever come up. The MSDN link says it is being deprecated and to use Availability Groups instead: http://msdn.microsoft.com/en-us/library/ms189852.aspx
However, the answer is correct. http://msdn.microsoft.com/en-us/library/ms190941.aspx
問題2
You create a view based on the following statement:

You grant the Select permission to User1 for this view. You need to change the view so that it displays only the records that were processed in the month prior to the current month. You need to ensure that after the changes, the view functions correctly for User1. Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of statements to the answer area and arrange them in the correct order.)
Build List and Reorder:
正確答案:

Explanation:
--Burgos - NO
Reference: http://msdn.microsoft.com/en-us/library/hh213020.aspx Reference: http://msdn.microsoft.com/en-us/library/ms186819.aspx Reference: http://msdn.microsoft.com/en-us/library/ms173846.aspx
問題3
You use Microsoft SQL Server 2012 to develop a database application. You create a stored procedure named dbo.ModifyData that can modify rows. You need to ensure that when the transaction fails, dbo. ModifyData meets the following requirements:
Does not return an error
Closes all opened transactions
Which Transact-SQL statement should you use?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題4
You support a database structure shown in the exhibit. (Click the Exhibit button.)

You need to write a query that displays the following details:
Total sales made by sales people, year, city, and country
Sub totals only at the city level and country level
A grand total of the sales amount
Which Transact-SQL query should you use?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題5
You administer all the deployments of Microsoft SQL Server 2012 in your company. A database contains a large product catalog that is updated periodically. You need to be able to send the entire product catalog to all branch offices on a monthly basis. Which configuration should you use?

正確答案: G
說明:(僅 VCESoft 成員可見)
問題6
You use Microsoft SQL Server 2012 to create a stored procedure as shown in the following code segment. (Line numbers are included for reference only.)

The procedure can be called within other transactions. You need to ensure that when the DELETE statement from the HumanResourcesJobCandidate table succeeds, the modification is retained even if the insert into the Audit.Log table fails. Which code segment should you add to line 14?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題7
You administer all the deployments of Microsoft SQL Server 2012 in your company. You have two servers in the same data center that hosts your production database. You need to ensure that the database remains available if a catastrophic server failure or a disk failure occurs. You also need to maintain transactional consistency of the data across both servers. You need to achieve these goals without manual intervention. Which configuration should you use?

正確答案: E
說明:(僅 VCESoft 成員可見)
問題8
DRAG AND DROP You administer a Microsoft SQL Server database that is used by an application. Users of the application report performance issues. You need to choose the appropriate tool for performance-tuning of SQL Server databases. Which tool or tools should you use? (To answer, drag the appropriate tool or tools to their corresponding task or tasks in the answer area. Each tool may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place:
正確答案:

Explanation:
--Burgos - YES
Verified answer as correct.
Reference: http://msdn.microsoft.com/en-us/library/bb630282.aspx Reference: http://msdn.microsoft.com/en-us/library/ms191246.aspx Reference: http://msdn.microsoft.com/en-us/library/ms181091.aspx
問題9
You administer a database that includes a table named Customers that contains more than 750 rows. You create a new column named PartitionNumber of the int type in the table. You need to assign a PartitionNumber for each record in the Customers table. You also need to ensure that the PartitionNumber satisfies the following conditions:
Always starts with 1.
Starts again from 1 after it reaches 100. Which Transact-SQL statement should you use?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題10
You administer a Microsoft SQL Server 2012 database named Contoso on a server named Server01. You need to write messages to the Application Log when users are added to or removed from a fixed server role in Server01. What should you create?

正確答案: E
說明:(僅 VCESoft 成員可見)
問題11
You are developing a database application by using Microsoft SQL Server 2012. You have a query that runs slower than expected. You need to capture execution plans that will include detailed information on missing indexes recommended by the query optimizer. What should you do?

正確答案: E
說明:(僅 VCESoft 成員可見)
問題12
You generate a daily report according to the following query:

You need to improve the performance of the query. What should you do?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題13
You administer a Microsoft SQL Server 2012 server that has multiple databases. You need to ensure that users are unable to create stored procedures that begin with sp_. Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Build List and Reorder:
正確答案:

Explanation:
--Burgos - NO Reference: http://msdn.microsoft.com/en-us/library/bb510667.aspx
問題14
You administer a Microsoft SQL Server 2012 database. Your database is experiencing deadlock issues. You need to be able to monitor deadlocks. Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Build List and Reorder:
正確答案:
問題15
You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

You need to display rows from the Orders table for the Customers row having the Customerld value set to 1 in the following XML format.

Which Transact-SQL query should you use?

正確答案: E
說明:(僅 VCESoft 成員可見)