PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

###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?

PrepAway - Latest Free Exam Questions & Answers

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.

13 Comments on “What should you recommend?

  1. Dim says:

    “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.




    0



    0
      1. Skippo says:

        “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.




        0



        0
        1. Cray says:

          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.




          0



          0
  2. Rickyhope says:

    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.




    0



    0
  3. Cray says:

    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.




    0



    0

Leave a Reply