★ 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


It is more faster and easier to pass the Microsoft 70-464 exam by using Validated Microsoft Developing Microsoft SQL Server 2012 Databases questuins and answers. Immediate access to the Abreast of the times 70-464 Exam and find the same core area 70-464 questions with professionally verified answers, then PASS your exam with a high score now.

2021 Jul 70-464 training kit pdf download:

Q41. You have a database named Database1. You execute the following code: 

You have the following query. (Line numbers are included for reference only.) 

Users report that the query takes a long time to complete. 

You create a full-text index for the Notes column. 

You need to recommend changes to the query to reduce the amount of time it takes for the query to complete. 

Which code segment should you use to replace line 03? 

A. WHERE FREETEXT(notes, '%call%') AND 

B. INNER JOIN FREETEXTTABLE(dbo.table1, notes, 'call') AS t2 ON dbo.table1.ID = t2.key WHERE 

C. WHERE CONTAINS(notes, 'call*') AND 

D. WHERE CONTAINS(notes,*%call%'> AND 

Answer: A 


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

Topic 7, Fourth Coffee 

Background 

Corporate Information 

Fourth Coffee is global restaurant chain. There are more than 5,000 locations worldwide. 

Physical Locations 

Currently a server at each location hosts a SQL Server 2012 instance. Each instance contains a database called StoreTransactions that stores all transactions from point of sale and uploads summary batches nightly. 

Each server belongs to the COFFECORP domain. Local computer accounts access the StoreTransactions database at each store using sysadmin and datareaderwriter roles. 

Planned changes 

Fourth Coffee has three major initiatives: 

The IT department must consolidate the point of sales database infrastructure. 

The marketing department plans to launch a mobile application for micropayments. 

The finance department wants to deploy an internal tool that will help detect fraud. 

Initially, the mobile application will allow customers to make micropayments to buy coffee and other items on the company web site. These micropayments may be sent as gifts to other users and redeemed within an hour of ownership transfer. Later versions will generate profiles based on customer activity that will push texts and ads generated by an analytics application. 

When the consolidation is finished and the mobile application is in production, the micropayments and point of sale transactions will use the same database. 

... 

Existing Environment 

Existing Application Environment 

Some stores have been using several pilot versions of the micropayment application. Each version currently is in a database that is independent from the point of sales systems. Some versions have been used in field tests at local stores, and others are hosted at corporate servers. All pilot versions were developed by using SQL Server 2012. 

Existing Support Infrastructure 

The proposed database for consolidating micropayments and transactions is called CoffeeTransactions. The database is hosted on a SQL Server 2014 Enterprise Edition instance and has the following file structures: 

Business Requirements 

General Application Solution Requirements 

The database infrastructure must support a phased global rollout of the micropayment application and consolidation. 

The consolidated micropayment and point of sales database will be into a CoffeeTransactions database. The infrastructure also will include a new CoffeeAnalytics database for reporting on content from CoffeeTransactions. 

Mobile applications will interact most frequently with the micropayment database for the 

following activities: . Retrieving the current status of a micropayment; . Modifying the status of the current micropayment; and . Canceling the micropayment. 

The mobile application will need to meet the following requirements: . Communicate with web services that assign a new user to a micropayment by using a stored procedure named usp_AssignUser. . Update the location of the user by using a stored procedure named usp_AddMobileLocation. 

The fraud detection service will need to meet the following requirements: . Query the current open micropayments for users who own multiple micropayments by using a stored procedure named usp.LookupConcurrentUsers. . Persist the current user locations by using a stored procedure named usp_MobileLocationSnapshot. . Look at the status of micropayments and mark micropayments for internal investigations. . Move micropayments to dbo.POSException table by using a stored procedure named ups_DetectSuspiciousActivity. . Detect micropayments that are flagged with a StatusId value that is greater than 3 and that occurred within the last minute. 

The CoffeeAnalytics database will combine imports of the POSTransaction and MobileLocation tables to create a UserActivity table for reports on the trends in activity. Queries against the UserActivity table will include aggregated calculations on all columns that are not used in filters or groupings. 

Micropayments need to be updated and queried for only a week after their creation by the mobile application or fraud detection services. 

Performance 

The most critical performance requirement is keeping the response time for any queries of 

the POSTransaction table predictable and fast. 

Web service queries will take a higher priority in performance tuning decisions over the 

fraud detection agent queries. 

Scalability 

Queries of the user of a micropayment cannot return while the micropayment is being updated, but can show different users during different stages of the transaction. 

The fraud detection service frequently will run queries over the micropayments that occur over different time periods that range between 30 seconds and ten minutes. 

The POSTransaction table must have its structure optimized for hundreds of thousands of active micropayments that are updated frequently. 

All changes to the POSTransaction table will require testing in order to confirm the expected throughput that will support the first year's performance requirements. 

Updates of a user's location can tolerate some data loss. 

Initial testing has determined that the POSTransaction and POSException tables will be migrated to an in-memory optimized table. 

Availability 

In order to minimize disruption at local stores during consolidation, nightly processes will restore the databases to a staging server at corporate headquarters. 

Technical Requirements 

Security 

The sensitive nature of financial transactions in the store databases requires certification of the COFFECORP\Auditors group at corporate that will perform audits of the data. Members of the COFFECORP\Auditors group cannot have sysadmin or datawriter access to the database. Compliance requires that the data stewards have access to any restored StoreTransactions database without changing any security settings at a database level. 

Nightly batch processes are run by the services account in the COFFECORP\StoreAgent group and need to be able to restore and verify the schema of the store databases match. 

No Windows group should have more access to store databases than is necessary. 

Maintainability 

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

When the daily maintenance finishes, micropayments that are one week old must be available for queries in UserActivity table but will be queried most frequently within their first week and will require support for in-memory queries for data within first week. 

The maintenance of the UserActivity table must allow frequent maintenance on the day's most recent activities with minimal impact on the use of disk space and the resources available to queries. The processes that add data to the UserActivity table must be able to update data from any time period, even while maintenance is running. 

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

All micropayments queries must include the most permissive isolation level available for the maximum throughput. 

In the event of unexpected results, all stored procedures must provide error messages in text message to the calling web service. 

Any modifications to stored procedures will require the minimal amount of schema changes necessary to increase the performance. 

Performance 

Stress testing of the mobile application on the proposed CoffeeTransactions database uncovered performance bottlenecks. The sys.dm_os_wait_stats Dynamic Management View (DMV) shows high wait_time values for WRTTELOG and PAGEIOLATCHJJP wait types when updating the MobileLocation table. 

Updates to the MobileLocation table must have minimal impact on physical resources. 

Supporting Infrastructure 

The stored procedure usp_LookupConcurrentUsers has the current implementation: 

The current stored procedure for persisting a user location is defined in the following code: 

The current stored procedure for managing micropayments needing investigation is defined in the following code: 

The current table, before implementing any performance enhancements, is defined as follows: 


Q43. Topic 7) 

You need to implement a new version of usp_AddMobileLocation. 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: 


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


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


70-464 download

Most recent 70-464 braindumps:

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

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. 


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


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



Q49. You discover that usp.SelectSpeakersByName executes slowly if usp_UpdateSpeakerName executes simultaneously. 

You need to minimize the execution time of usp.SelectSpeakersByName. The solution must not affect the performance of the other stored procedures. 

What should you update? 

A. Usp_UpdateSpeakerName to use the NOLOCK query hint 

B. Usp_UpdateSpeakerName to use snapshot isolation 

C. Usp_SelectSpeakersByName to use the NOLOCK query hint 

D. Usp_SelectSpeakersByName to use snapshot isolation 

Answer: C 

Explanation: NOLOCK 

Is equivalent to READUNCOMMITTED. 

READUNCOMMITTED 

Specifies that dirty reads are allowed. 


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