Interview Prep/AWS/RDS, Aurora and DynamoDB

You changed `work_mem` in the parameter group, but `SHOW work_mem;` still shows the old value.

IntermediateTroubleshootingRDS, Aurora and DynamoDB
Answer

Likely causes → The instance uses a different parameter group, the parameter is static (it needs a reboot, status pending-reboot), or the session or role overrides it.

Diagnose →

aws rds describe-db-instances --db-instance-identifier mydb \
  --query 'DBInstances[].DBParameterGroups'
aws rds describe-db-parameters --db-parameter-group-name pg16-app \
  --query "Parameters[?ParameterName=='work_mem'].[ParameterValue,ApplyType,IsModifiable]"
psql -c "select name, setting, source from pg_settings where name='work_mem';"

Fix →

  1. Attach the right custom group. The default group cannot be modified
  2. For static parameters, reboot during a window
  3. Remove role-level overrides (ALTER ROLE app RESET work_mem)

Prevent → Use one custom parameter group per engine and environment, managed in IaC, and check pending-reboot after every change.

aws All AWS questions Roadmap: AWS core services

More on RDS, Aurora and DynamoDB