The principal filing an undertaking shall serve a copy on the beneficiary and an affidavit of service shall be filed with the undertaking. (CCP 995.370)