Administering Microsoft SQL Server 2012 Databases
Question No: 61 DRAG DROP – (Topic 2)
You administer a Microsoft SQL Server 2012 database. The database contains two tables named Table A and Table B.
You perform an import and export operation by using the following steps in sequence, as shown in the exhibit. (Click the Exhibit button.)
Load data from a third-party database to Table A. Insert a subset of records from Table A to Table B. Export the data from Table B to a flat file.
You also create a format file for the data export.
You need to choose the correct command or tool for each task. You need to ensure that each task is performed efficiently.
Which command(s) or tool(s) should you use? (To answer, drag the appropriate command(s) or tool(s) to their corresponding task or tasks in the answer area. Answer choices may be used once, more than once, or not at all. Answer targets may be used once or not at all. Additionally, you may need to drag the split bar between panes or scroll to view content.)
Question No: 62 DRAG DROP – (Topic 2)
You want to add a new GUID column named BookGUID to a table named dbo.Book that already contains data.
BookGUID will have a constraint to ensure that it always has a value when new rows are inserted into dbo.Book. You need to ensure that the new column is assigned a GUID for existing rows. 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.)
Question No: 63 DRAG DROP – (Topic 2)
You administer a Microsoft SQL Server 2012 database called Human_Resources. The database contains a table named dbo.Salary.
You need to ensure that all read activity against dbo.Salary is audited and written to the Windows Security Log.
What should you do? (To answer, move the three appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
An audit must exist before creating a server audit specification for it. When a server audit specification is created, it is in a disabled state.
The general process for creating and using an audit is as follows.
->Create an audit and define the target.
->Create either a server audit specification or database audit specification that maps to the audit. Enable the audit specification.
->Enable the audit.
->Read the audit events by using the Windows Event Viewer, Log File Viewer, or the fn_get_audit_file function.
* Example (step 2) (we should audit SELECT on the Salary table): USE AdventureWorks2012 ;
– 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);
Question No: 64 – (Topic 2)
You administer a SQL Server 2012 server that contains a database named SalesDb. SalesDb contains a schema named Customers that has a table named Regions. A user named UserA is a member of a role named Sales. UserA is granted the Select permission on the Regions table. The Sales role is granted the Select permission on the Customers schema.
You need to ensure that the following requirements are met:
->The Sales role does not have the Select permission on the Customers schema.
->UserA has the Select permission on the Regions table.
Which Transact-SQL statement should you use?
DENY SELECT ON Object::Regions FROM Sales
DENY SELECT ON Schema::Customers FROM Sales
REVOKE SELECT ON Object::Regions FROM Sales
REVOKE SELECT ON Schema::Customers FROM Sales
DENY SELECT ON Object::Regions FROM UserA
DENY SELECT ON Schema::Customers FROM UserA
REVOKE SELECT ON Object::Regions FROM UserA
REVOKE SELECT ON Schema::Customers FOR UserA
EXEC sp_addrolemember ‘Sales’, ‘UserA’
EXEC sp_droprolemember ‘Sales’, ‘UserA’
Answer: D Explanation: References:
Question No: 65 – (Topic 2)
You are planning on deploying a server that will be dedicated for ETL (Extraction, Transformation, and Loading) processes.
You want to ensure that SSIS (SQL Server Integration Services) packages will run on this dedicated ETL server and not on any other server on which they were started.
Which of the following features must you install on the ETL server in addition to SSIS to accomplish this goal?
SQL Server Reporting Services
SQL Server Analysis Services
Client Tools SDK
Question No: 66 – (Topic 2)
Which of the following transaction safety setting in SQL Server 2012 mirroring forces the mirror to be synchronized with the primary at all times?
Question No: 67 – (Topic 2)
If you are required to move an SQL 2012 database from one server to another, which of the following will do this at the database level?
You just have to mirror the database.
Detach the database, move the database files, and attach the database on the new server.
Use the SQL Server Move Wizard to define the old and new server as well as the scheduled move time.
The database must be created on the new machine and then the data moved with Export/Import.
Question No: 68 – (Topic 2)
You maintain several databases on a 32-bit Microsoft SQL Server 2005 instance on a Windows Server 2008 R2 64-bit server.
You need to migrate the databases to a 64-bit SQL Server 2012 instance on the same server. You also need to ensure that the new Transact-SQL functionality in SQL Server 2012 can be used in the database after the migration.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
Perform a side-by-side installation of a 32-bit SQL Server 2012 instance.
Perform a side-by-side installation of a 64-bit SQL Server 2012 instance.
Perform an in-place upgrade to 64-bit SQL Server 2012.
Detach the database from the old instance and attach it to the new instance.
Change the compatibility level of the database.
Use detach and attach operations to upgrade a SQL Server 2005, SQL Server 2008 or SQL Server 2008 R2 database in SQL Server 2012. After being attached to SQL Server 2012, the database is available immediately and is automatically upgraded.
Question No: 69 – (Topic 2)
You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.)
You write the following Transact-SQL query:
You discover that the performance of the query is slow. Analysis of the query plan shows table scans where the estimated rows do not match the actual rows for SalesOrderHeader by using an unexpected index on SalesOrderDetail.
You need to improve the performance of the query. What should you do?
Use a FORCESCAN hint in the query.
Add a clustered index on SalesOrderId in SalesOrderHeader.
Use a FORCESEEK hint in the query.
Update statistics on SalesOrderId on both tables.
Question No: 70 – (Topic 2)
You administer a Microsoft SQL Server 2012 database named Contoso on a server named Server01.
You need to collect data for a long period of time to troubleshoot wait statistics when querying Contoso. You also need to ensure minimum impact to the server.
What should you create?
A Resource Pool
An Extended Event session
A Server Audit Specification
A SQL Profiler Trace
A Database Audit Specification
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|