His role as creator assures him the role as the standard for perfection. An example of this would be when he is described as a jealous god. Jealousy, as we all know, is considered a flaw for humanity, however, for god, as he is the creator, it is perfect and just emotion, without flaw.
Don't put words in my mouth. I am merely saying that, at least in this form, with the restrictions of the human brain, we're not able, and would not be able, to understand the answer he'd give us.
Try explaining to your dog why you decided to bring it into your home.
As for perfection, it's in relation to god, and as god is the creator, his every action is perfect. The imperfect world you speak of was intended by a perfect god.
Perhaps I illustrated it wrong. Before you, you have a variety of choices, all of which have yet to be realised. You choose one path, and the following events that are contigent upon that choice are known to god. An example would be if I bought a fancy watch, I chose to do so, and a few years...
He does. Let us say you make a choice to eat cereal, the consequences of that choice are known by god, however, if you had chosen something else, another path would have been realised, and known by god.