A CDN like CloudFront has two purposes (as far as the context of this course is concerned):
Some CDNs, like CloudFlare, (not to be confused with CloudFront) are known for their incredibly robust security features. Things like DDoS protection, Web Application Firewalls, etc.
Images and videos are certainly common, but in reality any static asset is a good fit for a CDN. Here at Boot.dev, we use CloudFlare's CDN to serve the static assets for our frontend:
We deploy on their edge network, which means that our users get the initial HTML document quickly. That said, our backend server is a Go application running in a single region in the United States, so any dynamic requests to our API still have to come all the way back to the US.