[Jun 2016] 70-464 braindumps

Exam Code: 70-464 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Developing Microsoft SQL Server 2012 Databases
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70-464 Exam.

2016 Jun 70-464 Study Guide Questions:

Q31. 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: D 

Explanation: 

http://msdn.microsoft.com/en-us/library/ms186865.aspx http://msdn.microsoft.com/en-us/library/ms179478.aspx http://msdn.microsoft.com/en-us/library/ms190925.aspx 


Q32. Topic 8) 

You execute the following code: 

You discover that the Customers table was created in the dbo schema. 

You need to create a code segment to move the table to another schema named 

Schema2. 

What should you create? 

To answer, drag the appropriate code segments to the correct location in the answer area. 

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

Answer: 


Q33. Which data type should you use for ProductType? 

A. varchar(11) 

B. nvarchar(11) 

C. char(11) 

D. bigint 

Answer: C 

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. 


Q34. You are evaluating the table design. 

You need to recommend a change to Tables.sql that reduces the amount of time it takes for usp_AttendeesReport to execute. 

What should you add at line 14 of Tables.sql? 

A. FullName nvarchar(100) NOT NULL CONSTRAINT DF_FuIlName DEFAULT (dbo.CreateFullName (FirstName, LastName)), 

B. FullName AS (FirstName +‘ ’+ LastName), 

C. FullName nvarchar(100) NOT NULL DEFAULT (dbo.CreateFullName (FirstName, LastName)). 

D. FullName AS (FirstName +‘ ’+ LastName) PERSISTED, 

Answer: D 

Explanation: 

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


Q35. Which data type should you use for CustomerID? 

A. varchar(11) 

B. bigint 

C. nvarchar(11) 

D. char(11) 

Answer: D 

Explanation: 

Invoices.xml All customer IDs are 11 digits. The first three digits of a customer ID represent the customer's country. The remaining eight digits are the customer's account number. int: -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647) (just 10 digits max) bigint: -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807) http://msdn.microsoft.com/en-us/library/ms176089.aspx http://msdn.microsoft.com/en-us/library/ms187745.aspx 


2passeasy.com

Update developing microsoft sql server 2012 databases 70-464:

Q36. You need to implement a solution that meets the locking requirements. Which line of code should you modify? 

A. Change line 07 in usp_UpdateOpening to: UPDATE Openings WITH (UPDLOCK) 

B. Change line 09 in usp_GetOpenings to: FROM Openings o (ROWLOCK) 

C. Change line 07 in usp_UpdateOpening to: UPDATE Openings WITH (READPAST) 

D. Change line 09 in usp_GetOpenings to: FROM Openings o (NOLOCK) 

Answer: D 


Q37. Topic 8) 

You plan to deploy two stored procedures name USP_1 and USP_2 that read data from a database. 

Your company identifies the following requirements for each stored procedure: 

. USP_1 cannot allow dirty reads. 

. USP_2 must place range locks on the data to ensure read consistency. 

You need to identify which isolation level you must set for each stored procedure. The solution must minimize the number of locks. 

Which isolation level should you identify? 

To answer, drag the appropriate isolation level to the correct stored procedure in the answer area. (Answer choices may be used once, more than once, or not at all.) 

Answer: 



Q38. Topic 7) 

You need to redesign the system to meet the scalability requirements of the application. 

Develop the solution by selecting and arranging the required code blocks in the correct 

order. 

You may not need all of the code blocks. 

Answer: 

76. 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: A 

Explanation: Scenario: Query the current open micropayments for users who own multiple micropayments by using a stored procedure named usp.LookupConcurrentUsers 

Topic 8, Mix Questions 


Q39. Topic 8) 

You are a SQL Server 2014 Developer. A database that you work on contains two tables that are defined as follows: 

Product is an important table that has sensitive audit requirements. 

You need to create a trigger that supports the following requirements: 

1. 

Every row that is inserted or updated in Product will reflect its actual LastUpdatedDate and LastUpdatedBy values in the Product table. 

2. 

Any row that is updated or deleted must write a new record reflecting the OLD values into the ProductAudit table. 

3. 

Any error that occurs during the course of the trigger's execution must prevent the changes from happening. 

Develop the solution by selecting and arranging the required code blocks in the correct order. 

You may not need all of the code blocks. 

Answer: 


Q40. Topic 8) 

You are planning two stored procedures named SProc1 and SProc2. You identify the following requirements: 

. SProc1 must return a table. 

. SProc2 must return a status code. 

You need to identify which options must be implemented to meet each stored procedure requirement. 

Which options should you identify? 

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

Answer: 


2passeasy.com

Accurate 70-464 exam:

Q41. 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: A 

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. 


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


Q43. Topic 8) 

You have a table named Table1 that contains 1 million rows. Table1 contains a column named Column1 that stores sensitive information. Column1 uses the nvarchar (16) data type. 

You have a certificate named Cert1. 

You need to replace Column1 with a new encrypted column named Column2 that uses one-way hashing. 

Which code segment should you execute before you remove Column1? 

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: 


Q44. Topic 8) 

You have a SQL Server 2014 database. 

You plan to create a stored procedure that will retrieve the following information: 

. The XML content of the query plans that is stored in memory . The number of times each query plan is used 

You need to identify which dynamic management objects must be used to retrieve the required information for the stored procedure. 

Which dynamic management objects should you identify? 

To answer, drag the appropriate dynamic management object to the correct requirement in the answer area. 

Answer: 


Q45. 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: C 



see more http://www.2passeasy.com/exam/70-464/