70-469 Premium Bundle

70-469 Premium Bundle

Recertification for MCSE: Data Platform Certification Exam

4.5 
(27510 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-469 Free Practice Questions

Q1. You need to recommend a change to USP_3 to ensure that the procedure completes only if all of the UPDATE statements complete. 

Which change should you recommend? 

A. Set the XACT_ABORT option to off 

B. Set the XACT_ABORT option to on. 

C. Set the IMPLICIT_TRANSACTIONS option to off. 

D. Set the IMPLICIT_TRANSACTIONS option to on. 

Answer:

Q2. You need to recommend a solution for the error handling of USP_4. The solution must handle errors for nested stored procedures in the code for USP_4. 

What should you recommend? 

A. Use the @@ERROR variable in the nested stored procedures. 

B. Use the @@ERROR variable in USP_4. 

C. Use the RAISERROR command in the nested stored procedures. 

D. Use the RAISERROR command in USP_4. 

Answer:

Q3. You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateSpeakerName. 

What should you include in the recommendation? 

A. The Distributed Transaction Coordinator (DTC) 

B. Transactional replication 

C. Change data capture 

D. Change tracking 

Answer:

Q4. You need to implement a solution that solves the performance issues of usp_GetOrdersAndItems. 

Which statements should you execute? 

A. CREATE INDEX IX_Orders_Active ON Orders(ShipDate, DeliveryDate, Amount) 

B. CREATE INDEX IX_Orders_Active ON Orders(DeliveryDate) INCLUDE(Amount) WHERE ShipDate IS NULL 

C. CREATE INDEX IX_Orders_Active ON Orders(DeliveryDate, Amount) WHERE ShipDate IS NULL 

D. CREATE INDEX IX_Orders_Active ON Orders(ShipDate, DeliveryDate) INCLUDE( Amount) 

Answer:

Q5. You have a SQL Server 2012 database named DB1. You have a backup device named Device1. 

You discover that the log file for the database is full. 

You need to ensure that DB1 can complete transactions. The solution must not affect the chain of log sequence numbers (LSNs). 

Which code segment should you execute? 

A. BACKUP LOG DB1 TO Device1 WITH COPY_ONLY 

B. BACKUP LOG DB1 TO Device1 WITH NORECOVERY 

C. BACKUP LOG DB1 TO Device1 WITH TRUNCATE_ONLY 

D. BACKUP LOG DB1 TO Device1 

Answer:

Q6. You need to recommend a feature to support your backup solution. 

What should you include in the recommendation? 

A. Transparent Data Encryption (TDE) 

B. Column-level encryption 

C. An NTFS file permission 

D. A Secure Sockets Layer (SSL) 

Answer:

Q7. You are troubleshooting an application that runs a query. The application frequently causes deadlocks. 

You need to identify the isolation level used by the query when a deadlock occurs. 

What should you do? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. Query the sys.dm_exec_requests dynamic management view. 

B. Create a trace in SQL Server Profiler that contains the Deadlock graph event. 

C. Query the sys.dm_exec_sessions dynamic management view. 

D. Enable trace flag 1222, and then view the SQL Server error log. 

Answer:

Q8. You need to create a function that will use a SELECT statement in ProductsByProductType.sql. 

Which code segment should you use to complete the function? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q9. You plan to create a stored procedure that inserts data from an XML file to the OrderDetails table. The following is the signature of the stored procedure: 

The following is the XSD file used to create the ValidateOrder schema collection: 

You develop a code segment that retrieves the number of items and loops through each 

item. Each time the loop runs, a variable named @itemNumber is incremented. 

You need to develop a code segment that retrieves the product ID of each item number in the loop. 

Which code segment should you develop? 

A. SET @productID = @items.value'/Root/Product/productID', int) 

B. SET @productID = @items.value'/Root/Product['+ @itemNumber+ ']/@productID', int) 

C. SET @productID = @items.value'/Root/Product['+ @itemNumber+ ']/productID', int) 

D. SET @productID = @items.value'/Root/Product/@productID', int) 

Answer:

Q10. You need to recommend a solution that addresses the backup issue. The solution must minimize the amount of development effort. 

What should you include in the recommendation? 

A. Indexed views 

B. Filegroups 

C. Table partitioning 

D. Indexes 

Answer:

Q11. 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:

Q12. You need to identify which long running transactions use an index. 

Which dynamic management view should you use? 

A. sys.dm_exec_query_optimizer_info 

B. sys.dm_exec_connections 

C. sys.dm_exec_query_stats 

D. sys.dm_exec_sessions 

Answer:

Q13. You need to ensure that usp_AddXMLOrder can be used to validate the XML input from the retailers. 

Which parameters should you add to usp_AddXMLOrder on line 04 and line 05? (Each correct answer presents part of the solution. Choose all that apply.) 

A. @schema varbinary(100). 

B. @items varchar(max). 

C. @schema sysname. 

D. @items varbinary(max). 

E. @items xml. 

F. @schema xml. 

Answer: CE 

Q14. You are creating a table named Orders. 

You need to ensure that every time a new row is added to the Orders table, a user-defined function is called to validate the row before the row is added to the table. 

What should you use? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. A data manipulation language (DML) trigger 

B. A DEFAULT constraint 

C. A Data Definition Language (DDL) trigger 

D. A CHECK constraint 

E. A FOREIGN KEY constraint 

Answer:

Q15. You plan to create a database that has multiple tables. The tables will contain product information. Each product has a stock-keeping unit (SKU). 

You need to recommend a solution to ensure that each SKU starts with the letters "ADV" and is followed by 10 digits. 

The solution must minimize the amount of development effort required. 

What should you include in the recommendation? 

A. A FOREIGN KEY constraint 

B. A trigger 

C. A user-defined data type 

D. A CHECK constraint 

Answer:

Q16. You need to modify usp_GetOrdersAndItems to ensure that an order is NOT retrieved by usp_GetOrdersAndItems while the order is being updated. 

What should you add to usp_GetOrdersAndItems? 

A. Add SET TRANSACTION ISOLATION LEVEL SERIALIZABLE to line 03. 

B. Add SET TRANSACTION ISOLATION LEVEL SNAPSHOT to line 03. 

C. Add (UPDLOCK) to the end of line 06. 

D. Add (READPAST) to the end of line 06. 

Answer:

START 70-469 EXAM