Microsoft 70-465 Exam Practice Questions (P. 1)
- Full Access (64 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
You are designing a Windows Azure SQL Database for an order fulfillment system. You create a table named Sales.Orders with the following script.

Each order is tracked by using one of the following statuses:
✑ Fulfilled
✑ Shipped
✑ Ordered
✑ Received
You need to design the database to ensure that that you can retrieve the following information:
✑ The current status of an order
✑ The previous status of an order.
✑ The date when the status changed.
The solution must minimize storage.
More than one answer choice may achieve the goal. Select the BEST answer.

Each order is tracked by using one of the following statuses:
✑ Fulfilled
✑ Shipped
✑ Ordered
✑ Received
You need to design the database to ensure that that you can retrieve the following information:
✑ The current status of an order
✑ The previous status of an order.
✑ The date when the status changed.
The solution must minimize storage.
More than one answer choice may achieve the goal. Select the BEST answer.
- ATo the Sales.Orders table, add three columns named Status, PreviousStatus and ChangeDate. Update rows as the order status changes.
- BCreate a new table named Sales.OrderStatus that contains three columns named OrderID, StatusDate, and Status. Insert new rows into the table as the order status changes.
- CImplement change data capture on the Sales.Orders table.
- DTo the Sales.Orders table, add three columns named FulfilledDate, ShippedDate, and ReceivedDate. Update the value of each column from null to the
Correct Answer:
B
B
send
light_mode
delete
Question #2
You create a stored procedure that retrieves all of the rows from a table named Table1.
You need to recommend a solution to ensure that all of the statements in the stored procedure can be executed if another transaction is modifying rows in Table1 simultaneously.
What should you recommend?
You need to recommend a solution to ensure that all of the statements in the stored procedure can be executed if another transaction is modifying rows in Table1 simultaneously.
What should you recommend?
- ASnapshot isolation
- BA database snapshot
- CFilegroups
- DIndexes
Correct Answer:
A
Once snapshot isolation is enabled, updated row versions for each transaction are maintained in tempdb. A unique transaction sequence number identifies each transaction, and these unique numbers are recorded for each row version. The transaction works with the most recent row versions having a sequence number before the sequence number of the transaction. Newer row versions created after the transaction has begun are ignored by the transaction.
Reference:
Transaction Isolation Levels
A
Once snapshot isolation is enabled, updated row versions for each transaction are maintained in tempdb. A unique transaction sequence number identifies each transaction, and these unique numbers are recorded for each row version. The transaction works with the most recent row versions having a sequence number before the sequence number of the transaction. Newer row versions created after the transaction has begun are ignored by the transaction.
Reference:
Transaction Isolation Levels
send
light_mode
delete
Question #3
You have a SQL Server instance on a server named Server1.
You need to recommend a solution to perform the following tasks every week:
✑ Rebuild the indexes by using a new fill factor.
✑ Run a custom T-SQL command.
✑ Back up the databases.
What should you recommend?
More than one answer choice may achieve the goal. Select the BEST answer.
You need to recommend a solution to perform the following tasks every week:
✑ Rebuild the indexes by using a new fill factor.
✑ Run a custom T-SQL command.
✑ Back up the databases.
What should you recommend?
More than one answer choice may achieve the goal. Select the BEST answer.
- AA trigger
- BAn alert
- CA maintenance plan
- DWindows PowerShell
- EA system policy
Correct Answer:
C
Maintenance plans create a workflow of the tasks required to make sure that your database is optimized, regularly backed up, and free of inconsistencies.
Reference:
Maintenance Plans
C
Maintenance plans create a workflow of the tasks required to make sure that your database is optimized, regularly backed up, and free of inconsistencies.
Reference:
Maintenance Plans
send
light_mode
delete
Question #4
HOTSPOT -
You use SQL Server 2014. You create a table within a database by using the following DDL:

The following table illustrates a representative sample of data:

The system is expected to handle 50 million orders a month over the next five years.
You have been instructed by your Team Lead to follow best practices for storage and performance in the utilization of SPARSE columns.
Which columns should you designate as SPARSE? To answer, mark each column as SPARSE or NOT SPARSE in the answer area.
Hot Area:

You use SQL Server 2014. You create a table within a database by using the following DDL:

The following table illustrates a representative sample of data:

The system is expected to handle 50 million orders a month over the next five years.
You have been instructed by your Team Lead to follow best practices for storage and performance in the utilization of SPARSE columns.
Which columns should you designate as SPARSE? To answer, mark each column as SPARSE or NOT SPARSE in the answer area.
Hot Area:

Correct Answer:
Note:
Sparse columns are ordinary columns that have an optimized storage for null values. Sparse columns reduce the space requirements for null values at the cost of more overhead to retrieve nonnull values. Consider using sparse columns when the space saved is at least 20 percent to 40 percent.
Reference:
Use Sparse Columns

Note:
Sparse columns are ordinary columns that have an optimized storage for null values. Sparse columns reduce the space requirements for null values at the cost of more overhead to retrieve nonnull values. Consider using sparse columns when the space saved is at least 20 percent to 40 percent.
Reference:
Use Sparse Columns
send
light_mode
delete
Question #5
DRAG DROP -
You plan to deploy a database to SQL Azure.
You are designing two stored procedures named USP_1 and USP_2 that have the following requirements:
✑ Prevent data read by USP_1 from being modified by other active processes.
✑ Allow USP_2 to perform dirty reads.
You need to recommend the isolation level for the stored procedures.
The solution must maximize concurrency.
Which isolation levels should you recommend?
To answer, drag the appropriate isolation level to the correct stored procedure in the answer area.
Select and Place:

You plan to deploy a database to SQL Azure.
You are designing two stored procedures named USP_1 and USP_2 that have the following requirements:
✑ Prevent data read by USP_1 from being modified by other active processes.
✑ Allow USP_2 to perform dirty reads.
You need to recommend the isolation level for the stored procedures.
The solution must maximize concurrency.
Which isolation levels should you recommend?
To answer, drag the appropriate isolation level to the correct stored procedure in the answer area.
Select and Place:

Correct Answer:
Note:
* SP1: repeatable read
a repeatable read scan retains locks on every row it touches until the end of the transaction. Even rows that do not qualify for the query result remain locked.
These locks ensure that the rows touched by the query cannot be updated or deleted by a concurrent session until the current transaction completes (whether it is committed or rolled back).
* SP2: read uncommitted permits repeatable reads
Reference:
Transaction Isolation Levels

Note:
* SP1: repeatable read
a repeatable read scan retains locks on every row it touches until the end of the transaction. Even rows that do not qualify for the query result remain locked.
These locks ensure that the rows touched by the query cannot be updated or deleted by a concurrent session until the current transaction completes (whether it is committed or rolled back).
* SP2: read uncommitted permits repeatable reads
Reference:
Transaction Isolation Levels
send
light_mode
delete
All Pages