Salesforce
PDII · Question #83
PDII Question #83: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #83. The question stem and answer options stay visible for context.
Question
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org? List<Contact> contactsToBeInserted=new List<Contact>(); Contact contactInstance= new Contact(LastName='Smith', Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactInstance); contactInstance= new Contact (LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add(contactInstance); Database.insert (contactsToBeInserted,true);
Options
- ABoth inserts succeed and the contact record that has the Zone value of 'PI'I'I' is set to NULL
- BA partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted
- CBoth inserts succeed and the contact record that has the Zone value of 'PITT' is truncated
- DAn unhandled DML exception is thrown and no contact records are inserted
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.