Administering a SQL Database Infrastructure — Question 116
You administer a Microsoft SQL Server 2016 database that includes a table named Application.Events.
Application.Events contains millions of records about user activity in an application.
Records in Application.Events that are more than 90 days old are purged nightly.
When records are purged, table locks are causing contention with inserts.
You need to be able to modify Application.Events without requiring any changes to the applications that utilize Application.Events.
Which type of solution should you use?
Answer options
- A. Partitioned tables
- B. Online index rebuild
- C. Change data capture
- D. Change tracking
Correct answer: A
Explanation
Partitioned tables are the best solution in this scenario as they allow for the management of large datasets by dividing them into smaller, more manageable pieces, thus reducing contention during purging. Online index rebuilds do not address the locking issue during deletions, while change data capture and change tracking are primarily for capturing changes rather than improving insert performance.