Amazon interview question

How would you diagnosis a problem with a slow database application.