Gilgamesh changed a lot throughout his story. He first started as a spoiled brat who only wanted to become rich and famous, and gain a lot of money and just be recognized because of that. However, we see that changes when he loses his friend, and he realizes that he can be good and kind, and still be loved and respected because of that. Thus, the correct answer is D. he learned that his deeds could make his name live on.