IAM roles vs OAuth scopes for GCE VMs

What’s the deal with IAM roles and OAuth Scopes associated with a GCE VM? From what i know OAuth scopes are deprecated. I still see errors when these scopes are not set correctly. Is the combo still used? Link

I think i found my answer by reading that link more closely