###BeginCaseStudy###
Case Study 1
Litware, Inc
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 2008 database named
App1_DB. App1_DB will remain in production.
Requirements
Planned Changes
You plan to deploy a SQL Server 2014 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. 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. 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 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.
All data in Database2 is recreated each day and 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 App1_Db1 as soon
as changes occur to the data in Database2.
Litware plans to use offsite storage for all SQL Server 2014 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.
###EndCaseStudy###
During performance testing, you discover that database INSERT operations against the
Inventory table are slow.
You need to recommend a solution to reduce the amount of time it takes to complete the
INSERT operations.
What should you recommend?
A.
Partition the nonclustered index.
B.
Partition the Inventory table.snapshot replication
C.
Create a column store index.Master Data Services
D.
Drop the clustered index.change data capture
Explanation:
Scenario: 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.
You cannot partition only non-clustered index.
Drop a clustered index can help when there is many concurrent inserts.
https://technet.microsoft.com/en-us/library/cc917672.aspx
Heaps are recommended in fast track
https://msdn.microsoft.com/en-us/library/hh918452.aspx
Better partition the table. B
I think B so if we partition the table it will help saving time to retrieve the data from it
What is mean by “snapshot replication” in answer B?
“The column that is used as the primary key will use the identity property”.
The performance suffers because of incremental clustered index.
There is contention in the leaf page.
I think D is more right than answer B
Also the Non-Clustered Index can be Partitioned (Non-Aligned)
Anyhow, the correct option is D.
Drop the clustered index based on the identity column. Recreate it after the insert is completed.
“During performance testing, you discover that database INSERT operations against the Inventory table are slow.”
This is most probably due to internal fragmentation of the Clustered Index.
NOTE:
When the identity datatype is used for a Primary key, the resulting underlying clustered index may perform poorly for huge data inserts and updates.
RESOLUTION:
Change the datatype to int/bigint, or drop/disable the index before data inserts and enable/recreate it thereafter. This speeds up the insert operation.
Why Inventory table would have internal fragmentation of the Clustered Index?
BTW; Valid data types for an identity column are any data types of the integer data type category, except for the bit data type, or decimal data type. So the clustered index is already in int/bigint datatype.
New 70-465 Exam Questions and Answers Updated Recently:
NEW QUESTION 20
What should you recommend for the updates to Sales.TransactionHistory?
A. a REPEATABLE READ isolation level
B. implicit transactions
C. query hints
D. a SNAPSHOT isolation level
Answer: A
NEW QUESTION 21
……
NEW QUESTION 32
You need to recommend a solution to back up DB1. What should you include in the recommendation?
A. Azure Table Storage
B. Azure Queue storage
C. Azure Blob storage
D. Azure Document DB
Answer: C
Explanation:
Explanation: For SQL Server the Azure Blob Storage service offers a better alternative to the often used tape option to archive backups. Tape storage might require physical transportation to an off-site facility and measures to protect the media. Storing your backups in Azure Blob Storage provides an instant, highly available, and a durable archiving option.
NEW QUESTION 33
……
NEW QUESTION 154
You are using dynamic management views to monitor an SQL Server server named SQL1. A database administrator named Dba1 must monitor the health of SQL1. You need to ensure that Dba1 can access dynamic management views for SQL1. The solution must use the principle of least privilege. Which permissions should you assign to Dba1?
A. VIEW ANY DEFINITION
B. VIEW SERVER STATE
C. VIEW DEFINITION
D. CONTROL SERVER
Answer: B
Explanation:
To query a dynamic management view or function requires SELECT permission on object and VIEW SERVER STATE or VIEW DATABASE STATE permission.
NEW QUESTION 155
You have a customer who has several SQL Server 2012 database servers. You are designing a data warehouse for the customer. The data warehouse will use columnstore indexes. The customer identifies that the following must be supported for the column store indexes.
– Data manipulation language (DML) statements
– Nonclustered columnstore indexes
– Clustered columnstore indexes
– Partitioning
You need to identify which technology requires the customer to implement an SQL Server 2014 database. What should you identify?
A. clustered columnstore indexes
B. nonclustered columnstore indexes
C. data manipulation language (DML) statements
D. partitioning
Answer: A
Explanation:
SQL Server 2014 has the features of SQL Server 2012 plus updateable clustered columnstore indexes. This feature is required here as DML statements must be supported in the warehouse.
NEW QUESTION 156
……
NEW QUESTION 157
Drag and Drop Question
You have an SQL Server 2014 server. You plan to create four stored procedures that will use transactions. The stored procedures will be configured as shown in the following table.
IMG: examgod.com/plimages/5ff1a742aa3c_FC1B/1571_thumb8_thumb.jpg
You need to recommend an isolation level for each stored procedure. The solution must support the concurrency strategy of each stored procedure and must minimize locks. What should you recommend? To answer, drag the appropriate isolation levels to the correct stored procedures. Each isolation level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
IMG: examgod.com/plimages/5ff1a742aa3c_FC1B/1572_thumb4_thumb.jpg
Answer:
IMG: examgod.com/plimages/5ff1a742aa3c_FC1B/1573_thumb4_thumb.png
NEW QUESTION 158
……
P.S. These New 70-465 Exam Questions Were Updated By PassLeader, You Can Get The Newest 70-465 Dumps In PDF And VCE From — https://tr.im/HlLS2 (160q dumps)
Good Luck !!!
A is correct
It says “All data in Database2 is recreated each day and does not change until the next data creation process.”
But the question is talking about INSERT operations against the Inventory table which resides in database2. So confusing.
If option c is “Clustered” column store index, I would go for it due as clustered column store index is highly compressed and therefor would increase insert performance.
Else “Partition the Inventory table” seems to be best option here as Partitioning makes large tables or indexes more manageable; eg: Import data into a new table then swtich in the table into partition or place this year data in high-speed disk/filegroup ..etc would help insert performance.