MCSA Querying Microsoft SQL Server 2012/2014

Here you have the best Microsoft 70-461 practice exam questions

  • You have 254 total questions to study from
  • Each page has 5 questions, making a total of 51 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on October 14, 2025
  • This site is not affiliated with or endorsed by Microsoft.
Question 1 of 254
You develop a Microsoft SQL Server database that supports an application. The application contains a table that has the following definition:

CREATE TABLE Inventory -
(ItemID int NOT NULL PRIMARY KEY,
ItemsInStore int NOT NULL,
ItemsInWarehouse int NOT NULL)
You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row.
Which Transact-SQL statement should you use?
    Correct Answer: A

    The correct Transact-SQL statement for creating a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values is 'ALTER TABLE Inventory ADD TotalItems AS ItemsInStore + ItemsInWarehouse'. This syntax correctly defines a computed column named TotalItems that calculates the sum of ItemsInStore and ItemsInWarehouse for each row in the Inventory table.

Question 2 of 254
You develop a Microsoft SQL Server database. You create a view from the Orders and OrderDetails tables by using the following definition.
Exam 70-461: Question 2 - Image 1
You need to improve the performance of the view by persisting data to disk. What should you do?
    Correct Answer: D

    To improve the performance of a view by persisting data to disk in SQL Server, you should create an indexed view. Creating a clustered index on the view materializes the view's data and stores it on disk, which can significantly improve performance especially for complex queries. This is done by creating a clustered index on the view. Other options like triggers (INSTEAD OF or AFTER) or using WITH VIEW_METADATA do not serve the purpose of persisting data to disk.

Question 3 of 254
Note: This question is part of a series of questions that use the same set of answer choices. An answer choice may be correct for more than one question in the series.
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?
    Correct Answer: I

    To store both date and time along with time zone information, the DATETIMEOFFSET data type is appropriate. It includes the date, time, and the time zone offset, which allows the database to store the complete datetime value including time zone information. This aligns with the requirements of handling departure and arrival times in a travel application that operates across multiple time zones.

Question 4 of 254
SIMULATION -
You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.)
Exam 70-461: Question 4 - Image 1
You deploy a new server that has SQL Server 2012 installed. You need to create a table named
Sales.OrderDetails on the new server. Sales.OrderDetails must meet the following requirements:
✑ Write the results to a disk.
✑ Contain a new column named LineItemTotal that stores the product of ListPrice and Quantity for each row.
✑ The code must NOT use any object delimiters.
The solution must ensure that LineItemTotal is stored as the last column in the table. Which code segment should you use?
To answer, type the correct code in the answer area.
    Correct Answer:

Question 5 of 254
SIMULATION -
You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.)
Exam 70-461: Question 5 - Image 1
You need to create a view named uv_CustomerFullName to meet the following requirements:
The code must NOT include object delimiters.
Exam 70-461: Question 5 - Image 2
✑ The view must be created in the Sales schema.
✑ Columns must only be referenced by using one-part names.
✑ The view must return the first name and the last name of all customers.
✑ The view must prevent the underlying structure of the customer table from being changed.
✑ The view must be able to resolve all referenced objects, regardless of the user's default schema.
Which code segment should you use?
To answer, type the correct code in the answer area.
    Correct Answer: