Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 41 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 41
Topic #: 1
[All Certified Platform Developer II Questions]

Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?

  • A. insert (records, false)
  • B. Database.insert(records, false)
  • C. Database.insert(records, true)
  • D. insert records
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Jeet89123
5 months, 2 weeks ago
Selected Answer: B
allornone set to False
upvoted 1 times
...
M4JK3LSON
11 months ago
B - second argument is allOrNothing - when set as false successfully validate records can be save. If arguemnt is true - them at least one failed is enough to rollback whole transaction
upvoted 1 times
...
costansin
1 year, 8 months ago
Then B
upvoted 1 times
...
karappo
1 year, 9 months ago
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_database.htm#apex_System_Database_insert
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...