Bets way to achieve Depth Of Field

The DOF settings, with Advanced settings hidden, look easier to start from, in my perspective. What is the function of it in the scene?