The Shopify team ensures site speed optimization through several measures, including efficient coding practices, automatic image optimization, global CDN (Content Delivery Network) usage, and regular performance updates. They also provide tools and resources for merchants to further optimize their websites.