A sugar cookie is a cookie made from sugar , flour , butter , eggs , vanilla , and baking powder or baking soda . A sugar cookie is a cookie made from sugar , flour , butter , eggs , vanilla , and either baking powder or baking soda .