Media Distillery interview question

How have you ensured API security in the past? Could you explain Dependency Injection?