entity death trigger command

Is it possible to summon specific mobs that when they die, they trigger a command/function? I'm hoping this is possible to not have to check every tick whether or not certain mobs are alive.
Continue to help post