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

Developing Microsoft SQL Server 2012 Databases

Question No: 21 – (Topic 2)

You execute usp_TestSpeakers.

You discover that usp_SelectSpeakersByName uses inefficient execution plans.

You need to update usp_SelectSpeakersByName to ensure that the most efficient execution plan is used.

What should you add at line 30 of Procedures.sql?

  1. OPTION (FORCESCAN)

  2. OPTION (FORCESEEK)

  3. OPTION (OPTIMIZE FOR UNKNOWN)

  4. OPTION (OPTIMIZE FOR (@LastName= #39;Anderson#39;))

Answer: C Explanation:

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

Question No: 22 – (Topic 2)

You need to create the object used by the parameter of usp_InsertSessions. Which statement should you use?

  1. CREATE SCHEMA SessionDataTable

  2. CREATE TYPE SessionDataTable AS Table

  3. CREATE TABLE SessionDataTable

  4. CREATE XML SCHEMA COLLECTION SessionDataTable

Answer: A

Question No: 23 – (Topic 2)

While testing usp.GetFutureSessions, you discover that IX_Sessions is accessed by a scan rather than a seek.

You need to minimize the amount of time it takes to execute usp_GetFutureSessions.

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

Dumps4Cert 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

  6. Option F

Answer: B,E

Explanation: Future delivery dates.

Topic 3, Scenario 3 Application Information

You have two servers named SQL1 and SQL2. SQL1 has SQL Server 2012 Enterprise installed. SQL2 has SQL Server 2008 Standard installed.

You have an application that is used to manage employees and office space. Users report that the application has many errors and is very slow.

You are updating the application to resolve the issues.

You plan to create a new database on SQL1 to support the application. The script that you plan to use to create the tables for the new database is shown in Tables.sql. The script that you plan to use to create the stored procedures for the new database is shown in StoredProcedures.sql. The script that you plan to use to create the indexes for the new database is shown in Indexes.sql.

A database named DB2 resides on SQL2. DB2 has a table named EmployeeAudit that will audit changes to a table named Employees.

A stored procedure named usp_UpdateEmployeeName will be executed only by other stored procedures. The stored procedures executing usp_UpdateEmp!oyeeName will always handle transactions.

A stored procedure named usp_SelectEmployeesByName will be used to retrieve the names of employees. Usp_SelectEmployeesByName can read uncommitted data.

A stored procedure named usp_GetFutureOfficeAssignments will be used to retrieve office assignments that will occur in the future.

StoredProcedures.sql

Dumps4Cert 2018 PDF and VCE

Indexes.sql

Dumps4Cert 2018 PDF and VCE

Tables.sql

Dumps4Cert 2018 PDF and VCE

Question No: 24 – (Topic 3)

You execute usp_SelectEmployeesByName multiple times, passing strings of varying lengths to @LastName. You discover that usp_SelectEmployeesByName uses inefficient execution plans.

You need to update usp_SelectEmployeesByName to ensure that the most efficient execution plan is used.

What should you add at line 31 of StoredProcedures.sql?

  1. OPTION (ROBUST PLAN)

  2. OPTION (OPTIMIZE FOR UNKNOWN)

  3. OPTION (KEEP PLAN)

  4. OPTION (KEEPFIXED PLAN)

Answer: B Explanation:

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

Question No: 25 – (Topic 3)

You need to modify usp_SelectEmployeesByName to support server-side paging. The solution must minimize the amount of development effort required.

What should you add to usp_SelectEmployeesByName?

  1. A table variable

  2. The ROWNUMBER keyword

  3. An OFFSET-FETCH clause

  4. A recursive common table expression

Answer: C Explanation:

http://www.mssqltips.com/sqlservertip/2696/comparing-performance-for-different-sql- serverpaging-methods/

http://msdn.microsoft.com/en-us/library/ms188385.aspx http://msdn.microsoft.com/en-us/library/ms180152.aspx http://msdn.microsoft.com/en-us/library/ms186243.aspx

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

http://www.sqlserver-training.com/how-to-use-offset-fetch-option-in-sql-server-order- byclause/-

http://www.sqlservercentral.com/blogs/juggling_with_sql/2011/11/30/using-offset-and-fetch/

Question No: 26 – (Topic 3)

You need to create the object used by the parameter of usp_UpdateEmployeeName. Which code segment should you use?

  1. CREATE XML SCHEMA COLLECTION EmployeesInfo

  2. CREATE TYPE EmployeesInfo AS Table

  3. CREATE SCHEMA EmployeesInfo

  4. CREATE TABLE EmployeesInfo

Answer: B Explanation:

Example Usage of Table-Valued Parameters (Database Engine) http://msdn.microsoft.com/en-us/library/bb510489.aspx (Benefits of using Table-Valued Parameters)

/* Create a table type. */

CREATE TYPE LocationTableType AS TABLE ( LocationName VARCHAR(50)

, CostRate INT ); GO

/* Create a procedure to receive data for the table-valued parameter. */ CREATE PROCEDURE dbo. usp_InsertProductionLocation

@TVP LocationTableType READONLY AS

SET NOCOUNT ON

INSERT INTO AdventureWorks2012.Production.Location (Name

,CostRate

,Availability

,ModifiedDate)

SELECT *, 0, GETDATE()

FROM @TVP; GO

Also:

http://msdn.microsoft.com/en-us/library/ms175007.aspx(CREATE TYPE *tabletypename* AS

TABLE)

http://msdn.microsoft.com/en-us/library/ms175010.aspx(table data types) Wrong Answers:

http://msdn.microsoft.com/en-us/library/ms174979.aspx(CREATE TABLE) http://msdn.microsoft.com/en-us/library/ms189462.aspx(CREATE SCHEMA) http://msdn.microsoft.com/en-us/library/ms176009.aspx(CREATE XML SCHEMA COLLECTION)

Question No: 27 – (Topic 3)

You need to provide referential integrity between the Offices table and Employees table.

Which code segment or segments should you add at line 27 of Tables.sql? (Each correct answer presents part of the solution. Choose all that apply.)

Dumps4Cert 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: C,D Explanation:

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

Question No: 28 – (Topic 3)

You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateEmployeeName.

What should you include in the recommendation?

  1. Change data capture

  2. Change tracking

  3. Transactional replication

  4. The Distributed Transaction Coordinator (DTC)

Answer: D

Question No: 29 – (Topic 3)

You need to add a new column named Confirmed to the Employees table. The solution must meet the following requirements:

->Have a default value of TRUE.

->Minimize the amount of disk space used.

Which code segment should you use?

Dumps4Cert 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: D

Topic 4, Scenario 4 Application Information

You are a database administrator for a manufacturing company.

You have an application that stores product data. The data will be converted to technical diagrams for the manufacturing process.

The product details are stored in XML format. Each XML must contain only one product that has a root element named Product. A schema named Production.ProductSchema has been created for the products xml.

You develop a Microsoft .NET Framework assembly named ProcessProducts.dll that will be used to convert the XML files to diagrams. The diagrams will be stored in the database as images. ProcessProducts.dll contains one class named ProcessProduct that has a method name of Convert(). ProcessProducts.dll was created by using a source code file named ProcessProduct.cs.

All of the files are located in C:\Products\.

The application has several performance and security issues.

You will create a new database named ProductsDB on a new server that has SQL Server 2012 installed. ProductsDB will support the application.

The following graphic shows the planned tables for ProductsDB:

Dumps4Cert 2018 PDF and VCE

You will also add a sequence named Production.ProductID_Seq.

You plan to create two certificates named DBCert and ProductsCert. You will create ProductsCert in master. You will create DBCert in ProductsDB.

You have an application that executes dynamic T-SQL statements against ProductsDB. A sample of the queries generated by the application appears in Dynamic.sql.

Application Requirements

The planned database has the following requirements:

->All stored procedures must be signed.

->The amount of disk space must be minimized.

->Administrative effort must be minimized at all times.

->The original product details must be stored in the database.

->An XML schema must be used to validate the product details.

->The assembly must be accessible by using T-SQL commands.

->A table-valued function will be created to search products by type.

->Backups must be protected by using the highest level of encryption.

->Dynamic T-SQL statements must be converted to stored procedures.

->Indexes must be optimized periodically based on their fragmentation.

->Manufacturing steps stored in the ManufacturingSteps table must refer to a product by the same identifier used by the Products table.

ProductDetails_Insert.sql

Dumps4Cert 2018 PDF and VCE

Product, xml

All product types are 11 digits. The first five digits of the product id reference the category of the product and the remaining six digits are the subcategory of the product.

The following is a sample customer invoice in XML format:

Dumps4Cert 2018 PDF and VCE

ProductsByProductType.sql

Dumps4Cert 2018 PDF and VCE

Dynamic.sql

Dumps4Cert 2018 PDF and VCE

Category FromType.sql

Dumps4Cert 2018 PDF and VCE

IndexManagement.sql

Dumps4Cert 2018 PDF and VCE

Question No: 30 – (Topic 4)

You need to prepare the database to use the .NET Framework ProcessProducts component.

Which code segments should you execute? (Each correct answer presents part of the solution. Choose all that apply.)

Dumps4Cert 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

  6. Option F

  7. Option G

Answer: A,C,D,E Explanation:

http://msdn.microsoft.com/en-us/library/ms131048.aspx http://msdn.microsoft.com/en-us/library/ms131052.aspx http://msdn.microsoft.com/en-us/library/ms189524.aspx http://msdn.microsoft.com/en-us/library/ms345106.aspx http://msdn.microsoft.com/en-us/library/ms131107.aspx

100% Dumps4cert Free Download!
70-464 PDF
100% Dumps4cert Pass Guaranteed!
70-464 Dumps

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.