Both. Zip code 95746 is the city of Sonoma, California which is in Sonoma County.
Zip code 04294 is in Franklin County, Maine. The city is Wilton.
Zip code 46280 is in Hamilton County, Indiana. The city is Indianapolis.
Zip code 01852 is in Middlesex County, Massachusetts. The city is Lowell.
Zip code 40220 is in Jefferson County, Kentucky. The city is Louisville.
Zip code 97301 is in Marion County, Oregon. The city is Salem.
Zip code 98501 is in Thurston County, Washington. The city is Olympia.
Zip code 85750 is in Pima County, Arizona. The city is Tuscon.
Zip code 48180 is in Wayne County, Michigan. The city is Taylor.
94117 zip code is for San Francisco County, which is also the city.
Zip code 19140 is in Philadelphia County, Pennsylvania. The city (obviously) is Philadelphia.
Zip code 02904 is in Providence County, Rhode Island. The city is Providence.
Zip code 12180 is in Rensselaer County, New York. The city is Troy.