How does sedimentary rock form? My sis needs help with this

A.Over millions of years, the sediment settles, compacts, and cements.

B.Sediment gets carried to the mouth of a river, settles, and quickly forms sediment.

C.Earthquakes and volcanoes form sediment instantly when they occur.

D.Over hundreds of years, the sediment settles, compacts, and cements.