Free TVB-450 Exam Braindumps (page: 2)

Page 2 of 38

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own.
What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?

  1. Use the schema describe calls to determine if the logged-in users has access to the Account object.
  2. Use the without sharing keyword on the class declaration.
  3. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
  4. Use the with sharing keyword on the class declaration.

Answer(s): D

Explanation:

Use the with sharing keyword on the class declaration. The with sharing keyword ensures that the Apex code respects the object-level, field-level, and record-level sharing settings for the user who is running the Apex code. This means that the code will only return records that the user has access to, according to their Sharing Settings. You can find more information about the with sharing keyword in the official Salesforce documentation (https://developer.salesforce.com/docs/atlas.en- us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm).



What are two use cases for executing Anonymous Apex code? Choose 2 answers

  1. To delete 15,000 inactive Accounts In a single transaction after a deployment
  2. To schedule an Apex class to run periodically
  3. To run a batch Apex class to update all Contacts
  4. To add unit test code coverage to an org

Answer(s): B,C



A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?

  1. <apex: pageMessages />
  2. <apex: pageMessage severity="info''/>
  3. <Apex: facet name='' message''/>
  4. <Apex: message for='' info''/>

Answer(s): B



When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers

  1. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.
  2. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
  3. Developer and Developer Pro sandboxes have different storage limits.
  4. Data import wizard is a client application provided by Salesforce.

Answer(s): C,D



Page 2 of 38



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

ahmad hassan commented on September 06, 2023
pd1 with great experience
Anonymous
upvote

Parvez commented on August 10, 2023
pd1 with great experience
Anonymous
upvote