Ucertify offers free demo for 70-464 exam. "Developing Microsoft SQL Server 2012 Databases", also known as 70-464 exam, is a Microsoft Certification. This set of posts, Passing the Microsoft 70-464 exam, will help you answer those questions. The 70-464 Questions & Answers covers all the knowledge points of the real exam. 100% real Microsoft 70-464 exams and revised by experts!

Q18. You plan to migrate an instance of SQL Server 2008 to a new installation of SQL Server 2012. 

You need to migrate alerts and e-mail notifications. 

Which system stored procedures should you use? (Each correct answer presents part of the solution. Choose all that apply.) 

A. sp_syspolicy_create_job 

B. sp_add_operator 

C. sp_audit_write 

D. sp_add_alert 

Answer: B,C 

Explanation: B: sp_add_operator 

Creates an operator (notification recipient) for use with alerts and jobs. 

C: sp_audit_write Adds a user-defined audit event to the USER_DEFINED_AUDIT_GROUP. If USER_DEFINED_AUDIT_GROUP is not enabled, sp_audit_write is ignored. 


Q19. You have a Microsoft SQL Azure database named DBAzurel. DBAzurel contains a table named Orders that stores sales data. 

Each order has a sales total that can only be discovered by querying multiple tables. 

You need to ensure that the value of the sales total is returned by executing a query on Orders. 

What should you create? 

A. A calculated column that uses a scalar function 

B. A trigger that uses a table-valued function 

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

D. A trigger that uses a ranking function 

Answer:

Explanation: A table-valued parameter is scoped to the stored procedure, function, or 

dynamic Transact-SQL text, exactly like other parameters. Similarly, a variable of table type 

has scope like any other local variable that is created by using a DECLARE statement. You 

can declare table-valued variables within dynamic Transact-SQL statements and pass 

these variables as table-valued parameters to stored procedures and functions. 

Table-valued parameters offer more flexibility and in some cases better performance than 

temporary tables or other ways to pass a list of parameters. 

Incorrect: 

Not A: A scalar function would only be able to use other columns from the same table. 


Q20. You need to create a function that filters invoices by CustomerID. The SELECT statement for the function is contained in InvoicesByCustomer.sql. 

Which code segment should you use to complete the function? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


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


Q22. Topic 8) 

You have a SQL Server 2012 database named Database1. Database1 has a data file named Database1_data.mdf and a transaction log named Database1jog.ldf. Database1_data.mdf is 1.5 GB. Database1jog.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: 


Q23. Topic 1) 

You need to build a stored procedure that amortizes the invoice amount. Which code segment should you use to create the stored procedure? 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: 


Q24. 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 

Answer:


Q25. You need to create the InvoiceStatus table in DB1. 

How should you define the InvoiceID column in the CREATE TABLE statement? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q26. You plan to create a new table that has the following requirements: 

... 

Uses a GUID data type as the primary key. Uses a clustered index as the primary key. Minimizes fragmentation. 

You need to recommend which option to include in the CREATE statement. 

Which option should you include? 

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

A. NEWID 

B. @@IDENTITY 

C. NEWSEQUENTIALID 

D. IDENTITY 

Answer:


Q27. You are planning the ManufacturingSteps table. 

You need to define the ProductID column in the CREATE TABLE statement. 

Which code segment should you use? 

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 


Q28. You need to implement a solution that meets the site requirements. 

What should you implement? 

A. A non-indexed view on Server1 

B. A non-indexed view on Server2 

C. A distributed view on Server1 

D. A distributed view on Server2 

Answer:


Q29. You need to monitor the health of your tables and indexes in order to implement the required index maintenance strategy. 

What should you do? 

A. Query system DMVs to monitor avg_chain_length and max_chain_length. Create alerts to notify you when these values converge. 

B. Create a SQL Agent alert when the File Table: Avg time per file I/O request value is increasing. 

C. Query system DMVs to monitor total_bucket_count. Create alerts to notify you when this value increases. 

D. Query system DMVs to monitor total_bucket_count. Create alerts to notify you when this value decreases. 

Answer:

Explanation: From scenario: 

You need to anticipate when POSTransaction table will need index maintenance. 

The index maintenance strategy for the UserActivity table must provide the optimal structure for both maintainability and query performance. 


Q30. 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 

Answer:


Q31. 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 WITH (NOLOCK) to the end of line 47. 

B. Add SET TRANSACTION ISOLATION LEVEL READ COMMITTED to line 44. 

C. Add SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED to line 44. 

D. Add WITH (READPAST) to the end of line 47. 

Answer:


Q32. You execute the following code: 

You have a stored procedure that includes the following SELECT statement: 

You need to create a covering index on UserInfo. Which code segment should you execute? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q33. ... 

You have a SQL Server 2012 instance named SQL\Instance1. Instance1 contains a database named Database1. 

You need to recommend an index defragmentation solution for an index named ContentIndex. ContentIndex must meet the following requirements: 

Remain online during the defragmentation. 

Update distribution statistics. 

Perform defragmentation as quickly as possible. 

Which type of index defragmentation solution should you include in the recommendation? More than one answer choice may achieve the goal. Select the BEST answer. 

A. DBCC DBREINDEX 

B. REORGANIZE 

C. REBUILD 

D. DBCC INDEXDEFRAG 

Answer:


Q34. You have a database named DB1. 

You plan to configure change data capture on the existing tables in DB1. 

The database file settings for the DB1 are shown in the exhibit. (Click the Exhibit button.) 

You need to minimize disk contention caused by change data capture. 

What should you do? 

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

A. Increase the autogrowth value of the database file. 

B. Set the database recovery model to simple. 

C. Increase the autogrowth value of the log file. 

D. Configure change data capture to use to a secondary filegroup. 

Answer: