A metaphor is a piece of figurative language that compares two unlike things without using the terms "like" or "as". Off the bat, you can eliminate B and C, because they include these words. Option A is a piece of prose, it makes no comparisons.
The answer is D, because it compares the subject, "I" (most likely a person), to a rock (which is not a person).