In the following example, which sharing context will myMethod execute when it is invoked?

In the following example, which sharing context will myMethod execute when it is invoked?A . Sharing rules will be inherited from the calling context.B . Sharing rules Ail be enforced by the instantiating classC . Sharing rules Ml be enforced for the running user.D . Sharing rules will not be...

March 15, 2022 No Comments READ MORE +

Which two actions should the developer take to fix the code segment shown above?

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement. Users are able to update the account records via the UI and can see an opportunity created for high annual...

March 15, 2022 No Comments READ MORE +

What is the correct way for the developer to declare a class that can be used as an exception?

A developer is tasked with performing a complex validation using Apex as part of advanced business logic. certain criteria are met for a PurchaseOrder, the developer must throw a custom exception. What is the correct way for the developer to declare a class that can be used as an exception?A...

March 15, 2022 No Comments READ MORE +

Which tool is best suited?

A Salesforce developer wants to review their code changes immediately and does not want to install anything on their computer or on the org. Which tool is best suited?A . Developer ConsoleB . Salesforce Extension for VSCodeC . Setup MenuD . Third-party apps from App ExchangeView AnswerAnswer: A

March 15, 2022 No Comments READ MORE +

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 +