ans will be B
This validation scheme is called the optimistic concurrency-control scheme since transactions execute optimistically, assuming they will be able to finish execution and validate at the end.
In contrast, locking and timestamp ordering are pessimistic in that they force a wait or a rollback whenever a conflict is detected,
even though there is a chance that the schedule may be conflict serializable.
Korth pg 689
In optimistic concurrency control techniques, also known as validation or certification techniques, no checking is done while the transaction is executing. Several proposed concurrency control methods use the validation technique
navathe pg 608