Okay, good to know you have the basic foundation of knowledge then. So yes, lets discuss the Old Testament. Job? Well you DO know that there probably never was a real Job person. The book of Job is simply a Didactic Narrative (Didactic is a fancy word that us Biblical Scholars use to mean teaching) that the post-Babylonian exilic editors of the Old Testament wrote in order to show that the Deuteronomical Principle isnt always correct. What is the Deuteronomical principle you might ask? Well it, in a nutshell, is the theological view that if one obeys covenant (Mosaic) then YHWH will bless them. If they disobey covenant then YHWH will bring curses upon them. This was a major revelation that developed during the exile. While the Jewish people were in captivity they had a chance to look back and question Why are we here? What did we do, or not do, that landed us in this predicament? So what comes out of this is the strong deuteronomical view of the world. We see this in the books that were edited by these Jewish Priests (Judges, Samuel, Kings, Chronicles, etc).
So when they got set free, there were two very strong theological views held by the people of Judah. The first we find reflected in the books of Ezra and Nehemiah. In this the deuteronomical principle is emphasized, and in fact, they plan to getting right with YHWH by building a wall, isolating themselves from the rest of the world, kicking out their non-Jewish wives and husband (Ezra is the only book in the Bible that actually commands divorce), etc.
The counter view of this view are found in the books of Jonah, Ruth and Job. In Jonah, we find YHWH telling Jonah to go preach to the Assyrians (again, this is not a literal story, but rather another Didactic Narrative, please dont take the whole fish thing literal! Its sad so many people get caught up on that when its such a small part of the story.) Anyways, this book was edited to show that YHWH didnt want isolation but rather to go out to the nations. Ruth is a combat against Ezra and Nehemiahs radical nationalism in that Ruth was a Moabite, and the editor of the book even goes as far as to show that Ruth is in the lineage of David! What a smack in the face of the nationalistic believers, eh?!
And then there is Job. I know I took a long round about way of getting here, but now you can see the historical context and occasion of the book. This book was written to challenge the deuteronomical principle. We see Job, a pillar of deuteronomical living, being punished (seemingly) by YHWH. That is why, for the vast majority of the book, he gets railed by his friends for being a sinner. There must be something he is doing that is causing him to break covenant with YHWH. We see at the end of the book, when YHWH shows up, he tells Job that his friends were wrong, and the real reason for Jobs troubles have nothing to do with breaking covenant, so in that we see the theological point of view of the Jewish editors.
So there you have Job in a nutshell. It is intellectually dishonest to use the book of Job as so many Christians and non-Christians have over the years. When you see it in its proper historical context, we can understand what it is and is not trying to tell us about God.