New Updated Microsoft MCSE 70-464 Real Exam Questions and Answers Download Topic 4, Scenario 4

Ensurepass

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:

 

clip_image001

 

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:

 

clip_image003All stored procedures must be signed.

clip_image003[1]The amount of disk space must be minimized.

clip_image003[2]Administrative effort must be minimized at all times.

clip_image003[3]The original product details must be stored in the database.

clip_image003[4]An XML schema must be used to validate the product details.

clip_image003[5]The assembly must be accessible by using T-SQL commands.

clip_image003[6]A table-valued function will be created to search products by type.

clip_image003[7]Backups must be protected by using the highest level of encryption.

clip_image003[8]Dynamic T-SQL statements must be converted to stored procedures.

clip_image003[9]Indexes must be optimized periodically based on their fragmentation.

clip_image003[10]Manufacturing steps stored in the ManufacturingSteps table must refer to a product by the same identifier used by the Products table.

 

ProductDetails_Insert.sql

clip_image005

 

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:

 

clip_image006

 

ProductsByProductType.sql

 

clip_image007

 

Dynamic.sql

 

clip_image008

 

Category FromType.sql

clip_image010

 

IndexManagement.sql

clip_image012

 

 

QUESTION 30

Which code segment should you use to define the ProductDetails column?

 

A.

ProductDetails xml (DOCUMENT Production.ProductDetailsSchema) NULL

B.

ProductDetails xml NULL

C.

ProductDetails xml (CONTENT Production.ProductDetailsSchema) NULL

D.

ProductDetails varchar(MAX) NULL

 

Correct Answer: D

 

 

QUESTION 31

You need to modify Production.ProductDetails_Insert to comply with the application

requirements. Which code segment should you execute?

 

clip_image013

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

Explanation:

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

 

 

QUESTION 32

You need to create a function that will use a SELECT statement in ProductsByProductType.sql. Which code segment should you use to complete the function?

 

clip_image015

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

Explanation:

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

 

 

QUESTION 33

An administrator provides a digital certificate named ServerCert. You need to implement Transparent Data Encryption (TDE) on ProductsDB. Which code segment should you use?

 

A.

USE PRODUCTSDB;

GO

CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = TRIPLE_DES_3KEY ENCRYPTION BY SERVER CERTIFICATE DBCERT;

GO

ALTER DATABASE PRODUCTSDB SET ENCRYPTION ON;

GO

B.

USE PRODUCTSDB;

GO

CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = TRIPLE_DES_3KEY ENCRYPTION BY SERVER CERTIFICATE PRODUCTSCERT;

GO

ALTER DATABASE PRODUCTSDB SET ENCRYPTION ON;

GO

C.

USE PRODUCTSDB;

GO

CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_256 ENCRYPTION BY SERVER CERTIFICATE PRODUCTSCERT;

GO

ALTER DATABASE PRODUCTSDB SET ENCRYPTION ON;

GO

D.

USE PRODUCTSDB;

GO

CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_256 ENCRYPTION BY SERVER CERTIFICATE DBCERT;

GO

ALTER DATABASE PRODUCTSDB SET ENCRYPTION ON;

GO

 

Correct Answer: C

Explanation:

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

 

 

QUESTION 34

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)

 

Correct Answer: D

 

 

QUESTION 35

You are planning the ManufacturingSteps table. You need to define the ProductID column in the CREATE TABLE statement. Which code segment should you use?

 

clip_image016

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

Explanation:

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

 

 

QUESTION 36

You are testing disaster recovery procedures. When you attempt to restore ProductsDB to another server, you receive the following error message:

 

“Msg

 

33111, Level 16, State 3, Line 5

 

Cannot find server certificate with thumbprint ‘

0x9D876A3468B911ElBA4CFCBF4724019B

 

Msg 3013, Level 16, State 1, Line 5

 

RESTORE DATABASE is terminating abnormally.”

 

You need to ensure that you can restore ProductsDB to another server.

 

Which code segment should you execute on the other server?

 

clip_image017

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 37

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

 

clip_image019

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

F.

Option F

G.

Option G

 

Correct Answer: ACDE

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

 

 

QUESTION 38

While testing the CategoryFromType function, you discover that the function is returning ‘Other’. You need to update CategoryFromType to return the category name. Which line of code should you modify in CategoryFromType.sql?

 

A.

04

B.

05

C.

12

D.

14

 

Correct Answer: B

 

 

QUESTION 39

Which data type should you use for ProductType?

 

A.

varchar(11)

B.

nvarchar(11)

C.

char(11)

D.

bigint

 

Correct Answer: C

 

Instant Access to Download Latest Complete Collection of Microsoft MCSE 70-464 Real Exam

Try Microsoft MCSE 70-464 Free Demo