Question 261
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
What is the correct syntax to declare a remote method in Apex? (Choose two.)
What is the correct syntax to declare a remote method in Apex? (Choose two.)
Question 262
After a Platform Event Is defined in a Salesforce org, events can be published via which two mechanisms?
Choose 2 answers
Choose 2 answers
Question 263
What is the recommended approach to create test data when testing Apex that involves Pricebooks, PricebookEntries, and Products?
Question 264
A company wants to run different logic based on an Opportunity's record type. Which code segment handles this request and follows best practices?
A)

B)

A)

B)

Question 265
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.
What should the developer do to speed up test execution''
What should the developer do to speed up test execution''