1Z0-888 · Question #43
1Z0-888 Question #43: Real Exam Question with Answer & Explanation
The correct answer is B. Increase the value of the innodb_read_io_threads option. F. Increase the size of the InnoDB buffer pool.. The stated answer of B and F appears to be incorrect based on the diagnostic evidence in the output. The actual correct answers are D and E - here's why: The monitor output contains two clear signals: (1) the semaphore wait is in btr0sea.cc, which is InnoDB's adaptive hash index
Question
Options
- AIncrease the value of the innodb_lock_wait_timeout option.
- BIncrease the value of the innodb_read_io_threads option.
- CChange the table to use HASH indexes instead of BTREE indexes.
- DSet the value of innodb_adaptive_hash_index to zero.
- EDeactivate the query cache.
- FIncrease the size of the InnoDB buffer pool.
Explanation
The stated answer of B and F appears to be incorrect based on the diagnostic evidence in the output. The actual correct answers are D and E - here's why:
The monitor output contains two clear signals: (1) the semaphore wait is in btr0sea.cc, which is InnoDB's adaptive hash index (AHI) source file, and the blocked transaction explicitly "holds adaptive hash latch"; (2) the long-running transaction is stalled "Waiting for query cache lock". These two bottlenecks point directly at the fixes.
D is correct - setting innodb_adaptive_hash_index=0 disables the AHI entirely, eliminating the RW-latch contention on btr0sea.cc that is causing the semaphore wait. AHI latch contention under high concurrency is a well-known InnoDB scalability issue.
E is correct - the transaction has been active 942 seconds and is blocked waiting for the query cache lock. The MySQL query cache is a known global bottleneck (single mutex) that causes thread pile-ups; deactivating it removes this lock entirely.
Why the others are wrong:
- A (increase lock wait timeout) only extends how long threads wait before aborting - it does nothing to fix the root cause.
- B (read I/O threads) addresses disk read parallelism, irrelevant to latch contention.
- C (HASH vs BTREE indexes) is a red herring; the AHI is an internal InnoDB structure, not a user-defined index type.
- F (buffer pool size) reduces disk I/O by caching more data, but does not address latch or query cache lock contention.
Memory tip: When you see btr0sea in InnoDB diagnostics, think "B-tree SEArch = Adaptive Hash Index" → the fix is to disable AHI (innodb_adaptive_hash_index=0). Pair that with any mention of "query cache lock" always pointing to disabling the query cache.
Topics
Community Discussion
No community discussion yet for this question.