Difficulty: Easy
Correct Answer: transaction log
Explanation:
Introduction / Context: Robust databases must track changes for recovery, auditing, and replication. The mechanism that records each change operation (such as INSERT, UPDATE, DELETE, and sometimes schema changes) is central to point-in-time recovery and compliance reporting.
Given Data / Assumptions:
Concept / Approach: A transaction log (also called write-ahead log, redo log, or journal) serializes modifications before they are applied to data files. This enables crash recovery, roll-forward/roll-back, replication streams, and auditing. Other tools like report writers or query languages do not guarantee a comprehensive chronological record of changes.
Step-by-Step Solution:
Identify the requirement: chronological capture of all data-changing events.Map to database internals: this is the transaction log (WAL/redo log).Select “transaction log.”Verification / Alternative check: In recovery scenarios, restoring a backup and replaying the transaction log to a target timestamp reconstitutes the database state—proof that the log provides the needed historical record.
Why Other Options Are Wrong:
report writer: generates formatted outputs; does not record every change.query language / data manipulation language: tools to request or apply changes, not the persistent audit trail.None of the above: incorrect because a transaction log exists specifically for this purpose.Common Pitfalls: Assuming that application logs or ad hoc reports replace the guaranteed, system-level completeness of database transaction logging.
Final Answer: transaction log
Discussion & Comments