Free Download Pass4sure PDF & VCE 70-464 Exam Question (31-40)

QUESTION 31
You plan to design an application that temporarily stores data in a SQL Azure database. You need to identify which types of database objects can be used to store data for the application. The solution must ensure that the application can make changes to the schema of a temporary object during a session. Which type of objects should you identify?

A.    common table expressions (CTEs)
B.    table variables
C.    temporary tables
D.    temporary stored procedures

Answer: C

QUESTION 32
You have a text file that contains an XML Schema Definition (XSD). You have a table named Schemal.Table1. You have a stored procedure named Schemal.Proc1 that accepts an XML parameter named Param1. You need to store validated XML data in Schemal.Table1. The solution must ensure that only valid XML data is accepted by Param1. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A.    Define an XML column in Table1 by using an XML schema collection.
B.    Create an XML schema collection in the database from the text file.
C.    Declare Param1 var1 as type XML and associate the variable to the XML schema collection.
D.    use the modify method to insert the XML schema into each row of the XML column in Table1.

Answer: ABD

QUESTION 33
Drag and Drop Question
You plan to deploy two stored procedures named SP1 and SP2 that read data from the database. Your company identifies the following requirements for each stored procedure:
– SP1 must allow dirty reads.
– SP2 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.)
331

Answer:
332

QUESTION 34
You have an index for a table in a SQL Azure database. The database is used for Online Transaction Processing (OLTP). You discover that many page splits occur when records are inserted or updated in the table. You need to minimize the number of page splits. What should you set from the index options?

A.    STATISTICS_NORECOMPUTE = ON
B.    FILLFACTOR = 0
C.    STATISTICS_NORECOMPUTE = OFF
D.    FILLFACTOR = 80

Answer: D

QUESTION 35
You have a SQL Server 2012 database named Database1. You execute the following code:
351
You insert 3 million rows into Sales. You need to reduce the amount of time it takes to execute Proc1. What should you do?

A.    ProductType varchar(11) ‘@ProductType’,
B.    ProductType varchar(11) ‘ProductType/ID’,
C.    ProductType varchar(11) ‘ProductType/@ID’,
D.    ProductType varchar(11) ‘ProductType1’.

Answer: D

QUESTION 36
You have a SQL Azure database. You execute the following script:
CREATE TABLE dbo.Table1
(Column1 int PRIMARY KEY,
Colunm2 varchar(50) SPARSE NULL )
You add 1 million rows to Table1. Approximately 85 percent of all the rows have a null value for Column2. You plan to deploy an application that will search Column2. You need to create an index on Table1 to support the planned deployment. The solution must minimize the storage requirements. Which code segment should you execute?

A.    CREATE INDEX IX_Table1 ON Table1 (Column2)
WITH FILLFACTOR-0
B.    CREATE INDEX IX_Table1 OK Table1 (Column1)
INCLUDE (Column2)
C.    CREATE INDEX IX_Table1 ON Table1 (Column2)
WHERE Column2 IS NULL
D.    CREATE INDEX IX_Table1 ON Table1 (Column2)
WHERE Column2 IS NOT NOLL

Answer: D

QUESTION 37
You are creating a table named Orders. You need to ensure that every time a new row is added to the Orders table, a table that is used for auditing is updated. What should you use? More than one answer choice may achieve the goal. Select the BEST answer.

A.    a CHECK constraint
B.    a FOREIGN KEY constraint
C.    a DEFAULT constraint
D.    a data manipulation language (DML) trigger
E.    a Data Definition Language (DDL) trigger

Answer: D

QUESTION 38
You have a SQL Azure database. You need to identify which keyword must be used to create a view that will be indexed. Which keyword should you identify?

A.    VIEW_METADATA
B.    SCHEMABINDING
C.    DEFAULT
D.    DISTINCT

Answer: B

QUESTION 39
Drag and Drop Question
You are designing two stored procedures named Procedure1 and Procedure2.
You identify the following requirements:
– Procedure1 must take a parameter that ensures that multiple rows of data can pass into the stored procedure.
– Procedure2 must use business logic that resides in a Microsoft .NET Framework assembly.
You need to identify the appropriate technology for each stored procedure. Which technologies should you identify?
To answer, drag the appropriate technology to the correct stored procedure in the answer area. (Answer choices may be used once, more than once, or not at all.)
391

Answer:
392

QUESTION 40
You create a view by using the following code:
\

401
Several months after you create the view, users report that the view has started to return unexpected results. You discover that the design of Table2 was modified since you created the view. You need to ensure that the view returns the correct results. Which code segment should you run?
402

A.    Option A
B.    Option B
C.    Option C
D.    Option D

Answer: A

Free Download Pass4sure PDF & VCE 70-464 Exam Question