Yes, D) is the correct answer here. There are examples in the lecture for types of XSS that can “work around” each of the other answers :)
Maybe try to come up with a type of XSS for each other answer. If you need help with understanding any of A, B, or C, please ask again; otherwise I would let that be an exercise for your understanding ;)