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

    You work as a database developer at ABC.com. ABC.com has a SQL Server 2012 database named SalesDB that has a table named WeeklySales. The WeeklySales table records the sales amount for each of ABC.com's 20 sales representatives.

    You need to write a Transact-SQL query that ranks the sales representatives by the average sales amount for the past year. You want the sales representatives with the same average sales amount to have the same rank with the subsequent rank being skipped.

    Which ranking function should you use?

    A. The RANK( ) OVER function.
    B. The NTILE( ) OVER function
    C. The DENSE_RANK( ) OVER function
    D. The ROW_NUMBER( ) OVER function
    E. The FORMAT function.

  • Question 92:

    You work as a database developer at ABC.com. ABC.com has a SQL Server 2012 database infrastructure with a very large database named SalesDB.

    You create a new table named SalesHistory that will hold historical data from the SalesDB database.

    You need to perform a batch update from the SalesDB database to the SalesHistory table. You want the status information from the batch process to be logged to a SQL Server table that must be created by the batch process.

    How would you accomplish this task?

    A. You should make use of the FORMAT function.
    B. You should make use of the CONVERT function.
    C. You should make use of a scalar user-defined function.
    D. You should make use of an inline function.
    E. You should make use of a table-valued function.
    F. You should make use of a stored procedure.

  • Question 93:

    You develop a Microsoft SQL Server database that contains a two tables named OrdersHistorical and CompletedOrders. Both tables have the same schema that has the following definition:

    You write the following Transact-SQL statement:

    You need to ensure that data that falls into the date range of the SELECT statement cannot be inserted into CompletedOrders while the INSERT statement is running. You also need to ensure that other operations are unaffected.

    Which table hint should you use?

    A. ROWLOCK
    B. HOLDLOCK
    C. XLOCK
    D. TABLOCK
    E. UPDLOCK

  • Question 94:

    DRAG DROP

    You are developing a Microsoft SQL Server database.

    You need to meet the following requirements:

    1. Create a table that contains a primary key column and an XML data column.

    2. Prevent insertion of invalid XML.

    3. Load an XML document.

    Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order.

    Select and Place:

  • Question 95:

    You are the database administrator of a SQL Server 2012 database infrastructure at ABC.com.

    You need to optimize a very large database table that contains several million rows of data by designing a view based on the table. The view must allow users to perform aggregations on several columns.

    How should you configure the view to ensure optimal performance?

    A. You should create the view as an indexed view.
    B. You should create a clustered index on the view.
    C. You should make use of a stored procedure to return that data.
    D. You should make use of a table-valued function.

  • Question 96:

    You are designing a table for a SQL Server database. The table uses horizontal partitioning.

    You have the following requirements:

    Each record in the table requires a unique key.

    You must minimize table fragmentation as the table grows.

    You need to choose the appropriate data type for the key value.

    What should you do?

    A. Use the NEWID function to create a unique identifier.
    B. Use the NEWSEQUENTIALID function to create a unique identifier.
    C. Generate a random value that uses the bigint datatype.
    D. Generate a random value that uses the char(16) data type.

  • Question 97:

    What is the limit for the number of steps in statistic histograms?

    A. 10 steps per histogram
    B. 200 histograms per column
    C. 200 pages per histogram
    D. 200 steps per histogram

  • Question 98:

    You generate a daily report according to the following query:

    You need to improve the performance of the query. What should you do?

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

  • Question 99:

    You administer a Microsoft SQL Server 2012 database. The database contains a table named Employee. Part of the Employee table is shown in the exhibit.

    Unless stated above, no columns in the Employee table reference other tables. Confidential information about the employees is stored in a separate table named EmployeeData. One record exists within EmployeeData for each record in the

    Employee table. You need to assign the appropriate constraints and table properties to ensure data integrity and visibility.

    On which column in the Employee table should you create a Primary Key constraint for this table?

    A. DateHired
    B. DepartmentID
    C. EmployeeID
    D. EmployeeNum
    E. FirstName
    F. JobTitle
    G. LastName
    H. MiddleName
    I. ReportsToID

  • Question 100:

    You want to add a new GUID column named BookGUID to a table named dbo.Book that already contains data.

    BookGUID will have a constraint to ensure that it always has a value when new rows are inserted into dbo.Book.

    You need to ensure that the new column is assigned a GUID for existing rows.

    Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of statements to the answer area and arrange them in the correct order.)

    Select and Place:

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.