It's always been a tricky one. Firstly, what is plain, is that this story striks at the heart of those who believe bad things happen to people because they are bad. Bad things can happen to good people as a way of preparing them for future glory.
This is a devise I use myself, although I don't believe it. When people say to me that something bad happened because they must have had bad karma, or deserved it somehow, I say perhaps it is more about the future than the past - an opportunity, or a way to pay for future benefits.
Personally I think it's crap. I accept karma, but I don't accept we can comprehend how it works in the linear way to which our mind resorts. I have no doubt that wrong decisions build suffering, but that in no way means suffering is caused by wrong decisions. Trying to justify events, backwards or forwards, according to behaviour, is founded upon the principle we can have a logical discussion with God. That is a complete misunderstanding of reality.
What is true, is that we can use events to build personal power. This then provides the stepping stone to address "every story of dedicated search for truth". I feel the Christian religion has completely misguided its adherents, by setting them forth from a false premise. It is best to dismiss any attempt to critique this, and just start correctly. We don't have to defend ourselves to anyone - we just have to get it right.
Whatever happens to us in life, it is an opportunity - up until the point where the adversity overwhelms our ability to respond constructively. It is a sign of our level of personal power, the extent to which we can continue to profit from experience. I don't believe we are given no more than we can handle. I believe anything can happen in this universe, and we can easily be pushed way beyond our capacity. Mush of this path is sheer luck.
Nonetheless, I also believe it is possible to reach a covenant with the power behind the universe. To reach that, is the goal of everyone on the Path. And even when reached, it can never be taken for granted.
The correct approach for Job was firstly to remove God from any thoughts. That is a complete waste of energy. Secondly, to become flexible enough to turn every event into a profit, internally. Sure, he can complain and bewail his fate - we are all human and needing to let off our frustration. But then we have to assess our situation, not complain, perceive how best to find some way through the maze while sustaining our inner core. This is damn hard in the worst cases, and I feel only the greatest respect for any of us who finds themselves on such a road.
What it does, for what it's worth, is to move our sense of identity back from the outer world, to a place the world can't reach - deep inside us is a core that exists outside of our worldly life. This is the task of all of us, in or out of strife. We have to relocate our identity to our spirit, or its intermediary - the double.
What is odd, is that good fortune causes the same effect for a person-of-the-path. Because every time something good happens to us, we are left with the deep realisation that it is only superficial - it changes nothing about our core reality. Only efforts which affect that core reality are satisfying.
The problem with such advise, is that if we are truthful enough, we will see that in the end, inner silence sabotages everything. I say that's not entirely true - that there is a 'residual' from the correct approach to Job's challenge, which sticks with us through the eye of the needle. But that is just my personal belief.
Let me put it this way, in meditational inner silence, we realise that everything is futile - that is the unavoidable truth. But ask yourself, how long can you sustain that realisation? Why is it, that you not only found that realisation, but can sustain yourself within it? Where did that capacity come from?