70-465 | how many questions of 70-465 exam?


Q21. DRAG DROP 

You plan to deploy SQL Server 2012. 

You must create two tables named Table 1 and Table 2 that will have the following specifications: -Table1 will contain a date column named Column1 that will contain a null value approximately 80 percent of the time. -Table2 will contain a column named Column2 that is the product of two other columns in Table2. Both Table1 and Table2 will contain more than 1 million rows. 

You need to recommend which options must be defined for the columns. The solution must minimize the storage requirements for the tables. 

Which options should you recommend? 

To answer, drag the appropriate options to the correct column in the answer area. 

Answer: 

Q22. 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 subquery 

B. a cursor 

C. a common table expression 

D. a table variable 

Answer: C

Q23. DRAG DROP 

You are designing a database for a university. 

The database will contain two tables named Classes and Enrollment that have the following specifications: 

-Classes will store brochures in the XPS format. The brochures must be structured in folders and must be accessible by using UNC paths. 

-Enrollment will store information about students and their classes. Performance must be enhanced for queries of the current enrollments. 

You need to identify which SQL Server technology meets the specifications of each table. 

Which technologies should you identify? 

To answer, drag the appropriate technology to the correct table in the answer area. 

Answer:

Q24. 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 cursor 

B. a subquery 

C. a table variable 

D. a common table expression 

Answer: C

Q25. You need to recommend a solution for the error handling of sp3. The solution must minimize the amount of custom code required. 

What should you recommend? 

A. Use the @@ERROR variable in the nested stored procedures. 

B. Use a TRY CATCH block in the called stored procedures. 

C. Use the @@ERROR variable in the called stored procedures. 

D. Use the RAISERROR command in the nested stored procedures. 

Answer: B

Q26. You need to recommend a solution that meets the data recovery requirement. 

What should you include in the recommendation? 

A. A database snapshot 

B. A transaction log backup 

C. Snapshot isolation 

D. A differential backup 

Answer: A

Topic 3, A. Datum Case A 

General Overview 

A. Datum Corporation has offices in Miami and Montreal. 

The network contains a single Active Directory forest named adatum.com. The offices connect to each other by using a WAN link that has a 5-ms latency. 

A. Datum standardizes its database platform by using SQL Server 2012 Standard edition. 

Databases 

Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev. 

Servers and databases are managed by a team of database administrators. Currently, all of the database administrators have the same level of permissions on all of the servers and all of the databases. 

The Customers database contains two tables named Customers and Classifications. The following graphic shows the relevant portions of the tables: 

The following table shows the current data in the Classifications table: 

The Inventory database is used mainly for reports. The database is recreated every day. A full backup of the database currently takes three hours to complete. 

Stored Procedures 

A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from five different tables from the Sales and Customers databases in a table named Table1. 

After Table1 is created, the reporting process reads data from a table in the Products database and searches for information in Table1 based on input from the Products table. After the process is complete, Table1 is deleted. 

A stored procedure named sp2 is used to generate a product list. Sp2 takes several minutes to run due to locks on the tables the procedure accesses. 

A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored procedure continues to execute. 

A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an EXECUTE AS clause. 

A stored procedure named sp5 changes data in multiple databases. Security checks are performed each time sp5 accesses a database. 

You suspect that the security checks are slowing down the performance of sp5. 

All stored procedures accessed by user applications call nested stored procedures. The nested stored procedures are never called directly. 

Design Requirements 

Data Recovery 

You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery Point Objective (RPO) of one hour. 

You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point Objective (RPO) of one day. 

Classification Changes 

You plan to change the way customers are classified. The new classifications will have four levels based on the number of orders. Classifications may be removed or added in the future. 

Management requests that historical data be maintained for the previous classifications. 

Security 

A group of junior database administrators must be able to view the server state of the SQL Server instance that hosts the Sales database. The junior database administrators will not have any other administrative rights. 

Q27. You are creating a database that will store usernames and passwords for an application. 

You need to recommend a solution to store the passwords in the database. 

What should you recommend? 

More than one answer choice may achieve the goal. Select the BEST answer. 

A. One-way encryption 

B. Transparent Data Encryption (TDE) 

C. Encrypting File System (EFS) 

D. Reversible encryption 

Answer: A

Q28. You need to recommend a solution for the planned changes to the customer classifications. 

