How do scientists use ice to study ancient climates?

through glacial deposits and ice cores
through glacial deposits and ice ages
through ice cores and Earth’s ellipse
through Earth’s ellipse and ice ages