If you can send us another question with what area you in live in or what part of the world so the search can be narrowed. There is over 2000 species of snakes and many have yellow and black markings. But if we know what part of the world you live that may give us a better answer for you. Thankyou
Black tailed rattlesnake
What type of snake is grayish brown with yellow markings on head with black bits coming from the yellow
In North America there is a speckled king snake that is speckled black and yellow. Harmless and goes after poisonous ones.