Microsoft 70-465 - Designing Database Solutions for Microsoft SQL Server Exam

Page:    1 / 23   
Total 111 questions

You need to recommend a solution for Application1 that meets the security requirements.
What should you include in the recommendation?

  • A. Signed stored procedures
  • B. Certificate Authentication
  • C. Encrypted columns
  • D. Secure Socket Layer (SSL)


Answer : A

Explanation:
* Scenario:
/ Data from Database2 will be accessed periodically by an external application named

Application1 -
/ Application developers must be denied direct access to the database tables. Applications must be denied direct access to the tables.
Reference:
Tutorial: Signing Stored Procedures with a Certificate

You need to recommend a solution to allow application users to perform tables. The solution must meet the business requirements.
What should you recommend?

  • A. Create a Policy-Based Management Policy.
  • B. Create a user-defined database role and add users to the role.
  • C. Create stored procedures that use EXECUTE AS clauses.
  • D. Create functions that use EXECUTE AS clauses.


Answer : D

Explanation:
* c Clause (Transact-SQL)
In SQL Server you can define the execution context of the following user-defined modules: functions (except inline table-valued functions), procedures, queues, and triggers.
Reference: Using EXECUTE AS in Modules

You need to recommend a database reporting solution that meets the business requirements.
What should you include in the recommendation?

  • A. Data collection
  • B. Performance Monitor
  • C. A maintenance plan
  • D. A dynamic management view


Answer : A

Explanation:
* Scenario: System administrators must be able to run real-time reports on disk usage.
* The data collector provides an historical report for each of the System Data collection sets. Each of the following reports use data that is stored in the management data warehouse:

Disk Usage Summary -

Query Statistics History -

Server Activity History -
You can use these reports to obtain information for monitoring system capacity and troubleshooting system performance.
Reference:
System Data Collection Set Reports

You need to recommend a solution for the deployment of SQL Server 2014. The solution must meet the business requirements.
What should you include in the recommendation?

  • A. Create a new instance of SQL Server 2014 on the server that hosts the SQL Server 2008 instance.
  • B. Upgrade the existing SQL Server 2008 instance to SQL Server 2014.
  • C. Deploy two servers that have SQL Server 2014 installed and implement Failover Clustering.
  • D. Deploy two servers that have SQL Server 2014 installed and implement database mirroring.


Answer : C

Explanation:
Scenario: The databases must be available if the SQL Server service fails.
Reference:

Failover Clustering Overview -
Windows Server Failover Clustering (WSFC) with SQL Server

You need to recommend a solution to improve the performance of usp.UpdateInventory.
The solution must minimize the amount of development effort.
What should you include in the recommendation?

  • A. A table variable
  • B. A common table expression
  • C. A subquery
  • D. A cursor


Answer : A

Explanation:
*Scenario: Database2 will contain a stored procedure named usp_UpdateInventory.
Usp_UpdateInventory will manipulate a table that contains a self-join that has an unlimited number of hierarchies.
* A table variable can be very useful to store temporary data and return the data in the table format. table
* Example: The following example uses a self-join to find the products that are supplied by more than one vendor.
Because this query involves a join of the ProductVendor table with itself, the
ProductVendor table appears in two roles. To distinguish these roles, you must give the
ProductVendor table two different aliases (pv1 and pv2) in the FROM clause. These aliases are used to qualify the column names in the rest of the query. This is an example of the self-join Transact-SQL statement:
USE AdventureWorks2008R2;

GO -
SELECT DISTINCT pv1.ProductID, pv1.VendorID
FROM Purchasing.ProductVendor pv1
INNER JOIN Purchasing.ProductVendor pv2
ON pv1.ProductID = pv2.ProductID
AND pv1.VendorID <> pv2.VendorID

ORDER BY pv1.ProductID -
Incorrect:
Not B: Using a CTE offers the advantages of improved readability and ease in maintenance of complex queries. The query can be divided into separate, simple, logical building blocks.
These simple blocks can then be used to build more complex, interim CTEs until the final result set is generated.

Page:    1 / 23   
Total 111 questions