The sentence "Zach wanted a Komodo dragon, but his parents bought him a goldfish." is a compound sentence.
This is because it consists of two independent clauses ("Zach wanted a Komodo dragon" and "his parents bought him a goldfish") joined by the coordinating conjunction "but."