crackyourinterview.com


Microsoft Developing SQL Databases (70-762) Exam Page4(Dumps)


Question No:-16

DRAG DROP -

You have a database that contains three encrypted store procedures named dbo.Proc1, dbo.Proc2 and dbo.Proc3. The stored procedures include INSERT, UPDATE, DELETE and BACKUP DATABASE statements.

You have the following requirements:

  • You must run all the stored procedures within the same transaction.
  • You must automatically start a transaction when stored procedures include DML statements.
  • You must not automatically start a transaction when stored procedures include DDL statements.

You need to run all three stored procedures.

Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments to the answer area and arrange then in the correct order.

Select and Place:



 






Question No:-17

HOTSPOT -

You are profiling a frequently used database table named UserEvents. The READ_COMMITED_SNAPSHOT database option is set to OFF.

In the trace results, you observe that lock escalation occurred for one stored procedure even though the number of locks in the database did not exceed memory or configuration thresholds. Events details are provided in the following table:




You need to modify the uspDeleteEvents stored procedure to avoid lock escalation.

How should you modify the stored procedure? To answer, select the appropriate Transact-SQL segments in the answer area.

Hot Area:



 





Question No:-18

You have a database that is experiencing deadlock issues when users run queries.

You need to ensure that all deadlocks are recorded in XML format. What should you do?

  1. Create a Microsoft SQL Server Integration Services package that uses sys.dm_tran_locks.
  2. Enable trace flag 1224 by using the Database Cpmsistency Checker(BDCC).
  3. Enable trace flag 1222 in the startup options for Microsoft SQL Server.
  4. Use the Microsoft SQL Server Profiler Lock:Deadlock event class.

 





Question No:-19

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.

You have a database named dbReporting. Users run a large number of read-only ad hoc queries against the database. The application and all ad hoc queries use default database transaction isolation levels. You set the value of the READ_COMMITTED_SNAPSHOT database option to ON.

You have an application that updates 10 tables sequentially and modifies a large volume of records in a single transaction. The updates are isolated from each other.

Users report an error which indicates that the version store us full. You need to reduce the number of occurrences of the error.

Solution: You increase the maximum database size for the tempdb database.

Does the solution meet the goal?


  1. Yes
  2. No

 





Question No:-20

You are developing an application that connects to a database.
The application runs the following jobs:



The READ_COMMITTED_SNAPSHOT database option is set to OFF, and auto-content is set to ON. Within the stored procedures, no explicit transactions are defined.

If JobB starts before JobA, it can finish in seconds. If JobA starts first, JobB takes a long time to complete.

You need to use Microsoft SQL Server Profiler to determine whether the blocking that you observe in JobB is caused by locks acquired by JobA.

Which trace event class in the Locks event category should you use?

  1. LockAcquired
  2. LockCancel
  3. LockDeadlock
  4. LockEscalation

 





1 | 2 | 3 | 4 | 5















@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap