They know how to work together and avoid the bite!
This is a fairly graphic video of a pack of dogs relentlessly attacking a very large cobra. The cobra has so many attackers, five in all, that it doesn’t know which animal to strike. As it goes after one, another comes in and takes some bites out of it, distracting it just enough to prevent a strike. The dogs are all collared and don’t like the snake. It is unclear what the outcome was, but if the person shooting the video didn’t stop the attack, it probably didn’t bode well for the snake.
A cobra against a single dog would probably have a bad outcome for the dog, but a pack of five dogs is just too much for the snake. It is unclear if any of the dogs got bit by the snake, but it looks as if they’ve had experience with cobras before.