This is a complicated question, and the Apostle Peter tackled it head on. I discussed this during Sunday School today, when we studied 1 Peter 1:6-9. The audio and PDF notes are available here, along with the rest of the audio and notes from this teaching series.
See also this recent article I wrote, focusing on the Book of Job and the one thing his friends got horribly wrong.