Que abt DB Query

I am new to Yii2 and have a confusion.

Could anyone please suggest the best n most preferred method to interact with DB? I mean should I use QueryBuilder, ActiveRecord or DAO?

Thanks