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 118 discussion

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

A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup.
What are three actions to enable this functionality? (Choose three.)

  • A. Surround the callout with Test.startTest(), Test.stopTest()
  • B. Surround the data insertion with Test.startTest(), Test.stopTest()
  • C. Implement the WebServiceMock interface
  • D. Update code to call Test.setMock()
  • E. Implement the HttpCalloutMock interface
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
au_
9 months, 1 week ago
ACD is correct Answer. https://developer.salesforce.com/docs/atlas.en-us.244.0.apexcode.meta/apexcode/apex_callouts_wsdl2apex_testing.htm
upvoted 1 times
...
lorenac2
1 year, 4 months ago
Selected Answer: ACD
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_wsdl2apex_testing_dml.htm
upvoted 2 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 ...