Question: Where do rocks become sediment inside the earth or on the surface of the earth?
Answer: surface of the earth
Natural Questions answer: Earth 's surface (from the Wikipedia article "Sedimentary rock")