By definition, a permanent redirect. Use these to redirect users and search engines from old URLs to new URLs.
By definition, a temporary redirect. Use these when temporarily deactivating a URL or moving a URL to a new location.
If you don’t understand any of that, just remember this quote I heard from Unfrozen Caveman Lawyer: “301 good. 302 bad.”