Is "你要吃什么蛋糕" actually incorrect though? It was marked wrong for me.
Both of the forms are correct. If you want to be more complete with expressing the sentence, then say or write
In this sentence 想 by itself is okay because it's followed by a verb - is that it?
When is it appropriate to use 想 and when is it appropriate to use 喜欢 ?