Which exception type cannot be caught ?

Which exception type cannot be caught ?A . CalloutExceptionB . A custom ExceptionC . NoAccessExceptionD . LimitExceptionView AnswerAnswer: D

March 15, 2022 No Comments READ MORE +

Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?

A developer created these three Rollup Summary fields in the custom object, Project_ct, The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to Implement the business requirement in order to minimize maintenance...

March 14, 2022 No Comments READ MORE +

Which Apex solution will let the developer implement this requirement?

A developer uses a loop to check each Contact in a list. When a Contact with the Title of “Boss” is found, the Apex method should jump to the first line of code outside of the for loop. Which Apex solution will let the developer implement this requirement?A . break;B...

March 14, 2022 No Comments READ MORE +

Which class definition should be used to successfully implement this requirement?

A developer has requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis. Which class definition should be used to successfully implement this...

March 14, 2022 No Comments READ MORE +

Which Apex technique should the developer use?

A developer wants to mark each Account in a List<Account> as either or Inactive based on the LastModified field value being more than 90 days. Which Apex technique should the developer use?A . A for loop, with a switch statement insideB . A Switch statement, with a for loop insideC...

March 13, 2022 No Comments READ MORE +

What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?

Given the following block code: try {List <Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website = null];} catch (Exception e){ //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?A . Check the state...

March 13, 2022 No Comments READ MORE +

Which is the correct implementation to use the PaymentProcessor interface class?

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor {void pay (Decimal amount);} Which is the correct implementation to use the PaymentProcessor interface class?A . Public class CheckPaymentProcessor implements PaymentProcessor { public...

March 13, 2022 No Comments READ MORE +

Which approach can efficiently generate the required data for each unit test?

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?A . Use @TestSetup with a viod method.B...

March 13, 2022 No Comments READ MORE +

What is the maximum number of SOQL queries used by the following code? List<Account> aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }

What is the maximum number of SOQL queries used by the following code? List<Account> aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }A . 5B . 6C . 1D . 2View AnswerAnswer: B

March 13, 2022 No Comments READ MORE +

What should a developer do to check the code coverage of a class after running all tests?

What should a developer do to check the code coverage of a class after running all tests?A . View the Code Coverage column in the view on the Apex Classes page.B . View the Class test Coverage tab on the Apex Class record.C . view the overall Code Coverage panel...

March 12, 2022 No Comments READ MORE +