difference between job function and aws managed policy type
They are one and the same. Job Functions are a grouping of certain AWS Managed Policies depending on the perceived group’s job duties. They cover common use cases and are more convenient than creating custom policies.
With that being said, the most secure way to grant least privilege is to write a custom policy with only the permissions needed by your team.