Free Download Microsoft 70-464 PDF Full Version Now (71-80)

QUESTION 71
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?

A.    ALTER TABLE Employees
ADD Confirmed bit DEFAULT 0;
B.    ALTER TABLE Employees
ADD Confirmed char(l) DEFAULT ‘1’;
C.    ALTER TABLE Employees
ADD Confirmed bit DEFAULT 1;
D.    ALTER TABLE Employees
ADD Confirmed char(l) DEFAULT ‘0’;

Answer: C

QUESTION 72
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?

A.    OPTION (KEEPFIXED PLAN)
B.    OPTION (KEEP PLAN)
C.    OPTION (ROBUST PLAN)
D.    OPTION (OPTIMIZE FOR UNKNOWN)

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

QUESTION 73
You need to recommend a solution to ensure that SQL1 supports the auditing requirements of usp_UpdateEmployeeName. What should you include in the recommendation?

A.    change data capture
B.    transactional replication
C.    change tracking
D.    the Distributed Transaction Coordinator (DTC)

Answer: D

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

A.    CREATE XML SCHEMA COLLECTION EmployeesInfo
B.    CREATE TABLE EmployeesInfo
C.    CREATE TYPE EmployeesInfo AS Table
D.    CREATE SCHEMA EmployeesInfo

Answer: C
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)

Case Study 5: Scenario 5 (Question 75 ~ Question 80)
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:

image
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

image
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:

image
ProductsByProductType.sql

image
Dynamic.sql

image
CategoryFromType.sql

image
IndexManagement.sql

image

QUESTION 75
You need to modify Production.ProductDetails_Insert to comply with the application requirements.
Which code segment should you execute?

A.    ADD SIGNATURE TO Production.ProductDetails_Insert BY CERTIFICATE PRODUCTSCERT;
B.    OPEN DBCERT;
ALTER PROCEDURE Production.ProductDetails_Insert WITH ENCRYPTION;
CLOSE DBCERT;
C.    ADD SIGNATURE TO Production.ProductDetails_Insert BY CERTIFICATE DBCERT;
D.    OPEN PRODUCTSCERT;
ALTER PROCEDURE Production.ProductDetails_Insert WITH ENCRYPTION;
CLOSE PRODUCTSCERT;

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

QUESTION 76
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?

A.    CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))
RETURNS @tblInvoices TABLE (ProductID bigint, ProductType varchar(11), CreationDate date)
AS
B.    CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))
RETURNS xml
AS
RETURN
C.    CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))
RETURNS @tblInvoices TABLE (ProductID bigint, ProductType varchar(11), CreationDate date)
AS
INSERT INTO @tblInvoices
D.    CREATE FUNCTION Production.fnProductsByProductType (@ProductType varchar(11))
RETURNS TABLE
AS
RETURN

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

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

A.    ProductID bigint FOREIGN KEY REFERENCES
Production.Product(ProductID) NOT NULL,
B.    ProductID bigint DEFAULT
(NEXT VALUE FOR Production.ProductID_Seq) NOT NULL,
C.    ProductID bigint DEFAULT
((NEXT VALUE FOR Production.ProductID_Seq OVER
(ORDER BY ManufacturingStepID))) NOT NULL FOREIGN KEY REFERENCES Production.
Product(ProductID),
D.    ProductID bigint DEFAULT
((NEXT VALUE FOR Production.ProductID_Seq OVER
(ORDER BY ManufacturingStepID))) NOT NULL,

Answer: A
Explanation:
According to these references, this answer looks correct.
References:
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 78
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.)

A.    CREATE ASSEMBLY ProductionAssembly FROM ‘C:\Products\ProcessProducts.DLL’;
B.    EXEC sp_recompile @objname = ‘Production.ProcessProduct’;
C.    RECONFIGURE;
D.    EXEC sp_configure ‘clr enabled’, ‘1’;
E.    CREATE ASSEMBLY ProductionAssembly FROM ‘C:\Products\ProcessProducts.cs’;
F.    CREATE PROCEDURE Production.ProcessProduct(
@ProductID int, @ProductType varchar(11)
)
AS EXTERNAL NAME ProductionAssembly.ProcessProduct.Process;
G.    CREATE TYPE Production.ProcessProduct
EXTERNAL NAME ProductionAssembly.ProcessProducts.Process;

Answer: ACDG
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 79
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

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

QUESTION 80
IndexManagement.sql

image
You execute IndexManagement.sql and you receive the following error message: “Msg 512, Level 16, State 1, Line 80 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 86?

A.    WHILE @counter < (SELECT COUNT(RowNumber) FROM @indextable)
B.    WHILE @counter < (SELECT SUM(RowNumber) FROM @indextable)
C.    WHILE SUM(@RowNumber) < (SELECT @counter FROM @indextable)
D.    WHILE COUNT(@RowNumber) < (SELECT @counter FROM @indextable)

Answer: A

If you want to pass Microsoft 70-464 successfully, donot missing to read latest lead2pass Microsoft 70-464 practice tests.
If you can master all lead2pass questions you will able to pass 100% guaranteed.

http://www.lead2pass.com/70-464.html

Lead2pass Testking Pass4sure Actualtests Others
$99.99 $124.99 $125.99 $189 $29.99-$49.99
Up-to-Dated
Real Questions
Error Correction
Printable PDF
Premium VCE
VCE Simulator
One Time Purchase
Instant Download
Unlimited Install
100% Pass Guarantee
100% Money Back