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

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

Which API can be used to execute unit tests? (Choose three.)

  • A. Streaming API
  • B. Test API
  • C. Tooling API
  • D. SOAP API
  • E. Metadata API
Show Suggested Answer Hide Answer
Suggested Answer: CDE 🗳️

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
lorenac2
10 months, 2 weeks ago
Selected Answer: CDE
Tooling: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_rest_resource_examples.htm#topic-title SOAP: https://developer.salesforce.com/docs/atlas.en-us.240.0.api.meta/api/sforce_api_calls_runtests.htm Metadata: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_run_specific_tests.htm
upvoted 3 times
...
Liquad
2 years, 2 months ago
For Metadata API, you can run tests asynchronously using ApexTestQueueItem and ApexTestResult.
upvoted 2 times
amilaveer
11 months ago
How does that relate to Metadata API ?
upvoted 1 times
...
...
Liquad
2 years, 2 months ago
Found the below two points in the Apex Developer Guide (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_unit_tests_running.htm): 1. You can use the runTests() call from the SOAP API to run tests synchronously. 2. You can also run tests using the Tooling REST API. Use the /runTestsAsynchronous/ and /runTestsSynchronous/ endpoints to run tests asynchronously or synchronously. So the answer to the question should be Tooling API, SOAP API and Metadata API, because Streaming API is about events and notifications, and there is no such thing as Test API.
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago