★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 70-464 Exam Dumps (PDF & VCE):
Available on: https://www.certleader.com/70-464-dumps.html


Cause all that matters here is passing the Microsoft 70-464 exam. Cause all that you need is a high score of 70-464 Developing Microsoft SQL Server 2012 Databases exam. The only one thing you need to do is downloading Testking 70-464 exam study guides now. We will not let you down with our money-back guarantee.

2021 Oct 70-464 cbt nuggets:

Q21. You have a database that is accessed by 300 concurrent users. 

You need to log all of the queries that become deadlocked. The solution must meet the following requirements: 

. Provide a representation of the deadlock in XML format. 

. Minimize the impact on the server. 

What should you create? 

A. A SQL Server Profiler trace 

B. A script that enables trace flags 

C. A SQL Server Agent job that retrieves information from the sys.dm_tran_active_transactions dynamic management views 

D. A SQL Server Agent job that retrieves information from the sys.dm_tran_session_transactions dynamic management views 

Answer:

Explanation: Analyze Deadlocks with SQL Server Profiler Use SQL Server Profiler to identify the cause of a deadlock. A deadlock occurs when there is a cyclic dependency between two or more threads, or processes, for some set of resources within SQL Server. Using SQL Server Profiler, you can create a trace that records, replays, and displays deadlock events for analysis. To trace deadlock events, add the Deadlock graph event class to a trace. This event class populates the TextData data column in the trace with XML data about the process and objects that are involved in the deadlock. SQL Server Profiler can extract the XML document to a deadlock XML (.xdl) file which you can view later in SQL Server Management Studio. 


Q22. You have a SQL Server 2012 database named Database1. You execute the following code: 

You insert 3 million rows into Sales. 

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

What should you do? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


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


Q24. You execute IndexManagement.sql and you receive the following error message: "Msg 512, Level 16, State 1, Line 12 

Subquery returned more than 1 value. This is not permitted when the subquery follows =, != ,<, <= , >, > = or when the subquery is used as an expression." 

You need to ensure that IndexManagement.sql executes properly. 

Which WHILE statement should you use at line 18? 

A. WHILE SUM(@RowNumber) < (SELECT @counter FROM @indextable) 

B. WHILE @counter < (SELECT SUM(RowNumber) FROM @indextable) 

C. WHILE COUNT(@RowNumber) < (SELECT @counter FROM @indextable) 

D. WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable) 

Answer:


Q25. ... 

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:


Regenerate sql server 2012 exam 70-464:

Q26. Which data type should you use for ProductType? 

A. varchar(11) 

B. nvarchar(11) 

C. char(11) 

D. bigint 

Answer:

Topic 5, Litware, Inc 

Overview 

General Overview 

You are a database developer for a company named Litware, Inc. Litware has a main office in Miami. 

Litware has a job posting web application named WebApp1. WebApp1 uses a database named DB1. DB1 is hosted on a server named Server1. The database design of DB1 is shown in the exhibit. (Click the Exhibit button.) 

WebApp1 allows a user to log on as a job poster or a job seeker. Candidates can search for job openings based on keywords, apply to an opening, view their application, and load their resume in Microsoft Word format. Companies can add a job opening, view the list of candidates who applied to an opening, and mark an application as denied. 

Users and Roles 

DB1 has five database users named Company, CompanyWeb, Candidate, CandidateWeb, and Administrator. 

DB1 has three user-defined database roles. The roles are configured as shown in the following table. 

Keyword Search 

The keyword searches for the job openings are performed by using the following stored procedure named usp_GetOpenings: 

Opening Update 

Updates to the Openings table are performed by using the following stored procedure named usp_UpdateOpening: 

Problems and Reported Issues 

Concurrency Problems 

You discover that deadlocks frequently occur. 

You identify that a stored procedure named usp_AcceptCandidate and a stored procedure named usp_UpdateCandidate generate deadlocks. The following is the code for usp_AcceptCandidate: 

Salary Query Issues 

Users report that when they perform a search for job openings without specifying a minimum salary, only job openings that specify a minimum salary are displayed. 

Log File Growth Issues 

The current log file for DB1 grows constantly. The log file fails to shrink even when the daily SQL Server Agent Shrink Database task runs. 

Performance Issues 

You discover that a stored procedure named usp_ExportOpenings takes a long time to run and executes a table scan when it runs. 

You also discover that the usp_GetOpenings stored procedure takes a long time to run and that the non-clustered index on the Description column is not being used. 

Page Split Issues 

On DB1, many page splits per second spike every few minutes. 

Requirements 

Security and Application Requirements 

Litware identifies the following security and application requirements: . Only the Administrator, Company, and CompanyWeb database users must be able to execute the usp_UpdateOpening stored procedure. . Changes made to the database must not affect WebApp1. 

Locking Requirements 

Litware identifies the following locking requirements: . The usp_GetOpenings stored procedure must not be blocked by the usp_UpdateOpening stored procedure. . If a row is locked in the Openings table, usp_GetOpenings must retrieve the latest 

version of the row, even if the row was not committed yet. 

Integration Requirements 

Litware exports its job openings to an external company as XML data. The XML data uses the following format: 

A stored procedure named usp_ExportOpenings will be used to generate the XML data. The following is the code for usp_ExportOpenings: 

The stored procedure will be executed by a SQL Server Integration Services (SSIS) package named Package1. 

The XML data will be written to a secured folder named Folder1. Only a dedicated Active Directory account named Account1 is assigned the permissions to read from or write to Folder1. 

Refactoring Requirements 

Litware identifies the following refactoring requirements: . New code must be written by reusing the following query: 

. The results from the query must be able to be joined to other queries. 

Upload Requirements 

Litware requires users to upload their job experience in a Word file by using WebApp1. WebApp1 will send the Word file to DB1 as a stream of bytes. DB1 will then convert the Word file to text before the contents of the Word file is saved to the Candidates table. 

A database developer creates an assembly named Conversions that contains the following: 

. A class named Convert in the SqlConversions namespace 

. A method named ConvertToText in the Convert class that converts Word files to 

text 

The ConvertToText method accepts a stream of bytes and returns text. The method is used in the following stored procedure: 

Job Application Requirements 

A candidate can only apply to each job opening once. 

Data Recovery Requirements 

All changes to the database are performed by using stored procedures. WebApp1 generates a unique transaction ID for every stored procedure call that the application makes to the database. 

If a server fails, you must be able to restore data to a specified transaction. 


Q27. You have a table named Rooms that contains three columns. You execute the following query: 

You discover the execution plan shown in the exhibit. (Click the Exhibit button.) 

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

What should you do? 

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

A. Include the RoomName column and the Position column in the Room_IX index. 

B. Create a nonclustered index for RoomName, Id, and Position. 

C. Create a clustered index for Id. 

D. Use the WITH (INDEX(Room_IX),NOLOCK) query hint. 

Answer:


Q28. Topic 8) 

You create a table that contains the following script: 

You need to prevent duplicate values in the EmployeeID field. 

Which five code segments should you use? 

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: 


Q29. You execute the following code: You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q30. You plan to create a new column in a table. The column must meet the following requirements: 

. Be able to store images that are larger than 1 MB each. 

. Be able to access the images from Microsoft .NET Framework applications. 

You need to recommend which data type must be used in the column. 

Which data type should you recommend? 

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

A. nvarchar 

B. varbinary 

C. image 

D. FileStream 

Answer: