Hello Tiger! King Cobra is very beautiful, but it’s dangerous and even can kill you with one bite. I would prefer to keep a snake that is not venomous at all, for instance, a python or maybe something else. I love to pet snakes, but it’s hard to do if they are poisonous. Yes! You’ve got it right! It is possible to pet a snake and it’s not only staying in its vivarium. I even found some info online on https://petsoid.com/do-pet-snakes-like-to-be-petted/ about snakes and that some of them are loved to be pet.