[Free] EnsurePass Microsoft 70-762 Real Exam Dumps Questions 71-80

Get Full Version of the Exam
http://www.EnsurePass.com/70-762.html

Question No.71

DRAG DROP

Background

You have a database named HR1 that includes a table named Employee.

You have several read-only, historical reports that contain regularly changing totals. The reports use multiple queries to estimate payroll expenses. The queries run concurrently. Users report that the payroll estimate reports do not always run. You must monitor the database to identify issues that prevent the reports from running.

You plan to deploy the application to a database server that supports other applications. You must minimize the amount of storage that the database requires.

Employee Table

You use the following Transact-SQL statements to create, configure, and populate the Employee table:

image

Application

You have an application that updates the Employees table. The application calls the following stored procedures simultaneously and asynchronously:

The application uses views to control access to data. Views must meet the following requirements:

image

Both of the stored procedures experience blocking issues. UspB must not abort if UspA commits changes to a row before UspB commits changes to the same row. UspA must not abort if UspB

commits changes to a row before UspA commits changes to the same row. You need to specify the transaction isolation levels to enable row versioning. How should you complete the Transact-SQL statements?

To answer, drag the Transact- SQL segments to the correct locations. Each Transact-SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

image

Correct Answer:

image

Question No.72

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.

What should you do?

  1. Create asys.dm_os_waiting_tasks query.

  2. Create a sys.dm_exec_sessions query.

  3. Create aPerformance Monitor Data Collector Set.

  4. Create a sys.dm_os_memory_objects query.

  5. Create a sp_configure `max server memory#39; query.

  6. Create a SQL Profiler trace.

  7. Create a sys.dm_os_wait_stats query.

  8. Create an Extended Event.

Correct Answer: B

Explanation:

sys.dm_exec_sessions returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a server-scope view that shows information about all active user connections and internal tasks. This information includes client version, client program name,

client login time, login user, current session setting, and more. Use sys.dm_exec_sessions to first view the current system load and to identify a session of interest, and then learn more information about that session by using other dynamic management views or dynamic management functions. Examples of use include finding long-running cursors, and finding idle sessions that have open transactions.

Question No.73

DRAG DROP

You are creating a stored procedure which will insert data into the table shown in the Database schema exhibit. (Click the exhibit button.)

image

You need to insert a new customer record into the tables as a single unit of work. Which five Transact-SQL segments should you use to develop the solution?

To answer, move the appropriate Transact-SQL segments to the answer area and arrange the, 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.

image

Correct Answer:

image

Question No.74

DRAG DROP

You have a Microsoft Azure SQL Database named MyDb that uses server version V12.

You plan to use Query Performance Insight to troubleshoot performance problems. The database query store is not enabled.

You need to enable the database query store to meet the following requirements for the database: Statistics must be aggregated every 15 minutes.

Query stores must use no more than 1,024 megabytes (MB) of storage. Query information must be retained for at least 15 days.

Queries must be captured based on resource consumption.

You connect to the database by using SQL Server Managements Studio. How should you complete the Transact-SQL statements?

To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact- SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: More than one combination of answer choices is correct. You will receive credit for any of the correct combinations you select. Each correct selection is worth one point.

image

Correct Answer:

image

Question No.75

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:

image

Launch when table data is modified.

image

Evaluate the state a table before and after a data modification and take action based on the difference.

image

Prevent malicious or incorrect table data operations.

image

Prevent changes that violate referential integrity by cancelling the attempted data modification.

image

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?

  1. extended procedure

  2. CLR procedure

  3. user-defined procedure

  4. DML trigger

  5. scalar-valued function

  6. table-valued function

Correct Answer: B

Explanation:

You can create a database object inside SQL Server that is programmed in an assembly created in the Microsoft .NET Framework common language runtime (CLR). Database objects that can leverage the rich programming model provided by the CLR include DML triggers, DDL triggers, stored procedures, functions, aggregate functions, and types.

Creating a CLR trigger (DML or DDL) in SQL Server involves the following steps:

Define the trigger as a class in a .NETFramework-supportedlanguage. For more information about how to program triggers in the CLR, see CLR Triggers. Then, compile the class to build an assembly in the .NET Framework using the appropriate language compiler.

Register the assembly in SQL Server using the CREATE ASSEMBLY statement. For more information about assemblies in SQL Server, see Assemblies (Database Engine). Create the trigger that references the registered assembly.

References: https://msdn.microsoft.com/en-us/library/ms179562.aspx

Question No.76

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?

  1. a System Monitor report

  2. a sys.dm_exec_query_stats dynamic management view query

  3. a sys.dm_exec_session_wait_stats dynamicmanagement view query

  4. an Activity Monitor session in Microsoft SQL Management Studio.

Correct Answer: C

Explanation:

sys.dm_exec_session_wait_stats returns information about all the waits encountered by threads that executed for each session. You can use this view to diagnose performance issues with the SQL Server session and also with specific queries and batches.

Note: SQL Server wait stats are, at their highest conceptual level, grouped into two broad categories: signal waits and resource waits. A signal wait is accumulated by processes running on SQL Server which are waiting for a CPU to become available (so called because the process has quot;signaledquot; that it is ready for processing). A resource wait is accumulated by processes running on SQL Server which are waiting fora specific resource to become available, such as waiting for the release of a lock on a specific record.

Question No.77

Note: This question is part of a series of questions that present the same scenario. Each question

in this series contains a unique solution. Determine whether the solution meets the stated goals.

You are developing a new application that uses a stored procedure. The stored procedure inserts thousands of records as a single batch into the Employees table.

Users report that the application response time has worsened since the stored procedure was updated. You examine disk-related performance counters for the Microsoft SQL Server instance and observe several high values that include a disk performance issue. You examine wait statistics and observe an unusually high WRITELOG value.

You need to improve the application response time.

Solution: You replace the stored procedure with a user-defined function. Does the solution meet the goal?

  1. Yes

  2. No

Correct Answer: B

Explanation:

https://msdn.microsoft.com/en-us/library/ms345075.aspx

Question No.78

HOTSPOT

Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.

You have a database that contains the following tables: BlogCategory, BlogEntry, ProductReview, Product, and SalesPerson. The tables were created using the following Transact SQL statements:

image

You must modify the ProductReview Table to meet the following requirements:

  1. The table must reference the ProductID column in the Product table

  2. Existing records in the ProductReview table must not be validated with the Product table.

  3. Deleting records in the Product table must not be allowed if records are referenced by the ProductReview table.

  4. Changes to records in the Product table must propagate to the ProductReview table.

You also have the following database tables: Order, ProductTypes, and SalesHistory. The transact-SQL statements for these tables are not available.

You must modify the Orders table to meet the following requirements:

  1. Create new rows in the table without granting INSERT permissions to the table.

  2. Notify the sales person who places an order whether or not the order was completed.

You must add the following constraints to the SalesHistory table:

a constraint on the SaleID column that allows the field to be used as a record identifier

a constant that uses the ProductID column to reference the Product column of the ProductTypes table

a constraint on the CategoryID column that allows one row with a null value in the column a constraint that limits the SalePrice column to values greater than four

Finance department users must be able to retrieve data from the SalesHistory table for sales persons where the value of the SalesYTD column is above a certain threshold.

You plan to create a memory-optimized table named SalesOrder. The table must meet the following requirements:

The table must hold 10 million unique sales orders.

The table must use checkpoints to minimize I/O operations and must not use transaction logging. Data loss is acceptable.

Performance for queries against the SalesOrder table that use Where clauses with exact equality operations must be optimized.

You need to create a stored procedure named spDeleteCategory to delete records in the database. The stored procedure must meet the following requirements:

  1. Delete records in both the BlogEntry and BlogCategory tables where CategoryId equals parameter @CategoryId.

  2. Avoid locking the entire table when deleting records from the BlogCategory table.

  3. If an error occurs during a delete operation on either table, all changes must be rolled back, otherwise all changes should be committed.

How should you complete the procedure?

To answer, select the appropriate Transact-SQL segments in the answer area.

image

Correct Answer:

image

Question No.79

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 need to create a stored procedure that updates the Customer, CustomerInfo, OrderHeader, and OrderDetails tables in order.

You need to ensure that the stored procedure: Runs within a single transaction.

Commits updates to the Customer and CustomerInfo tables regardless of the status of updates to the OrderHeader and OrderDetail tables.

Commits changes to all four tables when updates to all four tables are successful.

Solution: You create a stored procedure that includes the following Transact-SQL segment:

image

Does the solution meet the goal?

  1. Yes

  2. No

Correct Answer: B

Explanation:

http://stackoverflow.com/questions/11444923/stored-procedure-to-update-multiple-tables

Question No.80

HOTSPOT

Background

You have a database named HR1 that includes a table named Employee.

You have several read-only, historical reports that contain regularly changing totals. The reports use multiple queries to estimate payroll expenses. The queries run concurrently. Users report that the payroll estimate reports do not always run. You must monitor the database to identify issues that prevent the reports from running.

You plan to deploy the application to a database server that supports other applications. You must minimize the amount of storage that the database requires.

Employee Table

You use the following Transact-SQL statements to create, configure, and populate the Employee table:

image

Application

You have an application that updates the Employees table. The application calls the following stored procedures simultaneously and asynchronously:

UspA: This stored procedure updates only the EmployeeStatus column. UspB: This stored procedure updates only the EmployeePayRate column.

The application uses views to control access to data. Views must meet the following requirements: Allow user access to all columns in the tables that the view accesses.

Restrict updates to only the rows that the view returns.

You view the Deadlock Graph as shown in the exhibit. (Click the Exhibit button.)

image

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.

image

Correct Answer:

image

Get Full Version of the Exam
70-762 Dumps
70-762 VCE and PDF

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com