During the seminary I had some homological algebra, but only with groups (not modules) and on the tutorials from algebraic topology course I got such exercise:
Give an example of a ring $R$ and a module $M$ over that ring that does not have a two-step projective resolution: $$0\longrightarrow P_1 \longrightarrow P_0 \longrightarrow M \longrightarrow 0,$$ i.e., the resolution must be longer. Remember, the ring $R$ cannot be PID (why?).
Any hint?
A ring is (right) hereditary if every submodule of a projective (right) module is projective. An equivalent condition is that every (right) ideal is projective. Over such a ring, every module obviously has a two step projective resolution.
In particular, you see that a PID $R$ is hereditary, because ideals are principal, so a nonzero ideal is isomorphic to $R$ as a module, hence projective.
The simplest example of a non hereditary ring is $R=\mathbb{Z}/4\mathbb{Z}$. The maximal ideal $M$ is not projective, because it is isomorphic to $\mathbb{Z}/2\mathbb{Z}$ and the obvious surjective homomorphism $R\to M$ does not split. Now, what module doesn't have a two step projective resolution?