The correct option is D Sedimentary rocks.
Sedimentary rocks are formed by the deposition and subsequent cementation of that material at the Earth's surface and within bodies of water. When water evaporates from the surface, it leaves behind a layer of sediments. Such layers are compacted over a long period of time and give rise to sedimentary rocks.