Home » New Updated Microsoft MCSE 70-459 Real Exam Questions and Answers Download Case Study 5: Manufacturing Company

New Updated Microsoft MCSE 70-459 Real Exam Questions and Answers Download Case Study 5: Manufacturing Company

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

 

70-459-demo-48

 

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

 

ProductDetails_Insert.sql

70-459-demo-49

 

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:

 

70-459-demo-50

 

ProductsByProductType.sql

 

70-459-demo-51

 

 

Dynamic.sql

70-459-demo-52

 

CategoryFromType.sql

70-459-demo-53

 

 

IndexManagement.sql

70-459-demo-54

 

 

QUESTION 1

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

requirements. Which code segment should you execute?

 

  1. ADD SIGNATURE TO Production.ProductDetails_Insert

BY CERTIFICATE PRODUCTSCERT;

 

  1. OPEN DBCERT;

ALTER PROCEDURE Production.ProductDetails_Insert

WITH ENCRYPTION;

CLOSE DBCERT;

 

  1. ADD SIGNATURE TO Production.ProductDetails_Insert

BY CERTIFICATE DBCERT;

 

  1. OPEN PRODUCTSCERT;

ALTER PROCEDURE Production.ProductDetails_Insert

WITH ENCRYPTION;

CLOSE PRODUCTSCERT;

 

Correct Answer: C

 

 

QUESTION 2

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?

 

  1. CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))

RETURNS @tblInvoices TABLE (ProductID bigint, ProductType varchar(11), CreationDate

date)

AS

 

  1. CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))

RETURNS xml

AS

RETURN

 

  1. CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))

RETURNS @tblInvoices TABLE (ProductID bigint, ProductType varchar(11), CreationDate

date)

AS

INSERT INTO @tblInvoices

 

  1. CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))

RETURNS TABLE

AS

RETURN

 

Correct Answer: D

 

 

QUESTION 3

You are planning the ManufacturingSteps table. You need to define the ProductID column in the

CREATE TABLE statement. Which code segment should you use?

 

  1. ProductID bigint FOREIGN KEY REFERENCES

Production.Product(ProductID) NOT NULL,

 

  1. ProductID bigint DEFAULT

(NEXT VALUE FOR Production.ProductID_Seq) NOT NULL,

  1. ProductID bigint DEFAULT

((NEXT VALUE FOR Production.ProductID_Seq OVER

(ORDER BY ManufacturingStepID))) NOT NULL FOREIGN KEY REFERENCES

Production.Product(ProductID),

 

  1. ProductID bigint DEFAULT

((NEXT VALUE FOR Production.ProductID_Seq OVER

(ORDER BY ManufacturingStepID))) NOT NULL,

 

Correct Answer: A

 

 

QUESTION 4

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

Which code segments should you execute? (Each correct answer pres
ents part of the solution.

Choose all that apply.)

 

  1. CREATE ASSEMBLY ProductionAssembly FROM ‘C:ProductsProcessProducts.DLL’;

  2. EXEC sp_recompile @objname = ‘Production.ProcessProduct’;

  3. RECONFIGURE;

  4. EXEC sp_configure ‘clr enabled’, ‘1’;

  5. CREATE ASSEMBLY ProductionAssembly FROM ‘C:ProductsProcessProducts.cs’;

  6. CREATE PROCEDURE Production.ProcessProduct(

@ProductID int, @ProductType varchar(11)

)

AS EXTERNAL NAME ProductionAssembly.ProcessProduct.Process;

  1. CREATE TYPE Production.ProcessProduct

EXTERNAL NAME ProductionAssembly.ProcessProducts.Process;

 

Correct Answer: ACDG

 

 

QUESTION 5

You need to implement Transparent Data Encryption (TDE) on ProductsDB. Which code segment

should you use?

 

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

 

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

 

  1. USE PRODUCTSDB;

GO

CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_256

ENCRYPTION BY SERVER CERTIFICATE PRODUCTSCERT;

GO

ALTER DATABASE PRODUCTSDB SET ENCRYPTION ON;

GO

 

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

 

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

Try Microsoft MCSE 70-459 Free Demo

 

HOT EXAM!
New Updated Microsoft MCSE 70-459 Real Exam Questions and Answers Download Case Study 6: Database Application Scenario
New Updated Microsoft MCSE 70-459 Real Exam Questions and Answers Download Case Study 4: Application Scenario

Name of author

Name: admin