70-462 Premium Bundle

70-462 Premium Bundle

Administering Microsoft SQL Server 2012 Databases Certification Exam

4.5 
(30150 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
December 3, 2024Last update

Microsoft 70-462 Free Practice Questions

Q1. You administer a Microsoft SQL Server 2012 instance. 

You need to stop a blocking process that has an SPID of 64 without stopping other processes 

What should you do? 

A. Execute the following Transact-SQL statement: EXECUTE sp_KillSPID 64 

B. Restart the SQL Server service. 

C. Execute the following Transact-SQL statement: KILL 64 

D. Execute the following Transact-SQL statement: ALTER SESSION KILL '64' 

Answer:

Q2. You administer two instances of Microsoft SQL Server 2012. You deploy an application that uses a database on the named instance. 

The application is unable to connect to the database on the named instance. 

You need to ensure that the application can connect to the named instance. 

What should you do? 

A. Use the Data Quality Client to configure the application. 

B. Start the SQL Server Browser Service. 

C. Use the Master Data Services Configuration Manager to configure the application. 

D. Start the SQL Server Integration Services Service. 

Answer:

Q3. 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? 

A. . Two servers configured in the same data center 

. A primary server configured to perform log-shipping every 10 minutes 

. A backup server configured as a warm standby 

B. . SQL Server that includes an application database configured to perform transactional replication 

C. . Two servers configured in the same data center 

. SQL Server Availability Group configured in Asynchronous-Commit Availability Mode 

. One server configured as an Active Secondary D 

. Two servers configured in a Windows Failover Cluster in the same data center 

. SQL Server configured as a clustered instance 

D. . SQL Server that includes an application database configured to perform snapshot replication 

E. . Two servers configured in different data centers 

. SQL Server Availability Group configured in Synchronous-Commit Availability Mode 

. One server configured as an Active Secondary 

F. . Two servers configured on the same subnet 

. SQL Server Availability Group configured in Synchronous-Commit Availability Mode 

G. . Two servers configured in different data centers 

. SQL Server Availability Group configured in Asynchronous-Commit Availability Mode 

Answer:

Q4. You administer a Microsoft SQL Server 2012 server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. 

The recovery model and backup schedule are configured as shown in the following table: 

One of the hard disk drives that stores the reporting database fails at 16:40 hours. 

You need to ensure that the reporting database is restoreD. You also need to ensure that data loss is minimal. 

What should you do? 

A. Restore the latest full backup. Then, restore each differential backup taken before the time of failure from the most recent full backup. 

B. Perform a partial restore. 

C. Restore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup. 

D. Perform a point-in-time restore. 

E. Restore the latest full backup. 

F. Perform a page restore. 

G. Restore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup. 

H. Restore the latest full backup. Then, restore the latest differential backup. 

Answer:

Q5. You have three tables that contain data for vendors, customers, and agents. You create a view that is used to look up telephone numbers for these companies. 

The view has the following definition: You need to ensure that users can update only the phone numbers by using this view. What should you do? 

A. Alter the view. Use the EXPAND VIEWS query hint along with each SELECT statement. 

B. Drop the view. Re-create the view by using the SCHEMABINDING clause, and then create an index on the view. 

C. Create an AFTER UPDATE trigger on the view. 

D. Create an INSTEAD OF UPDATE trigger on the view. 

Answer: D

Q6. You have been hired as a Database Consultant by ABC.com to design a SQL Server 2012 database solution. 

You are tasked with designing a scale-out and high-availability SQL Server 2012 Online 

Transaction Processing (OLTP) database solution that will maintain copies of data across two server instances. 

Your solution must provide scale-out of read operations by distributing the reads from clients across two SQL Server 2012 nodes. The data in both SQL Server nodes needs to be indexed. 

What should you include in your solution? 

A. You should include two servers configured in an Active-Active SQL Server 2012 Cluster 

B. You should include a primary SQL Server 2012 database that uses transactional replication to replicate data to a secondary database. 

C. You should include two servers configured in an Active-Passive SQL Server 2012 Cluster. 

D. You should include two servers in an Asynchronous-Commit Availability Mode Availability Group. 

E. You should include two servers in a Synchronous-Commit Availability Mode Availability Group 

Answer:

Q7. You use Microsoft SQL Server 2012 to develop a database application. You need to implement a computed column that references a lookup table by using an INNER JOIN against another table. 

What should you do? 

A. Reference a user-defined function within the computed column. 

B. Create a BEFORE trigger that maintains the state of the computed column. 

C. Add a default constraint to the computed column that implements hard-coded values. 

D. Add a default constraint to the computed column that implements hard-coded CASE statements. 

Answer: A

Q8. 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? 

A. A Database Audit Specification 

B. A Policy 

C. An Alert 

D. A SQL Profiler Trace 

E. A Resource Pool 

F. An Extended Event session 

G. A Server Audit Specification 

Answer:

Q9. 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 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? 

A. Use a FORCESCAN hint in the query. 

B. Add a clustered index on SalesOrderId in SalesOrderHeader. 

C. Use a FORCESEEK hint in the query. 

D. Update statistics on SalesOrderId on both tables. 

Answer: D

Q10. You administer a Microsoft SQL Server 2012 database. The database is currently configured to log ship to a secondary server. 

You are preparing to cut over to the secondary server by stopping log-shipping and bringing the secondary database online. You want to perform a tail-log backup. 

You need to leave the primary database in a restoring state. Which option of the BACKUP LOG command should you use? 

A. NO_TRUNCATE 

B. NORECOVERY 

C. STANDBY 

D. FORMAT 

Answer:

Q11. You administer a Microsoft SQL Server environment. You purchase a new server and plan to migrate your database from SQL Server 2008 to SQL Server 2012. 

You want to evaluate to prepare for possible conflicts and issues that may arise during or after the migration. 

Which SQL Server tool should you use? 

A. Distributed Replay 

B. Migration Assistant 

C. Data Tools 

D. Upgrade Advisor 

Answer: D

Q12. You administer a SQL 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 remove the Select permission for UserA on the Regions table. You also need to ensure that UserA can still access all the tables in the Customers schema, including the Regions table, through the Sales role permissions. 

Which Transact-SQL statement should you use? 

A. DENY SELECT ON Object::Regions FROM UserA 

B. DENY SELECT ON Schema::Customers FROM UserA 

C. EXEC sp_addrolemember 'Sales', 'UserA' 

D. REVOKE SELECT ON Object::Regions FROM UserA 

E. REVOKE SELECT ON Object::Regions FROM Sales 

F. EXEC sp_droproiemember 'Sales', 'UserA' 

G. REVOKE SELECT ON Schema::Customers FROM UserA 

H. DENY SELECT ON Object::Regions FROM Sales 

I. DENY SELECT ON Schema::Customers FROM Sales 

J. REVOKE SELECT ON Schema::Customers FROM Sales 

Answer:

Q13. You administer a Microsoft SQL Server 2012 server that hosts a transactional database and a reporting database. The transactional database is updated through a web application and is operational throughout the day. The reporting database is only updated from the transactional database. 

The recovery model and backup schedule are configured as shown in the following table: 

At 14:00 hours, you discover that pages 71, 520, and 713 on one of the database files are corrupted on the reporting database. 

You also need to ensure that data loss is minimal. 

What should you do? 

A. Perform a partial restore. 

B. Restore the latest full backup, and restore the latest differential backup. Then, restore each log backup taken before the time of failure from the most recent differential backup. 

C. Restore the latest full backup. 

D. Restore the latest full backup, and restore the latest differential backup. Then, restore the latest log backup. 

E. Perform a page restore. 

F. Restore the latest full backup. Then, restore each differential backup taken before the time of failure from the most recent full backup. 

G. Perform a point-in-time restore. 

H. Restore the latest full backup. Then, restore the latest differential backup. 

Answer:

Q14. You use a contained database named ContosoDb within a domain. 

You need to create a user who can log on to the ContosoDb database. You also need to ensure that you can port the database to different database servers within the domain without additional user account configurations. 

Which type of user should you create? 

A. SQL user without login 

B. User mapped to an asymmetric key 

C. Domain user 

D. login mapped to a virtual account 

Answer:

Q15. 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 Sales role, including UserA, is disallowed to select from any of the tables in the Customers schema. 

Which Transact-SQL statement should you use? 

A. REVOKE SELECT ON Schema::Customers FROM UserA 

B. DENY SELECT ON Object::Regions FROM UserA 

C. EXEC sp_addrolemember 'Sales', 'UserA' 

D. DENY SELECT ON Object::Regions FROM Sales 

E. REVOKE SELECT ON Object::Regions FROM UserA 

F. DENY SELECT ON Schema::Customers FROM Sales 

G. DENY SELECT ON Schema::Customers FROM UserA 

H. EXEC sp_droprolemember 'Sales', 'UserA' 

I. REVOKE SELECT ON Object::Regions FROM Sales 

J. REVOKE SELECT ON Schema::Customers FROM Sales 

Answer:

START 70-462 EXAM