70-464 Premium Bundle

70-464 Premium Bundle

Developing Microsoft SQL Server 2012 Databases Certification Exam

4.5 
(21045 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 70-464 Free Practice Questions

Q1. Topic 8) 

You run the following code segment: 

After you add 10,000 rows to Customers, you discover that the index is fragmented. 

You need to defragment the index in the least amount of time. 

Which code segment should you execute? 

To answer, drag the appropriate value to the correct location in the code segment in the 

answer area. (Answer choices may be used once, more than once, or not at all.) 

Answer:  

Q2. You need to implement a solution that addresses the index monitoring requirements. 

What should you do? 

A. Schedule a SQL Server Agent job that saves data from the dynamic management views to a table in the database. 

B. Create a SQL Server Audit that saves data to a log file, and then create a SQL Server Audit Specification that gathers data from the DATABASE_OPERATION group. 

C. Create a performance monitor Data Collector Set (DCS) that monitors the SQL Server counters. 

D. Schedule a SQL Server Profiler trace, and then save the trace data to a table in the database. 

Answer:

Q3. You need to implement a solution that addresses the page split issues. 

Which statement should you execute? 

A. ALTER INDEX IX_Orders_ShipDate ON Orders 

REBUILD WITH (PAD_INDEX=OFF, DROP_EXISTING = ON); 

B. ALTER INDEX IX_Orders_ShipDate ON Orders 

REBUILD WITH (FILLFACTOR=50, DROP_EXISTING = ON); 

C. ALTER INDEX IX_Orders_ShipDate ON Orders 

REBUILD WITH (FILLFACTOR = 0, DROP_EXISTING = ON); 

D. ALTER INDEX IX_Orders_ShipDate ON Orders 

REBUILD WITH (PAD_INDEX=ON, DROP_EXISTING = ON); 

Answer:

Q4. Topic 8) 

You have a database named database1. Each table in database1 has one index per column. 

Users often report that creating items takes a long time. 

You need to perform the following maintenance tasks: 

. Identify unused indexes. 

. Identify indexes that need to be defragmented. What should you use? 

To answer, drag the appropriate function to the correct management task in the answer area. (Answer choices may be used once, more than once, or not at all.) 

Answer:  

Q5. Topic 8) 

You plan to create a new table that will contain a column named Salary. Salary will contain highly sensitive data. 

Salary must meet the following requirements: 

. Contain numeric data. 

. Contain only encrypted data that remains encrypted in memory. You need to identify which encryption type and data type must be used for Salary. 

Which encryption type and data type should you identity? 

To answer, drag the appropriate encryption type and data type to the correct identifier in the answer area. 

Answer:  

181. You have a table named Table1 that stores customer data. 

Each customer has a credit limit that can only be discovered by querying multiple tables. 

You need to ensure that the value of the credit limit is returned by executing a query on 

Table1. 

What should you create? 

A. A trigger that uses a ranking function 

B. A trigger that uses a table-valued function 

C. A calculated column that uses a table-valued function 

D. A calculated column that uses a scalar function 

Q6. Topic 8) 

You plan to deploy SQL Server 2012. You must create two tables named Table1 and Table2 that will have the following specifications: 

. Table1 will contain a date column named Column1 that will contain a null value approximately 80 percent of the time. . Table2 will contain a column named Column2 that is the product of two other columns in Table2. . Both Table1 and Table2 will contain more than 1 million rows. 

You need to recommend which options must be defined for the columns. The solution must minimize the storage requirements for the tables. Which options should you recommend? To answer, drag the appropriate options to the correct column in the answer area. 

Answer:  

Q7. Topic 8) 

You have a SQL Server 2012 database named DB1. DB1 contains four filegroups named FG1, FG2, FG3, and FG4. You execute the following code: 

Two million rows are added to dbo.Sales. 

You need to move the data from the first partition to a new table named SalesHistory and, starting on December 31, 2012, repartition dbo.Sales to support new sales data for three months. 

Which code segment should you execute? 

To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order. 

Answer:  

Q8. You execute usp_TestSpeakers. 

You discover that usp_SelectSpeakersByName uses inefficient execution plans. 

You need to update usp_SelectSpeakersByName to ensure that the most efficient 

execution plan is used. 

What should you add at line 30 of Procedures.sql? 

A. OPTION (FORCESCAN) 

B. OPTION (FORCESEEK) 

C. OPTION (OPTIMIZE FOR UNKNOWN) 

D. OPTION (OPTIMIZE FOR (@LastName= 'Anderson')) 

Answer:

Explanation: 

http://msdn.microsoft.com/en-us/library/ms181714.aspx 

Q9. You use SQL Server 2012 to maintain the data used by the applications at your company. 

You plan to create a table named Table1 by using the following statement. (Line numbers are included for reference only.) 

... 

You need to ensure that Table1 contains a column named UserName. The UserName column will: 

Store string values in any language. 

Accept a maximum of 200 characters. 

Be case-insensitive and accent-insensitive. 

Which code segment should you add at line 03? 

A. UserName nvarchar(200) COLLATE Latin1_General_CS_AS NOT NULL, 

B. UserName varchar(200) COLLATE Latin1_General_CI_AI NOT NULL, 

