nerdexam
Salesforce

PDII · Question #103

PDII Question #103: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #103. The question stem and answer options stay visible for context.

Question

Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_Id_c. How can a developer insert an Employee_c record linked to Company_c with a Company_Id_c of '999'?

Options

  • AEmployee_c emp = new Employee_c(Name='Developer'); emp.Company_r = '999' insert emp;
  • BEmployee_c emp = new Employee_c(Name='Developer'); emp.Company_c = '999' insert emp;
  • CEmployee_c emp = new Employee_c(Name='Developer'); emp. Company_c = new
  • DEmployee_c emp = new Employee_c(Name='Developer'); emp.Company_r = new

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice