Monitoring, Logging, Analysis, Remediation, and Performance Optimization

An RDS for PostgreSQL instance has high database load but low CPU utilization; load analysis shows most sessions waiting on locks. A transaction holds row locks while waiting for an external API response; which change should the operator prioritize?

Show the answer

Correct answerD. Move the external API call outside the transaction.

AWhy not this: Storage IOPS does not resolve contention caused by a transaction retaining row locks.

BWhy not this: Allowing more connections can add waiting sessions without reducing lock duration.

CWhy not this: Additional CPU capacity does not remove the transaction responsible for blocking other sessions.

DWhy this is right: Removing external waiting from the transaction reduces how long row locks block other sessions.

Moving the external call outside the transaction shortens lock duration and reduces blocking. More CPU does not resolve sessions waiting for another transaction to release row locks.