In spite of is an example of a preposition. It can be followed by either a noun or a noun-equivalent. The phrase 'in spite of' is used to say something happened although it could have been prevented.
This is why I would say D. is your answer.
9.5m questions
12.2m answers