nerdexam
Microsoft

MB2-701 · Question #35

You have the following code segment to create a contact. (Line numbers included for reference only.) Which additional step should you add to commit the contact information to the database?

The correct answer is A. orgContext-SaveChanges(). See the full explanation below for the reasoning.

Question

You have the following code segment to create a contact. (Line numbers included for reference only.) Which additional step should you add to commit the contact information to the database?

Exhibit

MB2-701 question #35 exhibit

Options

  • AorgContext-SaveChanges();
  • B_contactId = _serviceProxy.Create(contact);
  • CorgContext-SaveObject(contact);
  • Dcontact.SetAttributeValue("name", value);

How the community answered

(29 responses)
  • A
    76% (22)
  • B
    3% (1)
  • C
    14% (4)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full MB2-701 Practice