70-762 Developing SQL Databases

Loading demo links...

Showing 7–9 of 10 questions

Question 7

You have the following stored procedure:

The Numbers table becomes unavailable when you run the stored procedure. The stored procedure obtains an exclusive lock on the table and does not release the lock.

What are two possible ways to resolve the issue? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Select all that apply, then click Submit answer.

  • Remove the implicit transaction and the SET ANSI_DEFAULTS ON statement.

  • Set the ANSI_DEFAULT statement to OFF and add a COMMIT TRANSACTION statement after the INSERT statement.

  • Add a COMMIT TRANSACTION statement after the INSERT statement.

  • Remove the SET ANSI_DEFAULTS ON statement.

Question 8

Note: This question is part of a series of questions that use the same or similar answer choices. An Answer choice may be correct for more than one question in the series. Each question independent of the other questions in this series. Information and details provided in a question apply only to that question.

You are a database developer for a company. The company has a server that has multiple physical disks. The disks are not part of a RAID array. The server hosts three Microsoft SQL Server instances. There are many SQL jobs that run during off-peak hours.

You must monitor the SQL Server instances in real time and optimize the server to maximize throughput, response time, and overall SQL performance.

You need to ensure that the performance of each instance is consistent for the same queried and query plans.

What should you do?

Select an option, then click Submit answer.

  • Create a sys.dm_os_waiting_tasks query.

  • Create a sys.dm_exec_sessions query.

  • Create a Performance Monitor Data Collector Set.

  • Create a sys.dm_os_memory_objects query.

  • Create a sp_configure ‘max server memory’ query.

  • Create a SQL Profiler trace.

  • Create asys.dm_os_wait_stats query.

  • Create an Extended Event.

Question 9

You have a relational data warehouse that contains 1 TB of data.

You have a stored procedure named usp_sp1 that generated an HTML fragment. The HTML fragment contains color and font style.

You need to return the HTML fragment.

What should you do?

Select an option, then click Submit answer.

  • Use the NOLOCK option.

  • Execute the DBCC UPDATEUSAGE statement.

  • Use the max worker threads option.

  • Use a table-valued parameter.

  • Set SET ALLOW_SNAPSHOT_ISOLATION to ON.

  • Set SET XACT_ABORT to ON.

  • Execute the ALTER TABLE T1 SET (LOCK_ESCALATION = AUTO); statement.

  • Use the OUTPUT parameters.