AWS

What is the difference between CNAME record and an Alias record?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

CNAME is used for mapping one hostname to any other hostname while Alias is used to map an hostname to an AWS resource.

In addition, Alias work for both root domain (somedomain.com) and non-root domain, while CNAME works only with non-root domain (foo.somedomain.com)