Question: how are unfertilized eggs produced?
Answer: For the eggs to be fertilized, the hen and rooster must mate first, and this process must occur prior to the formation of the egg. Thus, if the hen has mated and she lays an egg, then that egg is fertilized. If the hen has not mated and she lays an egg, then that egg is unfertilized.