DP-300 · Question #335
Case Study 5 - ADatum Corporation Overview ADatum Corporation is a financial services company that has a main office in New York City. Existing Environment Licensing Agreement ADatum has a Microsoft…
The correct answer is D. Run the sys.sp_cdc_enable_db stored procedure. Explanation Running sys.sp_cdc_enable_db is the correct first step because the security requirement states that all changes to DB3, including ones within individual transactions, must be audited and recorded - this describes Change Data Capture (CDC), which captures INSERT…
Question
Options
- ARun the sp_addarticle stored procedure.
- BRun the ALTER TABLE statement and specify the ENABLE CHANGE_TRACKING Clause.
- CRun the ALTER DATABASE statement and specify the SET CHANGE_TRACKING = ON Clause.
- DRun the sys.sp_cdc_enable_db stored procedure.
How the community answered
(17 responses)- A6% (1)
- B18% (3)
- C6% (1)
- D71% (12)
Explanation
Explanation
Running sys.sp_cdc_enable_db is the correct first step because the security requirement states that all changes to DB3, including ones within individual transactions, must be audited and recorded - this describes Change Data Capture (CDC), which captures INSERT, UPDATE, and DELETE operations at the transaction level, storing a complete audit trail in change tables. CDC must be enabled at the database level first before it can be enabled on individual tables, making this the mandatory first step.
Why the distractors are wrong:
- Option A (sp_addarticle) is used to add articles to a SQL Server replication publication - this is a replication concept, not an auditing solution, and is irrelevant here.
- Option B (ALTER TABLE...ENABLE CHANGE_TRACKING) enables Change Tracking at the table level, but Change Tracking only records that a row changed (not what changed within a transaction), so it doesn't meet the requirement to capture individual transaction details.
- Option C (ALTER DATABASE...SET CHANGE_TRACKING = ON) enables Change Tracking at the database level - same limitation as Option B, it lacks the granular, transaction-level detail required, and it's also a prerequisite step for Change Tracking, not CDC.
Memory Tip: Think "CDC = Complete Data Changes" - when you need a full audit trail including what changed inside transactions, always choose CDC, and remember: database first, then tables (sp_cdc_enable_db → sp_cdc_enable_table).
Topics
Community Discussion
No community discussion yet for this question.