Microsoft 70-762 Developing SQL Databases Online Training
Microsoft 70-762 Online Training
The questions for 70-762 were last updated at Nov 21,2024.
- Exam Code: 70-762
- Exam Name: Developing SQL Databases
- Certification Provider: Microsoft
- Latest update: Nov 21,2024
You use Microsoft SQL Server Profile to evaluate a query named Query1.
The Profiler report indicates the following issues:
– At each level of the query plan, a low total number of rows are processed.
– The query uses many operations. This results in a high overall cost for the query.
You need to identify the information that will be useful for the optimizer.
What should you do?
- A . Start a SQL Server Profiler trace for the event class Auto Stats in the Performance event category.
- B . Create one Extended Events session with the sqlserver.missing_column_statistics event added.
- C . Start a SQL Server Profiler trace for the event class Soft Warnings in the Errors and Warnings event category.
- D . Create one Extended Events session with the sqlserver.missing_join_predicate event added.
You are experiencing performance issues with the database server. You need to evaluate schema locking issues, plan cache memory pressure points, and backup I/O problems.
What should you create?
- A . a System Monitor report
- B . a sys.dm_exec_query_stats dynamic management view query
- C . a sys.dm_exec_session_wait_stats dynamicmanagement view query
- D . an Activity Monitor session in Microsoft SQL Management Studio.
HOTSPOT
You are maintaining statistics for a database table named tblTransaction. The table contains more than 10 million records.
You need to create a stored procedure that meets the following requirements:
– On weekdays, update statistics for a sample of the total number of records in the table.
– On weekends, update statistics by sampling all rows in the table.
A maintenance task will call this stored procedure daily.
How should you complete the stored procedure? To answer, select the appropriate Transact-SQL segments in the answer area. NOTE: Each correct selection is worth one point.
DRAG DROP
You have a database named MyDatabase. You must monitor all the execution plans in XML format by using Microsoft SQL Trace.
The trace must meet the following requirements:
– Capture execution plans only for queries that run the MyDatabase database.
– Filter out plans with event duration of less than or equal to 100 microseconds.
– Save trace results to a disk on the server.
You need to create the trace.
In which order should you arrange the Transact-SQL segments to develop the solution? To answer, move all Transact-SQL segments to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
HOTSPOT
You are analyzing the performance of a database environment. You need to find all unused indexes in the current database.
How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL
segments in the answer area.
HOTSPOT
You are reviewing the execution plans in the query plan cache.
You observe the following:
– There are a large number of single use plans.
– There are a large number of simple execution plans that use multiple CPU cores.
You need to configure the server to optimize query plan execution.
Which two setting should you modify on the properties page for the Microsoft SQL Server instance? To answer, select the appropriate settings in the answer area.
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 is independent of the other questions in the series. Information and details provided in a question apply only to that question.
You are developing an application to track customer sales.
You need to create a database object that meets the following requirements:
– Return a value of 0 if data inserted successfully into the Customers table.
– Return a value of 1 if data is not inserted successfully into the Customers table.
– Support logic that is written by using managed code.
What should you create?
- A . extended procedure
- B . CLR procedure
- C . user-defined procedure
- D . DML trigger
- E . DDL trigger
- F . scalar-valued function
- G . table-valued function
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 is independent of the other questions in the series. Information and details provided in a question apply only to that question.
You are developing an application to track customer sales.
You need to create a database object that meets the following requirements:
– Return a value of 0 if data inserted successfully into the Customers table.
– Return a value of 1 if data is not inserted successfully into the Customers table.
– Support TRY…CATCH error handling
– Be written by using Transact-SQL statements.
What should you create?
- A . extended procedure
- B . CLR procedure
- C . user-defined procedure
- D . DML trigger
- E . scalar-valued function
- F . table-valued function
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 is independent of the other questions in the series. Information and details provided in a question apply only to that question.
You are developing an application to track customer sales.
You need to create a database object that meets the following requirements:
– Launch when table data is modified.
– Evaluate the state a table before and after a data modification and take action based on the difference.
– Prevent malicious or incorrect table data operations.
– Prevent changes that violate referential integrity by cancelling the attempted data modification.
– Run managed code packaged in an assembly that is created in the Microsoft.NET Framework and located into Microsoft SQL Server.
What should you create?
- A . extended procedure
- B . CLR procedure
- C . user-defined procedure
- D . DML trigger
- E . scalar-valued function
- F . table-valued function
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 is independent of the other questions in the series. Information and details provided in a question apply only to that question.
You are developing and application to track customer sales.
You need to return the sum of orders that have been finalized, given a specified order identifier. This value will be used in other Transact-SQL statements. You need to create a database object.
What should you create?
- A . extended procedure
- B . CLR procedure
- C . user-defined procedure
- D . DML trigger
- E . scalar-valued function
- F . table-valued function