Dumps4cert.com : Latest Dumps with PDF and VCE Files
2018 May Microsoft Official New Released 70-464
100% Free Download! 100% Pass Guaranteed!

Developing Microsoft SQL Server 2012 Databases

Question No: 81 DRAG DROP – (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.)

Dumps4Cert 2018 PDF and VCE

Answer:

Dumps4Cert 2018 PDF and VCE

Explanation:

Dumps4Cert 2018 PDF and VCE

  • read committed READ COMMITTED

    Specifies that shared locks are held while the data is being read to avoid dirty reads, but the data can be changed before the end of the transaction, resulting in nonrepeatable reads or phantom data. This option is the SQL Server default.

  • SERIALIZABLE

Places a range lock on the data set, preventing other users from updating or inserting rows into the data set until the transaction is complete. This is the most restrictive of the four isolation levels. Because concurrency is lower, use this option only when necessary. This option has the same effect as setting HOLDLOCK on all tables in all SELECT statements in a transaction.

Question No: 82 – (Topic 8)

You have a SQL Server 2012 database named Database1. Database1 contains a table named OrderDetails.

For a given sales order, you need to retrieve the OrderID, Quantity, and LineTotal columns for all of the items in the OrderDetails table. The solution must ensure that the results can be joined to other tables.

Which code segment should you execute?

Dumps4Cert 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: A

Question No: 83 – (Topic 8)

You have a SQL Server 2012 environment that contains two servers. The servers are

configured as shown in the following table.

Dumps4Cert 2018 PDF and VCE

After the failover is complete, a user receives the following error message when connecting to

DB1 on Server2:

quot;Msg 916, Level 14, State 1, Line 1

The server principal quot;Account1quot; is not able to access the database quot;DB1quot; under the current security context.quot;

You verify that there is a server login for Account1 on Server2. You need to ensure that Account1 can connect to DB1.

What should you do?

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

  1. Update the SID for Account1 on DB1.

  2. Add Account1 to the db_datareader role.

  3. Create a new database user on DB1.

  4. Implement Windows authentication.

Answer: B

Question No: 84 – (Topic 8)

You use SQL Server 2012 to store data used by an e-commerce application.

You develop a stored procedure named sp1. Sp1 is used to read the price of all the products sold on the e-commerce site.

You need to ensure that sp1 can read data even while another transaction is modifying the price of a product. Sp1 must only read committed data.

Which transaction isolation level should you use in sp1?

  1. Serializable

  2. Snapshot

  3. Repeatable read

  4. Read committed

Answer: B

Question No: 85 – (Topic 8)

Your network contains a server named SQL1 that has SQL Server 2012 installed. SQL1 contains

a database name DB1 and a table named Customers.

You add an additional server named SQL2 that runs SQL Server 2012.

You need to create a distributed partitioned view. The solution must minimize the amount of network traffic.

What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

  1. Add SQL2 as a Distributor.

  2. Add the Customers table to SQL2.

  3. Add SQL2 as a linked server.

  4. Create the view on SQL1.

  5. Remove the Customers table from SQL1.

  6. Create the view on SQL2.

Answer: B,C,D,F

Question No: 86 – (Topic 8)

You have a database for a mission-critical web application. The database is stored on a SQL Server 2012 instance and is the only database on the instance.

The application generates all T-SQL statements dynamically and does not use stored procedures.

You need to maximize the amount of memory available for data caching. Which advanced server option should you modify?

  1. Optimize for Ad hoc Workloads

  2. Enable Contained Databases

  3. Allow Triggers to Fire Others

  4. Scan for Startup Procs

Answer: A

Question No: 87 – (Topic 8)

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

Dumps4Cert 2018 PDF and VCE

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

Dumps4Cert 2018 PDF and VCE

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?

  1. WHERE FREETEXT(notes, #39;ll%#39;) AND

  2. INNER JOIN FREETEXTTABLE(dbo.table1, notes, #39;call#39;) AS t2 ON dbo.table1.ID = t2.key WHERE

  3. WHERE CONTAINS(notes, #39;call*#39;) AND

  4. WHERE CONTAINS(notes,*ll%#39;gt; AND

Answer: A

Question No: 88 – (Topic 8)

You need to implement a solution that meets the data recovery requirements. You update each stored procedure to accept a parameter named @transactionID. What should you add next to the beginning of each stored procedure?

  1. SAVE TRANSACTION WITH MARK @transactionID

  2. ROLLBACK DISTRIBUTED TRANSACTION @transactionID

  3. BEGIN TRANSACTION WITH MARK @transactionID

  4. COMMIT TRANSACTION @transactionID

Answer: C

Question No: 89 – (Topic 8)

You administer an instance of SQL Server 2014.

You are tasked with tuning a common set of queries. You have the results of several test

executions, along with query plans. The schema and the data for all database object(s) used remain unchanged between executions. The QueryTime column is defined as a computed column that uses the GETDATE() system function. The query plans and results are shown below:

Dumps4Cert 2018 PDF and VCE

Dumps4Cert 2018 PDF and VCE

You need to make an initial diagnosis of the situation, based solely on this input

Which two statements can you make about the performance characteristics of this query? Each correct answer presents a complete solution. Choose two.

  1. The queries would perform better if the index named AccountNumber included the Name and QueryTime column.

  2. The queries would perform worse if the index named AccountNumber included the NameColumn.

  3. The queries would perform better if the index named AccountNumber included the Name column.

  4. The object Account is a table, with an index having a leading column of AccountNumber and a Clustered Index named PKAccount.

  5. The object Account is an indexed view, with an index having a leading column of AccountNumber and a Clustered Index named PKAccount.

  6. The object Account is a view, joining the Account-AccountNumber and Account.PKAccount objects together.

Answer: B,D

Question No: 90 – (Topic 8)

You use SQL Azure to store data used by an e-commerce application.

You develop a stored procedure named sp1. Sp1 is used to read and change the price of all the products sold on the e-commerce site.

You need to ensure that other transactions are blocked from updating product data while sp1 is executing.

Which transaction isolation level should you use in sp1?

  1. Repeatable read

  2. Read committed

  3. Serializable

  4. Snapshot

Answer: C

100% Dumps4cert Free Download!
Download Free Demo:70-464 Demo PDF
100% Dumps4cert Pass Guaranteed!
Download 2018 Dumps4cert 70-464 Full Exam PDF and VCE

Dumps4cert ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No