This question tests when a continuous bijection between topological spaces is guaranteed to be a homeomorphism. A homeomorphism needs both $f$ and $f^{-1}$ continuous, and continuity of $f^{-1}$ is the same as $f$ being a closed map (closed sets go to closed sets). Let's go through each option.
Only the combination "domain compact, codomain Hausdorff" is strong enough to guarantee a continuous bijection is a homeomorphism, so the correct choice is option (C).
Let's summarize:
So the correct answer is option (C): $f$ is a homeomorphism if $X$ is compact and $Y$ is Hausdorff.