70-433 Exam Details

  • Exam Code
    :70-433
  • Exam Name
    :TS: Microsoft SQL Server 2008, Database Development
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :202 Q&As
  • Last Updated
    :Dec 09, 2021

Microsoft 70-433 Online Questions & Answers

  • Question 41:

    You have a table named Person that contains a nvarchar column named Surname. The Person table currently has a clustered index on PersonID.

    The Surname column contains Russian and Japanese characters.

    The following code segment will be used to search by Surname.

    IF @lang ='Russian' SELECT PersonID, Surname FROM Person WHERE Surname = @SearchName COLLATE Cyrillic_General_CI_AS if @lang = 'Japanese' SELECT PersonID, Surname FROM Person WHERE Surname = @SearchName COLLATE Japanese_CI_AS_KS

    You need to enable SQL Server to perform an index seek for these queries.

    What should you do?

    A. Create an index on the Surname column.
    B. Create a computed column for each collation that needs to be searched. Create an index on the Surname column.
    C. Create a computed column for each collation that needs to be searched. Create an index on each computed column.
    D. Create a new column for each collation that needs to be searched and copy the data from the Surname column. Create an index on each new column.

  • Question 42:

    You created a Service Broker queue by using the following Transact-SQL statement:

    CREATE QUEUE VacationRequestQueue

    WITH

    RETENTION = OFF,

    ACTIVATION (

    PROCEDURE_NAME = dbo.VacationRequestProcess,

    MAX_QUEUE_READERS = 5,

    EXECUTE AS SELF

    );

    You need to modify the Service Broker queue to prevent it from processing received messages.

    The queue should continue to receive messages.

    Which Transact-SQL statement should you use?

    A. ALTER QUEUE VacationRequestQueue WITH RETENTION = ON;
    B. ALTER QUEUE VacationRequestQueue WITH STATUS = OFF;
    C. ALTER QUEUE VacationRequestQueue WITH ACTIVATION (STATUS = OFF);
    D. ALTER QUEUE VacationRequestQueue WITH ACTIVATION (EXECUTE AS OWNER);

  • Question 43:

    You are troubleshooting query performance on SQL Server 2008. You are tasked to capture a graphical execution plan. You need to save the plan to a file that can be used by SQL Server Management Studio to display the graphical execution plan.

    Which file extension should you use?

    A. .gif
    B. .xml
    C. .psql
    D. .sqlplan

  • Question 44:

    You have tables named Products and OrderDetails. The Products table has a foreign key relationship with the OrderDetails table on the ProductID column. You have the following Transact-SQL batch:

    BEGIN TRY BEGIN TRANSACTION DELETE FROM Products WHERE ProductID = 5; BEGIN TRANSACTION INSERT INTO OrderDetails ( OrderID, ProductID, Quantity ) VALUES ( 1234, 5, 12 ); COMMIT TRANSACTION COMMIT TRANSACTION END TRY BEGIN CATCH ROLLBACK TRANSACTION PRINT ERROR_MESSAGE(); END CATCH

    You need to analyze the result of executing this batch.

    What should be the expected outcome?

    A. 1. The product will be deleted from the Products table. 2. The order details will be inserted into the OrderDetails table.
    B. 1. The product will be deleted from the Products table. 2. The order details will not be inserted into the OrderDetails table.
    C. 1. The product will not be deleted from the Products table. 2. The order details will be inserted into the OrderDetails table.
    D. 1. The product will not be deleted from the Products table. 2. The order details will not be inserted into the OrderDetails table.

  • Question 45:

    You have a third-party application that inserts data directly into a table. You add two new columns to the table. These columns cannot accept NULL values and cannot use default constraints. You need to ensure that the new columns do not break the third-party application.

    What should you do?

    A. Create a DDL trigger.
    B. Create a stored procedure.
    C. Create an AFTER INSERT trigger.
    D. Create an INSTEAD OF INSERT trigger.

  • Question 46:

    You have two views named Sales.SalesSummaryOverall and Sales.CustomerAndSalesSummary. They are defined as follows:

    CREATE VIEW Sales.SalesSummaryOverall AS SELECT CustomerId, SUM(SalesTotal) AS OverallTotal FROM Sales.SalesOrder GROUP BY CustomerId GO CREATE VIEW Sales.CustomerAndSalesSummary AS SELECT Customer.Name, SalesSummaryOverall.OverallTotal, (SELECT AVG(OverallTotal) FROM Sales.SalesSummaryOverall WHERE SalesSummaryOverall.CustomerId = Customer.CustomerId) AS avgOverallTotal, (SELECT MAX(OverallTotal) FROM Sales.SalesSummaryOverall WHERE SalesSummaryOverall.CustomerId = Customer.CustomerId) AS maxOverallTotal, FROM Sales.Customer LEFT OUTER JOIN Sales. Sales.SalesSummaryOverall ON SalesSummaryByYear.CustomerId = Customer.CustomerId GO You have been tasked to modify the Sales.CustomerAndSalesSummary view to remove references to other views. You need to identify a feature to use in the modified version of the Sales.CustomerAndSalesSummary object to achieve the task.

    Which feature should you use?

    A. Table variables
    B. Temporary tables
    C. User-defined table types
    D. Common table expressions

  • Question 47:

    You create and populate two tables by using the following Transact-SQL statements:

    CREATE TABLE CurrentStudents (LastName VARCHAR(50), FirstName VARCHAR(50),

    Address VARCHAR(100),

    Age INT);

    INSERT INTO CurrentStudents

    VALUES ('Fritz', 'David', '181 Kline Street', 14)

    ,('Reese', 'Paul' , '4429 South Union', 14)

    ,('Brown', 'Jake' , '5401 Washington Ave',14)

    ,('Smith', 'Tom' , '124 Water St', 14)

    ,('Holtz', 'Mary' , '984 Mass Ct', 14)

    ,('Robbins', 'Jan' , '4449 Union Ave', 14)

    ,('Larsen', 'Frank' , '5812 Meadow St', 14)

    ,('Bishop', 'Cathy' , '14429 Skyhigh Ave', 14)

    ,('Francis', 'Thomas' , '15401 120th St', 14)

    CREATE TABLE NewYearRoster(LastName VARCHAR(50),

    FirstName VARCHAR(50),

    Address VARCHAR(100),

    Age INT);

    INSERT INTO NewYearRoster

    VALUES ('Fritz', 'David', '181 Kline Street', 15)

    ,('Reese', 'Paul', '1950 Grandview Place', 15)

    ,('Adams', 'Wilbur', '4231 W. 93rd', 15)

    ,('Adams', 'Norris', '100 1st Ave', 15)

    ,('Thomas', 'Paul', '18176 Soundview Dr', 15)

    ,('Linderson', 'Danielle', '941 W. 37 Ave', 15)

    ,('Moore', 'Joshua', '2311 10st Ave', 15)

    ,('Dark', 'Shelby', '1987 Fifth Ave', 15)

    ,('Scharp', 'Mary', '1902 W. 303rd', 15)

    ,('Morris', 'Walt', '100 12st St', 15);

    You run the following MERGE statement to update, insert and delete rows in the CurrentStudents table:

    MERGE TOP (3) CurrentStudents AS T

    USING NewYearRoster AS S

    ON S.LastName = T.LastName AND S.FirstName = T.FirstName WHEN MATCHED AND NOT (T.Age = S.Age OR T.Address = S.Address) THEN UPDATE SET Address = S.Address,

    Age = S.Age

    WHEN NOT MATCHED BY TARGET THEN

    INSERT (LastName, FirstName, Address, Age)

    VALUES (S.LastName, S.FirstName, S.Address, S.Age) WHEN NOT MATCHED BY SOURCE THEN

    DELETE;

    You need to identify the total number of rows that are updated, inserted, and deleted in the CurrentStudent table.

    Which total number of rows should you choose?

    B. 3
    C. 6
    D. 9

  • Question 48:

    You have a single CLR assembly in your database. The assembly only references blessed assemblies from the Microsoft .NET Framework and does not access external resources.

    You need to deploy this assembly by using the minimum required permissions. You must ensure that your database remains as secure as possible.

    Which options should you set?

    A. PERMISSION_SET = SAFE TRUSTWORTHY ON
    B. PERMISSION_SET = SAFE TRUSTWORTHY OFF
    C. PERMISSION_SET = UNSAFE TRUSTWORTHY ON
    D. PERMISSION_SET = EXTERNAL_ACCESS TRUSTWORTHY OFF

  • Question 49:

    You need to identify, within a given clause, if the month of February will contain 29 days for a specified year.

    Which object should you use?

    A. DML trigger
    B. Stored procedure
    C. Table-valued function
    D. Scalar-valued function

  • Question 50:

    You have been tasked to write a query to select one million rows. You need to optimize the query to return the first 50 rows as quickly as possible.

    What query hint should you use?

    A. FAST 50
    B. MAXDOP 50
    C. OPTIMIZE FOR @ROWS=50
    D. TABLE HINT(table, INDEX(50))

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-433 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.