The correct answer is:
A. Energy from the Sun creates the cycle of rain and wind that causes erosion to produce sedimentation.
This option accurately reflects the role of energy in the formation of sedimentary rocks by highlighting how solar energy drives the processes of weathering, erosion, and sedimentation, ultimately leading to the formation of sedimentary layers.