Difficulty: Easy
Correct Answer: Explicit locks.
Explanation:
Introduction / Context:Database engines automatically take many locks implicitly to enforce isolation. Sometimes, applications or DBAs request locks directly to control access patterns or prevent specific anomalies. These are known by a standard term.
Given Data / Assumptions:
Concept / Approach:
When an application or statement requests a lock via syntax or procedure, the lock is explicit. By contrast, implicit locks are acquired automatically by the optimizer/executor to satisfy isolation guarantees without programmer intervention.
Step-by-Step Solution:
1) Identify whether the lock is taken automatically or by explicit command.2) If taken by command (e.g., LOCK TABLE, SELECT FOR UPDATE), it is an explicit lock.3) Exclusive/shared describe lock modes, not how the lock was requested.4) Therefore, the correct term is explicit lock.Verification / Alternative check:
DBMS references categorize locks by acquisition method (implicit vs. explicit) and by mode (shared, exclusive, update). The question asks the method, not the mode, matching “explicit.”
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
Explicit locks.
Discussion & Comments