Security Concepts and Practices

An application defect allows negative stock quantities to be saved in an inventory database. Which control BEST protects data integrity by rejecting these values before they are committed?

Show the answer

Correct answerC. Database constraints enforcing valid quantities

AWhy not this: Audit logging records modifications for investigation but does not prevent invalid values from being committed.

BWhy not this: Replication supports availability and can copy invalid quantities to the standby.

CWhy this is right: Database constraints reject quantities that violate the defined validity rules.

DWhy not this: Encryption protects stored data from disclosure but does not determine whether a quantity is valid.

Database constraints enforce valid values before a transaction commits, protecting data accuracy. Audit logging can reveal how invalid changes occurred, but it does not reject them.