C. UserName varchar(200) COLLATE Latin 1_General_CS_AS NOT NULL, 

D. UserName nvarchar(200) COLLATE Latin1_General_CI_AI NOT NULL, 

Answer:

161. You plan to modify a procedure that contains hundreds of lines of code. 

The modification must support the following guidelines: 

. Use only tables that are not persistent in the database. 

. Minimize the amount of time required to execute and recompile procedures. 

You need to identify which type of table must be used to support the planned modification. 

Which type of table should you identify? 

A. A system table 

B. A partitioned table 

C. A table variable 

D. A temporary table 

Q10. You need to provide referential integrity between the Sessions table and Speakers table. Which code segment should you add at line 47 of Tables.sql? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: 

http://msdn.microsoft.com/en-us/library/ms189049.aspx http://msdn.microsoft.com/en-us/library/ms179610.aspx http://msdn.microsoft.com/en-us/library/ff878370.aspx 

Q11. Topic 7) 

You need to design the UserActivity table. 

Which three steps should you perform in sequence? To answer, move the appropriate three actions from the list of actions to the answer area and arrange them in the correct order. 

Answer:  

Q12. You need to modify the stored procedure usp_LookupConcurrentUsers. What should you do? 

A. Use the summary table as an in-memory optimized table with a non-hash clustered index. 

B. Use the summary table as an in-memory optimized table with a non-hash nonclustered index. 

C. Use a type variable instead of the summary table. 

D. Add a clustered index to the summary table. 

Answer:

Q13. Topic 8) 

You have a SQL Server 2012 database named Database1. Database1 has a data file named 

database1_data.mdf and a transaction log file named database1_Log.ldf. Database1_Data.mdf is 

1.5 GB. 

Database1_Log.ldf is 1.5 terabytes. A full backup of Database1 is performed every day. 

You need to reduce the size of the log file. The solution must ensure that you can perform 

transaction log backups in the future. Which code segment should you execute? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order. 

Answer:  

Q14. You use SQL Server 2014. The physical server is a dedicated database server that has 120GB of RAM available. There is approximately 50GB of storage space available on a 

slow local disk. 

You create a new stored procedure. You decide you need to temporarily hold approximately 300,000 rows from two tables, from which you will compute two complex business scores. 

The stored procedure will use temporary storage defined as follows: 

The code will make several passes through the data, applying complex calculations before writing the data to a permanent disk-based table in the same database from which it reads the data. 

For this stored procedure, you need to deal with temporary data in the most efficient way to minimize physical disk pressure. 

What should you do? More than one answer choice may achieve the goal. Select the BEST answer. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Explanation: * You must specify a value for the BUCKET_COUNT parameter when you create the memory-optimized table. In most cases the bucket count should be between 1 and 2 times the number of distinct values in the index key. If the index key contains a lot of duplicate values, on average there are more than 10 rows for each index key value, use a nonclustered index instead You may not always be able to predict how many values a particular index key may have or will have. Performance should be acceptable if the BUCKET_COUNT value is within 5 times of the actual number of key values. 

Q15. You execute usp_SelectEmployeesByName multiple times, passing strings of varying lengths to @LastName. You discover that usp_SelectEmployeesByName uses inefficient execution plans. 

You need to update usp_SelectEmployeesByName to ensure that the most efficient execution plan is used. 

What should you add at line 31 of StoredProcedures.sql? 

A. OPTION (ROBUST PLAN) 

B. OPTION (OPTIMIZE FOR UNKNOWN) 

C. OPTION (KEEP PLAN) 

D. OPTION (KEEPFIXED PLAN) 

Answer:

Explanation: 

http://msdn.microsoft.com/en-us/library/ms181714.aspx 

Q16. You review a query that runs slowly. The query accesses data in a table named Schema1.Table1. 

The following is the relevant portion of the execution plan for the query: You need to create the missing index. 

Which code segment should you execute? 

A. CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1) INCLUDE (Column4) WHERE Column2 <> Column3 

B. CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1) 

C. CREATE NONCLUSTERED INDEX IX1 on Schema1.Table1 (Column1, Column2, Column3) INCLUDE (Column4) 

D. CREATE NONCLUSTERED INDEX IX1 on schema1.Table1 (Column1) INCLUDE (Column4) 

Answer:

Q17. You have a SQL Azure database. You execute the following code: 

The Sales.Customers table will contain 100,000 rows. You expect the FaxNumber column to contain a null value for 70 percent of the rows. 

You need to create an index to support Sales.CustomersByFaxNumber. The solution must minimize the disk storage requirements. 

Which code segment should you execute? 

A. CREATE INDEX IX_Customers ON Customers (FaxNumber) WHERE FaxNumber IS NOT NULL 

B. CREATE INDEX IX_Customers ON Customers (FaxNumber) WITH FILLFACTOR=0 

C. CREATE INDEX IX_Customers ON Customers (CustomerName) INCLUDE (FaxNumber) 

D. CREATE INDEX IX_Customers ON Customers (FaxNumber) 

E. CREATE INDEX IX_Customers ON Customers (FaxNumber) WHERE FaxNumber IS NULL 

Answer:

START 70-464 EXAM