The safer , easier way to help you pass any IT exams.
Exam : 70-465
Title
Designing Database :
Solutions for Microsoft SQL Server 2012
Version : V8.02
1 / 34
The safer , easier way to help you pass any IT exams.
1.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 dat
A. 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:
2.DRAG DROP You plan to install two SQL Server 2012 environments named Environment1 and Environment2. Your company identifies the following availability requirements for each environment:Environment1 must have mirroring with manual failover implemented. Environment2 must have AlwaysOn with automatic failover implemented. You need to identify the minimum number of SQL Server 2012 servers that must be deployed to each environment to ensure that all data remains available if a physical server fails. How many servers should you identify? To answer, drag the appropriate number to the correct environment in the answer area.
2 / 34
The safer , easier way to help you pass any IT exams.
Answer:
3.DRAG DROP You need to design a stored procedure to update rows. The stored procedure must meet
the following requirements:If more than one row is updated, an error must be raised to the application and the update must be discarded. The stored procedure must be designed to maximize concurrency. What should you include in the design? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Answer:
4.You are designing a monitoring application for a new SQL Server 2012 instance. You need to recommend a solution to generate a report that displays the 10 most frequent wait types that occur for the instance. What should you include in the recommendation? More than one answer choice may achieve the goal. Select the BEST answer.
A. The sys.dm_os_wait_stats dynamic management view B. The DBCC SQLPERF(WAITSTATS) command
3 / 34
The safer , easier way to help you pass any IT exams.
C. The SQL Server error log
D. SQL Server Profiler Answer: A
5.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:
6.DRAG DROP You plan to deploy SQL Server 2012. Your company identifies the following monitoring requirements for the database: An e-mail message must be sent when a user logs in. An e-mail message must be sent if CPU utilization exceeds 90 percent. You need to identify which feature meets each monitoring requirement. Which features should you identify? To answer, drag the appropriate feature to the correct monitoring requirement in the answer area.
4 / 34
The safer , easier way to help you pass any IT exams.
Answer:
7.You deploy a database by using SQL Server 2012. The database contains a table named Table1. You
need to recommend a solution that meets the following requirements:Stores the most recent data from Table1 by using the fastest storage solution possible. Stores the historical data from Table1 by using a slower storage solution. What should you recommend? A. partitioned views B. a database snapshot C. change data capture D. table partitioning Answer: D
8.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
5 / 34
The safer , easier way to help you pass any IT exams.
9.DRAG DROP You have a SQL Azure database named Database1. You need to design the schema for a
table named table1. Table1 will have less than one million rows. Table1 will contain the following information for each row:
The solution must minimize the amount of space used to store each row. Which data types should you recommend for each column? To answer, drag the appropriate data type to the correct column in the answer area.
Answer:
6 / 34
The safer , easier way to help you pass any IT exams.
10.DRAG DROP You need to recommend the actions that are required to partition a table. In which order
should the four actions be performed? To answer, move the actions from the list of actions to the answer area and arrange them in the correct order.
Answer:
11.You have a SQL Server 2012 environment that contains 20 servers. The corporate security policy states that all SQL Server 2012 instances must meet specific security standards. You need to recommend a management strategy for the SQL Server 2012 servers. What should you include in the
7 / 34
The safer , easier way to help you pass any IT exams.
recommendation?More than one answer choice may achieve the goal. Select the BEST answer.
A. Multi server jobs B. Maintenance plans
C. Policy-Based Management D. Common criteria compliance Answer: C
12.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:
13.You deploy a database by using SQL Server 2012. The database contains a table named Table 1. You need to recommend a solution to track all of the deletions executed on Table1. The solution must minimize the amount of custom code required. What should you recommend? A. Change data capture B. A trigger
8 / 34
The safer , easier way to help you pass any IT exams.
C. Statistics
D. Master Data Services Answer: A
14.You have four databases that are accessed by using an Online Transaction Processing (OLTP) application. The databases are stored on a server named SQL1 that has SQL Server 2012 installed. You plan to deploy an additional server that has SQL Server 2012 installed. You need to design a high-availability solution for the databases that meets the following requirements:If SQL1 fails, the databases must be available. Users must be able to run reports against a secondary copy of the databases. What should you include in the design? More than one answer choice may achieve the goal. Select the BEST answer. A. Database mirroring B. Log shipping
C. Failover Clustering
D. AlwaysOn availability groups Answer: D
15.DRAG DROP You have a server named SQL1 that has SQL Server 2012 installed. SQL1 hosts a database named Database1. Database1 contains a table named Table1. Table1 is partitioned across five filegroups based on the Date field. The schema of Table1 is configured as shown in the following table.
Table1 contains the indexes shown in the following table.
9 / 34
The safer , easier way to help you pass any IT exams.
You need to recommend an index strategy to maximize performance for the queries that consume the
indexes available to Table1. Which type of index storage should you recommend? To answer, drag the appropriate index storage type to the correct index in the answer area.
Answer:
16.DRAG DROP You plan to deploy SQL Server 2012. Your company identifies the following monitoring requirements: Tempdb must be monitored for insufficient free space. Deadlocks must be analyzed by using Deadlock graphs. You need to identify which feature meets each monitoring requirement. Which features should you identify? To answer, drag the appropriate feature to the correct monitoring
10 / 34
The safer , easier way to help you pass any IT exams.
requirement in the answer area.
Answer:
17.You are troubleshooting an application that runs a query. The application frequently causes deadlocks.
You need to identify which transaction causes the deadlock. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
A. Query the sys.dm_exec_requests dynamic management view.
B. Create a trace in SQL Server Profiler that contains the Deadlock graph event. C. Query the sys.dm_exec_sessions dynamic management view.
D. Create an extended events session to capture deadlock information. Answer: D
18.You plan to create a database. The database will be used by a Microsoft .NET application for a special event that will last for two days. During the event, data must be highly available. After the event, the database will be deleted. You need to recommend a solution to implement the database while minimizing costs. The solution must not affect any existing applications. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.
11 / 34
The safer , easier way to help you pass any IT exams.
A. SQL Server 2012 Standard
B. SQL Azure
C. SQL Server 2012 Express with Advanced Services D. SQL Server 2012 Enterprise Answer: B
19.DRAG DROP You plan to deploy SQL Server 2012. You are designing two stored procedures named SP1 and SP2 that have the following requirements: Prevent data read by SP1 from being modified by other active processes. Prevent SP2 from performing dirty reads. You need to recommend the isolation level for each stored procedure. 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.
Answer:
20.You are designing a database named DB1. Changes will be deployed to DB1 every Wednesday night. You need to recommend a strategy to deploy the changes to DB1. The strategy must meet the following requirements:The strategy must not disrupt backup operations. DB1 must be unavailable to users while the changes are deployed. You must be able to undo quickly the entire operation. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer.
12 / 34
The safer , easier way to help you pass any IT exams.
A. Perform a copy-only database backup before the changes are deployed. If the deployment fails,
restore the database to another server and recover the original objects from the restored database.
B. Create a database snapshot. If the deployment fails, recover the objects from the database snapshot. C. Create a database snapshot. If the deployment fails, revert the database to the database snapshot. D. Perform a full database backup before the changes are deployed. If the deployment fails, restore the database to another server and recover the original objects from the restored database. Answer: C
21.DRAG DROP You are designing an authentication strategy for a new server that has SQL Server 2012 installed. The strategy must meet the following business requirements:The account used to generate reports must be allowed to make a connection during certain hours only. Failed authentication requests must be logged. You need to recommend a technology that meets each business requirement. The solution must minimize the amount of events that are logged. Which technologies should you recommend? To answer, drag the appropriate solution to the correct business requirement in the answer area.
Answer:
22.You are designing a SQL Server database for an order fulfillment system. You create a table named Sales.Orders by using the following script:
13 / 34
The safer , easier way to help you pass any IT exams.
Each order is tracked by using one of the following statuses:Fulfilled Shipped Ordered Received You need to design the database to ensure that you can retrieve the status of an order on a given date. The solution must ensure that new statuses can be added in the future. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
A. To the Sales.Orders table, add a column named Status that will store the order status. Update the Status column as the order status changes.
B. Create 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. C. Implement change data capture on the Sales.Orders table.
D. To the Sales.Orders table, add three columns named FulfilledDate, ShippedDate, and ReceivedDate. Update the value of each column from null to the appropriate date as the order status changes. Answer: B
23.DRAG DROP You plan to deploy SQL Server 2012. You identify the following security requirements for the deployment:Users must be prevented from intercepting and reading the T-SQL statements sent from the clients to the database engine. All database files and log files must be encrypted if the files are moved to another disk on another server. You need to identify which feature meets each security requirement. The solution must minimize processor overhead. Which features should you identify? To answer, drag the appropriate feature to the correct requirement in the answer area.
Answer:
14 / 34
The safer , easier way to help you pass any IT exams.
24.You have two SQL Server 2012 instances named SQLDev and SQLProd. You plan to create a new database on SQLProd that will use SQL Server Authentication. You need to ensure that when the new database is copied from SQLProd to SQLDev, users can connect to the database on SQLDev if they do not have a login on the SQLDev instance. What should you use? More than one answer choice may achieve the goal. Select the BEST answer.
A. SQL Server Integration Services (SSIS) scripts B. Extended Events C. Triggers
D. SQL Server Analysis Services (SSAS) scripts E. Contained database Answer: E
25.Your company has offices in Seattle and Montreal. The network contains two servers named Server1 and Server2 that have SQL Server 2012 installed. The servers are located in separate building within your campus. The latency of the WAN link between the buildings is less than 10 ms. You plan to implement an AlwaysOn availability group on both servers. You need to recommend a failover type for the availability group. What should you recommend? A. Asynchronous automatic failover B. Synchronous manual failover C. Asynchronous manual failover D. Synchronous automatic failover Answer: D
26.You have a database named DB1. You plan to create a stored procedure that will insert rows into three different tables. Each insert must use the same identifying value for each table, but the value must increase from one invocation of the stored procedure to the next. Occasionally, the identifying value must be reset to its initial value. You need to design a mechanism to hold the identifying values for the stored procedure to use. What should you do? More than one answer choice may achieve the goal. Select the BEST answer.
A. Create a sequence object that holds the next value in the sequence. Retrieve the next value by using
15 / 34
The safer , easier way to help you pass any IT exams.
the stored procedure.
B. Increment the sequence object to the next value by using an ALTER SEQUENCE statement. Reset the value as needed by using a different ALTER SEQUENCE statement.
C. Create an identity column in each of the three tables. Use the same seed and the same increment for each table. Insert new rows into the tables by using the stored procedure. Use the DBCC CHECKIDENT command to reset the columns as needed.
D. Create a fourth table that holds the next value in the sequence. At the end each transaction, update the value by using the stored procedure. Reset the value as needed by using an UPDATE statement.
E. Create a sequence object that holds the next value in the sequence. Retrieve the next value by using the stored procedure. Reset the value by using an ALTER SEQUENCE statement as needed. Answer: D
27.You plan to create a database. The database will be used by a Microsoft .NET application for a special event that will last for two days. During the event, data must be highly available. After the event, the database will be deleted. You need to recommend a solution to implement the database while minimizing costs. The solution must not affect any existing applications. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer. A. Max Degree of Parallelism B. Resource Governor
C. Windows System Resource Manager (WSRM) D. Processor affinity Answer: D
28.You are building a stored procedure for a SQL Azure database. The procedure will add multiple rows to a table. You need to design the stored procedure to meet the following requirements: If any of the new rows violates a table constraint, then no further additions must be attempted and all changes made by the stored procedure must be discarded.If any errors occur, a row must be added to an audit table, and the original error must be returned to the caller of the stored procedure. What should you include in the design?
A. An implicit transaction that has XACT_ABORT enabled B. An explicit transaction that has XACT_ABORT disabled C. An implicit transaction that has error handling enabled D. An explicit transaction that has error handling enabled Answer: D
29.You have a SQL Server 2012 database named DB1. You plan to import a large number of records from a SQL Azure database to DB1. You need to recommend a solution to minimize the amount of space used in the transaction log during the import operation. What should you include in the recommendation? A. a new log file B. a new filegroup
C. the full recovery model D. a new partitioned table
E. the bulk-logged recovery model Answer: B
16 / 34
The safer , easier way to help you pass any IT exams.
30.You have two SQL Server instances named SQLDev and SQLProd that have access to various storage media. You plan to synchronize SQLDev and SQLProd. You need to recommend a solution that meets the following requirements:The database schemas must be synchronized from SQLDev to SQLProd. The database on SQLDev must be deployed to SQLProd by using a package. The package must support being deployed to SQL Azure. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer. A. A database snapshot B. A data-tier application C. Change data capture
D. SQL Server Integration Services (SSIS) Answer: B
31.Your company has offices in Seattle and Montreal. The network contains two servers named Server1 and Server2 that have SQL Server 2012 installed. Server1 is located in the Seattle office. Server2 is located in the Montreal office. The latency of the WAN link between the Montreal office and the Seattle office is more than 200 ms. You plan to implement an AlwaysOn availability group on both servers. You need to recommend a failover type for the availability group. What should you recommend? A. Synchronous manual failover B. Synchronous automatic failover C. Asynchronous automatic failover D. Asynchronous manual failover Answer: D
32.DRAG DROP You plan to deploy a database to SQL Azure. You are designing two stored procedures named SP1 and SP2 that have the following requirements:Prevent data read by 5P1 from being modified by other active processes. Allow SP2 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.
Answer:
17 / 34
The safer , easier way to help you pass any IT exams.
33.You have a server that has SQL Server 2012 installed. The server contains 100 user databases. You need to recommend a backup solution for the user databases. The solution must meet the following requirements:Perform a transaction log backup every hour. Perform a full backup of each database every week. Perform a differential backup of each database every day. Ensure that new user databases are added automatically to the backup solution. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer. A. A maintenance plan B. SQL Server Agent jobs C. Policy-Based Management
D. A Data Definition Language (DDL) trigger Answer: A
34.You have a SQL Server 2012 instance named SQL1. SQL1 creates error events in the Windows Application event log. You need to recommend a solution that will run an application when SQL1 logs a specific error in the Application log. Which SQL elements should you include in the recommendation? (Each correct answer presents part of the solution. Choose all that apply.) A. A policy B. A trigger
C. A maintenance plan D. A job E. An alert Answer: C, E
35.DRAG DROP You plan to deploy three highly available SQL Server environments that will use SQL Server 2012. You identify the following specifications for each environment as shown following table.
18 / 34
The safer , easier way to help you pass any IT exams.
You need to recommend which high-availability feature is required for each environment. Which features
should you identify? To answer, drag the appropriate feature to the correct requirement in the answer area.
Answer:
36.DRAG DROP You plan to deploy a database by using SQL Server 2012. Your company identifies the following requirements for the database: The name of all stored procedures must start with \"usp_\"always. All distribution statistics must be updated daily. You need to identify which feature must be used to meet
19 / 34
The safer , easier way to help you pass any IT exams.
each database requirement. Which features should you identify? To answer, drag the appropriate feature
to the correct database requirement in the answer area.
Answer:
37.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.
20 / 34
The safer , easier way to help you pass any IT exams.
Answer:
38.You manage a SQL Server 2012 instance that contains a database named DB1. Users report that some queries to DB1 take longer than expected. Although most queries run in less than one second, some queries take up to 20 seconds to run. You need to view all of the performance statistics for each database file. Which method should you use?
A. Examine the Data File I/O pane in Activity Monitor.
B. Query the sys.dm_io_virtual_file_stats dynamic management function. C. Query the sys.dm_os_performance_counters dynamic management view. D. Query the sys.dm_os_tasks dynamic management view. Answer: B
39.You are creating a database that will store usernames and credit card numbers for an application. You need to recommend a solution to store and resuse the credit card numbers in the database. What should you recommend? More than one answer choice may achieve the goal. Select the BEST answer. A. Data encryption
B. Transparent Data Encryption (TDE) C. Encrypting File System (EFS) D. Data hashing Answer: A
Case Study: 1
Litware, Inc Case A Overview
You are a database administrator for a company named Litware, Inc. Litware is a book publishing house. Litware has a main office and a branch office. You are designing the database infrastructure to support a new web-based application that is being developed. The web application will be accessed at www.litwareinc.com. Both internal employees and external partners will use the application. You have an existing desktop application that uses a SQL Server 2005 database named App1_DB. App1_DB will remain in production. Requirements Planned Changes
You plan to deploy a SQL Server 2012 instance that will contain two databases named Database1 and Database2. All database files will be stored in a highly available SAN. Database1 will contain two tables named Orders and OrderDetails. Database1 will also contain a stored procedure named
21 / 34
The safer , easier way to help you pass any IT exams.
usp_UpdateOrderDetails. The stored procedure is used to update order information. The stored procedure queries the Orders table twice each time the procedure executes. The rows returned from the first query must be returned on the second query unchanged along with any rows added to the table between the two read operations. Database1 will contain several queries that access data in the Database2 tables. Database2 will contain a table named Inventory. Inventory will contain over 100 GB of data. The Inventory table will have two indexes: a clustered index on the primary key and a nonclustered index. The column that is used as the primary key will use the identity property. Database2 wilt contains a stored procedure named usp_UpdateInventory. usp_UpdateInventory will manipulate a table that contains a self-join that has an unlimited number of hierarchies. All data in Database2 is recreated each day ad does not change until the next data creation process. Data from Database2 will be accessed periodically by an external application named Application1. The data from Database2 will be sent to a database named Appl_Dbl as soon as changes occur to the data in Database2. Litware plans to use offsite storage for all SQL Server 2012 backups. Business Requirements
You have the following requirements:Costs for new licenses must be minimized. Private information that is accessed by Application must be stored in a secure format. Development effort must be minimized whenever possible. The storage requirements for databases must be minimized. System administrators must be able to run real-time reports on disk usage.
The databases must be available if the SQL Server service fails. Database administrators must receive a detailed report that contains allocation errors and data corruption. Application developers must be denied direct access to the database tables. Applications must be denied direct access to the tables. You must encrypt the backup files to meet regulatory compliance requirements. The encryption strategy must minimize changes to the databases and to the applications.
1.You need to recommend an isolation level for usp_UpdateOrderDetails. Which isolation level should recommend?
A. Repeatable read B. Read uncommitted C. Serializable
D. Read committed Answer: A
2.You need to recommend a solution for the deployment of SQL Server 2012. The solution must meet the business requirements. What should you include in the recommendation?
A. Deploy two servers that have SQL Server 2012 installed and implement database mirroring.
B. Create a new instance of SQL Server 2012 on the server that hosts the SQL Server 2005 instance. C. Upgrade the existing SQL Server 2005 instance to SQL Server 2012.
D. Deploy two servers that have SQL Server 2012 installed and implement Failover Clustering. Answer: C
3.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
22 / 34
The safer , easier way to help you pass any IT exams.
C. a common table expression D. a table variable Answer: C
4.You need to recommend a disk monitoring solution that meets the business requirements. What should you include in the recommendation? A. a SQL Server Agent alert B. a dynamic management view C. a maintenance plan D. an audit Answer: A
5.You need to recommend a solution for Application1 that meets the security requirements. What should you include in the recommendation? A. Encrypted columns
B. Certificate Authentication C. Secure Socket Layer (SSL) D. Signed stored procedures Answer: B
6.You need to recommend a feature to support your backup solution. What should you include in the recommendation?
A. Column-level encryption
B. A Secure Sockets Layer (SSL) C. An NTFS file permission
D. Transparent Data Encryption (TDE) Answer: D
7.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 user-defined database role and add users to the role. C. Create functions that use EXECUTE AS clauses. D. Create a Policy-Based Management Policy. Answer: A
Case Study: 2 Contoso, Ltd Overview
Application Overview
Contoso, Ltd., is the developer of an enterprise resource planning (ERP) application. Contoso is designing a new version of the ERP application. The previous version of the ERP application used SQL Server 2008 R2. The new version will use SQL Server 2012. The ERP application relies on an import process to load supplier data. The import process updates thousands of rows simultaneously, requires
23 / 34
The safer , easier way to help you pass any IT exams.
exclusive access to the database, and runs daily. You receive several support calls reporting unexpected behavior in the ERP application. After analyzing the calls, you conclude that users made changes directly to the tables in the database. Tables
The current database schema contains a table named OrderDetails. The OrderDetails table contains information about the items sold for each purchase order. OrderDetails stores the product ID, quantities, and discounts applied to each product in a purchase order. The product price is stored in a table named Products.
The Products table was defined by using the SQL_Latin1_General_CP1_CI_AS collation. A column named ProductName was created by using the varchar data type. The database contains a table named Orders. Orders contains all of the purchase orders from the last 12 months. Purchase orders that are older than 12 months are stored in a table named OrdersOld. The previous version of the ERP application relied on table-level security. Stored Procedures
The current version of the database contains stored procedures that change two tables. The following shows the relevant portions of the two stored procedures:
Customer Problems Installation Issues
The current version of the ERP application requires that several SQL Server logins be set up to function correctly. Most customers set up the ERP application in multiple locations and must create logins multiple times.
Index Fragmentation
Issues Customers discover that clustered indexes often are fragmented. To resolve this issue, the customers defragment the indexes more frequently. All of the tables affected by fragmentation have the following columns that are used as the clustered index key:
24 / 34
The safer , easier way to help you pass any IT exams.
Backup Issues Customers who have large amounts of historical purchase order data report that backup time is unacceptable.
Search Issues Users report that when they search product names, the search results exclude product names that contain accents, unless the search string includes the accent. Missing Data Issues Customers report that when they make a price change in the Products table, they cannot retrieve the price that the item was sold for in previous orders. Query Performance Issues Customers report that query performance degrades very quickly. Additionally, the customers report that users cannot run queries when SQL Server runs maintenance tasks. Import Issues During the monthly import process, database administrators receive many supports call from users who report that they cannot access the supplier dat A. The database administrators want to reduce the amount of time required to import the dat
A. Design Requirements File Storage Requirements The ERP database stores scanned documents that are larger than 2 M
B. These files must only be accessed through the ERP application. File access must have the best possible read and write performance. Data Recovery Requirements If the import process fails, the database must be returned to its prior state immediately. Security Requirements You must provide users with the ability to execute functions within the ERP application, without having direct access to the underlying tables. Concurrency Requirements You must reduce the likelihood of deadlocks occurring when Sales.Prod and Sales.Proc2 execute.
1.You need to recommend a solution that addresses the index fragmentation and index width issue. What should you include in the recommendation? (Each correct answer presents part of the solution. Choose all that apply.)
A. Change the data type of the modifiedBy column to tinyint.
B. Change the data type of the lastModified column to smalldatetime. C. Remove the id column from the clustered index.
D. Remove the modifiedBy column from the clustered index. E. Change the data type of the id column to bigint.
F. Remove the lastModified column from the clustered index. Answer: A, B, F
2.You need to recommend changes to the ERP application to resolve the search issue. The solution must minimize the impact on other queries generated from the ERP application. What should you recommend changing?
A. the index on the ProductName column B. the data type of the ProductName column C. the collation of the ProductName column
25 / 34
The safer , easier way to help you pass any IT exams.
D. the collation of the Products table Answer: C
3.You need to recommend a solution that addresses the concurrency requirement. What should you recommend?
A. Call the stored procedures in a Distributed Transaction Coordinator (DTC) transaction.
B. Modify the stored procedures to update tables in the same order for all of the stored procedures. C. Make calls to Sales.Proc1 and Sales.Proc2 synchronously.
D. Break each stored procedure into two separate procedures, one that changes Sales.Table1 and one that changes Sales.Table2. Answer: B
4.You need to recommend a solution that addresses the backup issue. The solution must minimize the amount of development effort. What should you include in the recommendation? A. Filegroups
B. Table partitioning C. Indexed views D. Indexes Answer: A
5.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
Case Study: 3 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:
26 / 34
The safer , easier way to help you pass any IT exams.
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
27 / 34
The safer , easier way to help you pass any IT exams.
administrative rights.
1.You need to recommend a disaster recovery solution for the Dev database. What should you include in the recommendation?
A. The simple recovery model and full backups
B. The full recovery model, full backups, and differential backups C. The full recovery model, full backups, and transaction log backups D. The bulk-logged recovery mode and full backups Answer: D
2.You need to recommend a disaster recovery strategy for the Inventory database. What should you include in the recommendation? A. SQL Server Failover Clustering B. AlwaysOn availability groups C. Peer-to-peer replication D. Log shipping Answer: D
3.You need to recommend a solution to minimize the amount of time it takes to execute sp1. With what should you recommend replacing Table1? A. a temporary table B. a view
C. a table variable D. a function Answer: B
4.You need to recommend a solution to minimize the amount of time it takes to execute sp5. What should you include in the recommendation? A. Use the EXECUTE AS clause in sp5. B. Enable cross-database chaining. C. Use a server role to group all logins. D. Copy sp5 to each database. Answer: B
5.You need to recommend a change to sp3 to ensure that the procedure completes only if all of the UPDATE statements complete. Which change should you recommend? A. Set the XACT_ABORT option to on.
B. Set the IMPLICIT_TRANSACTIONS option to off. C. Set the IMPLICIT_TRANSACTIONS option to on. D. Set the XACT_ABORT option to off Answer: C
6.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?
28 / 34
The safer , easier way to help you pass any IT exams.
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
7.You need to recommend a solution to meet the security requirements of the junior database administrators. What should you include in the recommendation? A. a database role B. a server role C. a shared login D. a credential Answer: B
8.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. Implement change data capture.
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 row to the Customers table each time a classification changes.
E. Add a column to the Classifications table to track the status of each classification. Answer: A, C
Case Study: 4
Litware, Inc Case B Overview
You are a database administrator for a company named Litware, Inc. Litware is a book publishing house. Litware has a main office and a branch office. You are designing the database infrastructure to support a new web-based application that is being developed. The web application will be accessed at www.litwareinc.com. Both internal employees and external partners will use the application. You have an existing desktop application that uses a SQL Server 2005 database named App1_D
B. App1_Db will remain in production. Requirements Planned Changes You plan to deploy a SQL Server 2012 instance that will contain two databases named Databasel and Database2. Database1 will contain two tables named Orders and OrderDetails. Databasel will also contain a stored procedure named usp_UpdateOrderDetails. The stored procedure is used to update order information. The stored procedure queries the Orders table twice each time the procedure executes. Each query against the Orders table must return the same dat
A. All statements in the stored procedure run in a single transaction. Database1 will contain several queries that access data in the Database2 tables. Database2 will contain a table named Inventory. Inventory will contain over 100 GB of dat
A. The Inventory table will have two indexes: a clustered index on the primary key and a nonclustered index. The column that is used as the primary key will use the identity property. Database2 will contain a table named Inventory. Inventory will contain over 100 GB of dat
A. The Inventory table will have two indexes: a clustered index on the primary key and a nonclustered
29 / 34
The safer , easier way to help you pass any IT exams.
index. The column that is used as the primary key will use the identity property. Database2 will contain a stored procedure named usp_UpdateInventory. Usp_UpdateInventory will manipulate several small data sets of up to 100 rows each. Each data set will be used multiple times. Data from Database2 will be accessed periodically by an external application named Application!. The data from Database2 will be sent to a database named App1_Db1 as soon as changes occur to the data in Database2. Litware plans to use offsite storage for all SQL Server 2012 backups. Business Requirements You have the following requirements:Costs for new equipment must be minimized. External access to the databases must be encrypted. Development effort must be minimized whenever possible. System administrators must be notified when disk space falls below a certain threshold.
The databases must be available if the SQL Server service or the storage solution fails. Database administrators must receive a detailed report that contains allocation errors and data corruption. Application developers must be denied direct access to the database tables. Applications must be denied direct access to the tables. You must encrypt the backup files to meet regulatory compliance requirements. The encryption strategy must minimize changes to the databases and to the applications.
1.You need to recommend a solution to synchronize Database2 to App1_Db1. What should you recommend?
A. Snapshot replication B. Change data capture C. Transactional replication D. Master Data Services Answer: C
2.You need to recommend a disk monitoring solution that meets the business requirements. What should you include in the recommendation? A. an audit
B. a maintenance plan C. a policy
D. a SQL Server Agent alert Answer: D
3.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
4.You need to recommend an isolation level for usp_UpdateOrderDetails. Which isolation level should recommend?
A. repeatable read B. read uncommitted C. read committed
30 / 34
The safer , easier way to help you pass any IT exams.
D. serializable Answer: D
5.You need to recommend a solution for the deployment of SQL Server 2012. The solution must meet the business requirements. What should you include in the recommendation?
A. Install a new instance of SQL Server 2012 on the server that hosts the SQL Server 2005 instance. Deploy a new server that has SQL Server 2012 installed. Implement AlwaysOn.
B. Upgrade the existing SQL Server 2005 instance to SQL Server 2012. Deploy a new server that has SQL Server 2012 installed. Implement AlwaysOn.
C. Deploy two servers that have SQL Server 2012 installed and implement Failover Clustering.
D. Deploy two servers that have SQL Server 2012 installed. Implement AlwaysOn Availability Groups on both servers. Answer: A
6.You need to recommend a feature to support your backup solution. What should you include in the recommendation?
A. Column-level encryption
B. Transparent Data Encryption (TDE) C. An NTFS file permission
D. A Secure Sockets Layer (SSL) Answer: B
7.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
Case Study: 5 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 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:
31 / 34
The safer , easier way to help you pass any IT exams.
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
32 / 34
The safer , easier way to help you pass any IT exams.
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.
1.You need to recommend a solution to ensure that sp4 adheres to the security requirements. What should you include in the recommendation?
A. Configure data manipulation language (DML) triggers. B. Enable SQL Server Audit. C. Enable C2 audit tracing. D. Enable trace flags. Answer: B
2.You need to recommend a solution to minimize the amount of time it takes to execute sp1. With what should you recommend replacing Table1? A. a table variable B. a function C. a view
D. a temporary table Answer: A
3.You need to recommend a disaster recovery strategy for the Inventory database. What should you include in the recommendation? A. Log shipping
B. AlwaysOn availability groups C. Peer-to-peer replication
D. SQL Server Failover Clustering Answer: A
4.You need to recommend a solution to minimize the amount of time it takes to execute sp5. What should you include in the recommendation? A. Use the EXECUTE AS clause in sp5.
B. Create all stored procedures used by sp5 by using the same owner. C. Copy sp5 to each database.
D. Enable cross-database chaining. Answer: B
5.You need to recommend a solution to meet the security requirements of the junior database administrators. What should you include in the recommendation? A. a database role B. a credential C. a shared login D. a server role Answer: A
33 / 34
The safer , easier way to help you pass any IT exams.
6.You need to recommend a change to sp3 to ensure that the procedure continues to execute even if one of the UPDATE statements fails. Which change should you recommend? A. Set the XACT_ABORT option to off. B. Set the XACT_ABORT option to on.
C. Set the IMPLICIT_TRANSACTIONS option to on. D. Set the IMPLICIT_TRANSACTIONS option to off. Answer: A
7.You need to recommend a disaster recovery solution for the Dev database. What should you include in the recommendation?
A. The simple recovery model and full backups
B. The full recovery model, full backups, and transaction log backups C. The full recovery model, full backups, and differential backups D. The bulk-logged recovery model and full backups Answer: A
8.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: A, C
34 / 34
因篇幅问题不能全部显示,请点此查看更多更全内容