ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 130 - Certified Platform Developer II discussion

Report
Export

A developer writes the following code:

While testing the code, the developer receives the following error message: System.CalloutException : You have uncommitted work pending What should the developer do? (Choose two.)

A.
Use the asyncSend() method of the HTTP class to send the request in async context
Answers
A.
Use the asyncSend() method of the HTTP class to send the request in async context
B.
Ensure all callouts are completed prior to executing DML statements
Answers
B.
Ensure all callouts are completed prior to executing DML statements
C.
Move the web service callout into an ©future method
Answers
C.
Move the web service callout into an ©future method
D.
Use Database.insert (order, true) to immediately commit any database changes
Answers
D.
Use Database.insert (order, true) to immediately commit any database changes
Suggested answer: B, C
asked 23/09/2024
Francis Arthur
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first