Which condition is necessary for a mold fossil to form?

The fossil must be preserved in amber.
Minerals must replace the remains.
The mold must be filled with sediment.
Hard parts of the organism must dissolve.