Step 1: Assumption
The molecules lose no energy to the walls or to each other on collision.
Step 2: Conclusion
So both kinetic energy and momentum are conserved, which is the last option.
Step 3: Eliminate
The other options deny conservation of one or both quantities, which would contradict elastic collisions.
Final Answer:
Elastic collisions conserve both momentum and kinetic energy.
\[ \boxed{\text{(D) }\text{both momentum and kinetic energy are conserved}} \]