A company notices that its Aurora MySQL cluster has a high number of locks and deadlocks. The application uses read replicas for read scaling. What is the MOST likely cause?
Long transactions hold locks, increasing contention and deadlock probability.
Why this answer
Long-running transactions on the writer instance hold locks for extended periods, increasing the probability of lock contention and deadlocks. Option A is incorrect because Performance Insights is a monitoring tool and does not cause locks or deadlocks. Option B is incorrect because mismatched instance sizes may affect performance but do not directly cause locks or deadlocks.
Option D is incorrect because Aurora read replicas are read-only and cannot perform write operations.