70-469 Exam - Recertification for MCSE: Data Platform

certleader.com

Q1. You discover that the usp_GetOrdersAndItems stored procedure takes a long time to complete while usp_AddOrder or usp_AddXMLOrder run. 

You need to ensure that usp_GetOrdersAndItems completes as quickly as possible. 

What should you do? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Set the isolation level of the usp_GetOrdersAndItems stored procedure to SERIALIZABLE. 

B. Execute the ALTER DATABASE Sales SET ALLOW_SNAPSHOT_ISOLATION ON statement. 

C. Set the isolation level of the usp_AddOrder stored procedure to SERIALIZABLE. 

D. Set the isolation level of the usp_GetOrdersAndItems stored procedure to SNAPSHOT. 

E. Set the isolation level of the usp_AddOrder stored procedure to SNAPSHOT. 

F. Execute the ALTER DATABASE Sales SET ALLOW_SNAPSHOT_ISOLATION OFF statement. 

Answer: BD 

Q2. You need to modify the stored procedure usp_LookupConcurrentUsers. 

What should you do? 

A. Add a clustered index to the summary table. 

B. Add a nonclustered index to the summary table. 

C. Add a clustered columnstore index to the summary table. 

D. Use a table variable instead of the summary table. 

Answer:

Q3. You execute the following code. 

After populating the Employees table with 10,000 rows, you execute the following query: 

You need to reduce the amount of time it takes to execute the query. 

What should you do? 

A. Partition the table and use the JobTitle column for the partition scheme. 

B. Change SUBSTRING(JobTitle,l,l) = 'C to JobTitle LIKE 'c%’ 

C. Change SUBSTRING (JobTitle, 1,1] = 'c' to LEFT(JobTitle ,1) = 'c'. 

D. Replace IX_Employees with a clustered index. 

Answer:

Q4. You create a view by using the following code: 

Several months after you create the view, users report that the view has started to return unexpected results. 

You discover that the design of Table2 was modified since you created the view. 

You need to ensure that the view returns the correct results. 

Which code segment should you run? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q5. You need to create the object used by the parameter of usp_UpdateEmployeeName. 

Which code segment should you use? 

A. CREATE XML SCHEMA COLLECTION EmployeesInfo 

B. CREATE TYPE EmployeesInfo AS Table 

C. CREATE SCHEMA EmployeesInfo 

D. CREATE TABLE EmployeesInfo 

Answer:

Q6. You need to modify InsertInvoice to comply with the application requirements. Which code segment should you execute? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q7. You have a Microsoft SQL Azure database. You have the following stored procedure: 

You discover that the stored procedure periodically fails to update Person.Contact. 

You need to ensure that Person.Contact is always updated when UpdateContact executes. The solution must minimize the amount of time required for the stored procedure to execute and the number of locks held. 

What should you do? 

A. Add the following line of code to line 12: 

WITH (UPDLOCK) 

B. Add the following line of code to line 05: 

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE 

C. Add the following line of code to line 08: 

WITH (UPDLOCK) 

D. Add the following line of code to line 05: 

SET TRANSACTION ISOLATION LEVEL SNAPSHOT 

Answer:

Q8. You are testing disaster recovery procedures. 

When you attempt to restore ProductsDB to another server, you receive the following error message: "Msg 33111, Level 16, State 3, Line 5 Cannot find server certificate with thumbprint ' 

0x9D876A3468B911ElBA4CFCBF4724019B\ 

Msg 3013, Level 16, State 1, Line 5 

RESTORE DATABASE is terminating abnormally." 

You need to ensure that you can restore ProductsDB to another server. 

Which code segment should you execute on the other server? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q9. The database contains a disk-based table named ContentTable that has 1 million rows and a column named Fax. Fax allows null values. 

You need to update Fax to meet the following requirements: 

. Prevent null values from being used. 

. Always use an empty string instead of a null value. 

Which statement or statements should you execute? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: ABE 

Q10. You need to recommend a solution to minimize the amount of time it takes to execute USP_1. 

With what should you recommend replacing Table1? 

A. A view 

B. A temporary table 

C. A table variable 

D. A function 

Answer: