Dental cavity is cleaned and should be filled with dental filling material. Now tooth colored filling material is available so you will not feel awkward. Dentist will take x-ray also not confirm the depth of the cavity. In case of deep cavity, That should be treated with root canal treatment.