70-461 Exam Details

  • Exam Code
    :70-461
  • Exam Name
    :Querying Microsoft SQL Server 2012/2014
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :446 Q&As
  • Last Updated
    :Jan 17, 2022

Microsoft 70-461 Online Questions & Answers

  • Question 21:

    Which of the following is not an XML data type method?

    A. merge()
    B. nodes()
    C. exist()
    D. value()

  • Question 22:

    You work as a SQL Server 2012 database administrator at ABC.com. You have developing a database named WebAnDB that will be used by a web site analysis application. The WebAnDB database has a table named Visitors that stores

    date and time data in a column named Accessed.

    You must now develop a stored procedure that will insert data into the Accessed column. You want the stored procedure to store time zone data as well.

    How would you accomplish this?

    A. You should make use of a scalar user-defined function.
    B. You should make use of the SET CONTEXT_INFO statement in the stored procedure.
    C. You should make use of the DATETIMEOFFSET data type.
    D. You should make use of the TODATETIMEOFFSET function.
    E. You should make use of the SET FORCEPLAN ON statement in the stored procedure.
    F. You should make use of a cursor.

  • Question 23:

    You develop a database for a travel application. You need to design tables and other database objects. You create the Airline_Schedules table. You need to store the departure and arrival dates and times of flights along with time zone information. What should you do?

    A. Use the CAST function.
    B. Use the DATE data type.
    C. Use the FORMAT function.
    D. Use an appropriate collation.
    E. Use a user-defined table type.
    F. Use the VARBINARY data type.
    G. Use the DATETIME data type.
    H. Use the DATETIME2 data type.
    I. Use the DATETIMEOFFSET data type.
    J. Use the TODATETIMEOFFSET function.

  • Question 24:

    You have several SQL Server queries.

    You plan to optimize the queries to improve performance.

    You run the queries in SQL Server Management Studio.

    You need to compare query runs to expose the indexing issues of the queries.

    Which three actions should you perform from SQL Server Management Studio? Each correct answer presents part of the solution.

    A. Enable the Debug option.
    B. Add the STATISTICS TIME execution setting to the query.
    C. Add the STATISTICS IO execution setting to the query.
    D. Add the STATISTICS PROFILE execution setting to the query.
    E. Enable the Include Actual Execution Plan option.

  • Question 25:

    What are the advantages of sp_executesql over the EXECUTE() command? (Choose all that apply.)

    A. sp_executesql can parameterize search arguments and help prevent SQL injection.
    B. sp_executesql uses Unicode strings.
    C. sp_executesql can return data through output parameters.

  • Question 26:

    DRAG DROP

    You need to create a stored procedure to support the following: TRY/CATCH error handling Transaction management

    Which three statements should you include in the stored procedure in sequence? To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.

    Select and Place:

  • Question 27:

    You're designing a new table that will hold information about medical records. Another table called documents contains a foreign key that references this table. To make sure information is cleaned up when a delete operation is performed, you've added an ON DELETE CASCADE statement to the foreign key relationship. What will happen when a row is deleted from the medical records table?

    A. Corresponding rows in the referenced table (documents) will be deleted
    B. All the values that make up the foreign key are set to NULL in the documents table
    C. All the values that comprise the foreign key are set to their default values in the documents table
    D. Rows are deleted from the medical records table but the documents table is unchanged

  • Question 28:

    You are a database developer of a Microsoft SQL Server 2012 database. The database contains a table named Customers that has the following definition. You need to ensure that the CustomerId column in the Orders table contains only values that exist in the CustomerId column of the Customer table. Which Transact-SQL statement should you use?

    A. ALTER TABLE Orders ADD CONSTRAINT FX_Orders_CustomerID FOR EIGN KEY (CustomerId) REFERENCES Customer (CustomerId)
    B. ALTER TABLE Customer ADD CONSTRAINT FK_Customer_CustomerID FOR EIGN KEY {Cu3tomerID; REFERENCES Orders (CustomerId)
    C. ALTER TABLE Orders ADD CONSTRAINT CK_Crders_CustomerID CHECK (CustomerId IN (SELECT CustomerId FROM Customer))
    D. ALTER TABLE Customer ADD OrderId INT NOT NULL; ALTER TABLE Customer ADD CONSTRAINT FK_Customer_OrderID FOR EIGN KEY (CrderlD) REFERENCES Orders (CrderlD);
    E. ALTER TABLE Orders ADD CONSTRAINT PK Orders CustomerId PRIMARY KEY (CustomerID)

  • Question 29:

    SIMULATION

    You need to execute an UPDATE statement that modifies a subset of rows in a table. The rows affected by the UPDATE statement must only be committed if the row count criteria is met.

    Part of the correct Transact-SQL has been provided in the answer are below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within the code that has been provided as well as below it.

    Use the ‘Check Syntax’ button to verify your work. Any syntax or spelling errors will be reported by line and character position.

  • Question 30:

    When you fetch rows from a cursor, how do you know when there are no more rows to fetch?

    A. When the @@FETCH_STATUS function returns 0
    B. When the @@FETCH_STATUS function returns -1
    C. When the @@FETCH_STATUS function returns -2
    D. When the @@FETCH_STATUS function generates an error

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-461 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.