A defined media is the one for which you know the exact composition. Yeast extract can't be used for the preparation of a defined media as it is actually the result of the hydrolysis of yeast cells. As a result it contains a lot of different molecules and the exact composition of yeast extract is not actually known and may vary from one batch to the other and from one company to the other.
Therefore yeast extract is an ingredient for complex media.