The purposes of cavity preparation is/are:
Cavity design should be in biologic and structural harmony with tooth tissues.
Removal of all the defects of enamel, dentin  and cementum
To  locate the  margins  of restoration as  conservatively  as  possible
To allow for  esthetic and functional placement of restorative  material
All of the above