Free TVB-450 Exam Braindumps (page: 12)

Page 11 of 38

A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
What to do now?

  1. The method must be decorated with (cacheable=true).
  2. The method must be decorated with @AuraEnabled.
  3. The method must return a JSON Object.
  4. The method must return a String of a serialized JSON Array.

Answer(s): A



A Lightning component has a wired property, searchResults, that stores a list of Opportunities.
Which definition of the Apex method, to which the searchResults property is wired, should be used?

  1. @AuraEnabled(cacheable=true)
    public static List<Opportunity> search(String term) { /* implementation*/ }
  2. @AuraEnabled(cacheable=true) public List<Opportunity> search(String term) { /*implementation*/ }
  3. @AuraEnabled(cacheable=false) public static List<Opportunity> search(String term) { /*implementation*/ }
  4. @AuraEnabled(cacheable=false) public List<Opportunity> search(String term) { /*implementation*/ }

Answer(s): A



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 revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.
Which two actions should the developer take to fix the code segment shown above? Choose 2 answers

  1. Check if all the required fields for Opportunity are being added on creation.
  2. Use Database.query to query the opportunities.
  3. Move the DML that saves opportunities outside the for loop.
  4. Query for existing opportunities outside the for loop.

Answer(s): C,D



What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers

  1. View the apex status Page
  2. View the apex flex Queue
  3. View the apex Jobs page
  4. Query the AsyncApexJobe object

Answer(s): A,C






Post your Comments and Discuss Salesforce TVB-450 exam with other Community members:

TVB-450 Exam Discussions & Posts