The word "optimistic" means having a hopeful and positive outlook on a situation, which makes "hopeful" (Option D) the correct synonym.
Thus, the correct synonym for "optimistic" is "hopeful."