What should you recommend? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Add a row to the Customers table each time a classification changes. 

B. Add a table to track any changes made to the classification of each customer. 

C. Add columns for each classification to the Customers table. 

D. Add a column to the Classifications table to track the status of each classification. 

E. Implement change data capture. 

Answer: AC

Topic 6, Mix Questions 

36. DRAG DROP 

You need to recommend a backup process for an Online Transaction Processing (OLTP) database. 

The process must meet the following requirements: 

-Ensure that if a hardware failure occurs, you can bring the database online with a minimum amount of data loss. -Minimize the amount of administrative effort required to restore any lost data. 

What should you include in the recommendation? 

To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. 

Answer: 

Q29. You need to recommend a solution to allow application users to perform UPDATE operations on the database tables. 

The solution must meet the business requirements. 

What should you recommend? 

A. Create stored procedures that use EXECUTE AS clauses. 

B. Create a Policy-Based Management Policy. 

C. Create functions that use EXECUTE AS clauses. 

D. Create a user-defined database role and add users to the role. 

Answer: D

Topic 5, A. Datum Case B 

Overview 

General Overview 

A. Datum Corporation has offices in Miami and Montreal. 

The network contains a single Active Directory forest named adatum.com. The offices connect to each other by using a WAN link that has a 5-ms latency. 

A. Datum standardizes its database platform by using SQL Server 2012 Enterprise edition. 

Databases 

Each office contains databases named Sales, Inventory, Customers, Products, Personnel, and Dev. 

Servers and databases are managed by a team of database administrators. Currently, all of the database administrators have the same level of permissions on all of the servers and all of the databases. 

The Customers database contains two tables named Customers and Classifications. The following graphic shows the relevant portions of the tables: 

The following table shows the current data in the Classifications table: 

The Inventory database is updated frequently. The database is often used for reporting. A full backup of the database currently takes three hours to complete. 

Stored Procedures 

A stored procedure named sp1 generates millions of rows of data for multiple reports. Sp1 combines data from five different tables from the Sales and Customers databases in a table named Table1. 

After Table1 is created, the reporting process reads data from Table1 sequentially several times. After the process is complete, Table1 is deleted. 

A stored procedure named sp2 is used to generate a product list. The product list contains the names of products grouped by category. Sp2 takes several minutes to run due to locks on the tables the procedure accesses. The locks are caused by sp1 and sp3. A stored procedure named sp3 is used to update prices. Sp3 is composed of several UPDATE statements called in sequence from within a transaction. Currently, if one of the UPDATE statements fails, the stored procedure fails. 

A stored procedure named sp4 calls stored procedures in the Sales, Customers, and Inventory databases. The nested stored procedures read tables from the Sales, Customers, and Inventory databases. Sp4 uses an EXECUTE AS clause. All nested stored procedures handle errors by using structured exception handling. 

A stored procedure named sp5 calls several stored procedures in the same database. Security checks are performed each time sp5 calls a stored procedure. 

You suspect that the security checks are slowing down the performance of sp5. 

All stored procedures accessed by user applications call nested stored procedures. The nested stored procedures are never called directly. 

Design Requirements 

Data Recovery 

You must be able to recover data from the Inventory database if a storage failure occurs. You have a Recovery Time Objective (RTO) of 5 minutes. 

You must be able to recover data from the Dev database if data is lost accidentally. You have a Recovery Point Objective (RPO) of one day. 

Classification Changes 

You plan to change the way customers are classified. The new classifications will have four levels based on the number of orders. Classifications may be removed or added in the future. 

Management requests that historical data be maintained for the previous classifications. Security A group of junior database administrators must be able to manage security for the Sales database. 

The junior database administrators will not have any other administrative rights. 

A. Datum wants to track which users run each stored procedure. 

Storage 

A. Datum has limited storage. Whenever possible, all storage space should be minimized for all databases and all backups. 

Error Handling 

There is currently no error handling code in any stored procedure. You plan to log errors in called stored procedures and nested stored procedures. Nested stored procedures are never called directly. 

Q30. DRAG DROP 

You have two servers named SQL1 and SQL2 that have SQL Server 2008 installed. SQL1 contains a database that is mirrored asynchronously to SQL2. The database contents are updated once a month. 

You need to upgrade the database to SQL Server 2012. The solution must minimize downtime. 

Which upgrade steps should you recommend? 

To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. 

Answer: