The correct option is C In spite of
We use 'in spite of' to express contrast between two things.
Here, there's a contrast between the two parts of the given sentence- 'failing the exam' and 'studying hard'. Sentence conveys that she failed the exam even after studying hard.
Thus, option c is correct.