
Check the Free demo of our TVB-450 Exam Dumps with 151 Questions
Clear your concepts with TVB-450 Questions Before Attempting Real exam
NEW QUESTION # 27
A company has been adding data to Salesforce and has not done a good Job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together.
Which two statements are valid considerations when using merged?
Choose 2 answers
- A. External ID fields can be used with the merge method.
- B. The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record.
- C. Merge is supported with accounts, contacts, cases, and leads.
- D. The field values on the master record are overwritten by the records being merged.
Answer: B,C
NEW QUESTION # 28
A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debtAmount' should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers
- A. Use the final keyword and assign its value when declaring the variable.
- B. Use the static keyword and assign its value in a static initializer.
- C. Use the final keyword and assign its value in the class constructor.
- D. Use the static keyword and assign its value in the class constructor.
Answer: A,C
NEW QUESTION # 29
Given the following Apex statement:
Account myAccount = [SELECT Id, Name FROM Account];
What occurs when more than one Account is returned by the SOQL query?
- A. The variable, myAccount, is automatically cast to the List data type.
- B. An unhandled exception is thrown and the code terminates.
- C. The query fails and an error is written to the debug log.
- D. The first Account returned is assigned to myAccount.
Answer: B
NEW QUESTION # 30
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situations.
Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
- A. Changes to Opportunities are causing roll-up summary fields to update on the Account.
- B. Changes are being made to the Account during an unrelated parallel save operation.
- C. Changes are being made to the Account during Criteria Based Sharing evaluation.
- D. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
Answer: A,D
NEW QUESTION # 31
Assuming that 'name; is a String obtained by an <apex:inputText> tag on a Visualforce page. Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers
- A. String query = '%' + name + '%'; List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
- B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\''; List<Account> results = Database.query(query);
- C. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\''; List<Account> results = Database.query(query);
- D. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\''; List<Account> results = Database.query(query);
Answer: A,C
NEW QUESTION # 32
Which process automation should be used to post a message to Chatter without using Apex code?
- A. Flow Builder
- B. Entitlement Process
- C. Outbound Message
- D. Strategy Builder
Answer: A
NEW QUESTION # 33
Which three per-transaction limits have higher governor limits in asynchronous Apex transactions?
- A. Records returned by SOQL
- B. Maximum heap size
- C. Maximum CPU time
- D. Maximum execution time
- E. Total SOQL queries
Answer: A,C,E
NEW QUESTION # 34
Which two process automations can be used on their own to send Salesforce Outbound Message?
Choose 2 answers
- A. Flow Builder
- B. Workflow Rule
- C. Process Builder
- D. Strategy Builder
Answer: A,B
NEW QUESTION # 35
In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?
- A. On the Paused Row Interviews component on the Home page
- B. On the Paused Row Interviews related List for a given record
- C. In the Paused Interviews section of the Apex Flex Queue
- D. In the system debug log by Altering on Paused Row Interview
Answer: C
NEW QUESTION # 36
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. public class PurchaseOrderException implements Exception ()
- B. public class PurchaseOrder implements Exception ()
- C. public class PurchaseOrder extends Exception ()
- D. public class PurchaseOrderException extends Exception ()
Answer: D
NEW QUESTION # 37
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?
- A. <apex: pageMessages />
- B. <apex: pageMessage severity="info''/>
- C. <Apex: facet name='' message''/>
- D. <Apex: message for='' info''/>
Answer: B
NEW QUESTION # 38
A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?
- A. Account.isDeletable()
- B. Schema.sObjectType.Account.isDeletable()
- C. accountRec.isDeletable()
- D. accountRec.sObjectType.isDeletable()
Answer: B
NEW QUESTION # 39
A developer needs to create a custom Interface in Apex.
Which three considerations must the developer keep in mind while developing the Apex Interface?
Choose 3 answers
- A. New methods can be added to a public interface within a released package.
- B. A method implementation can be defined within the Apex Interface.
- C. The Apex interface class access modifier can be set to Private, Public, or Global.
- D. A method defined In an Apex Interface cannot have an access modifier.
- E. The Apex class must be declared using the interface keyword.
Answer: B,D,E
NEW QUESTION # 40
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. Setup Menu
- B. Developer Console
- C. Salesforce Extension for VSCode
- D. Third-party apps from App Exchange
Answer: B
NEW QUESTION # 41
An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met?
- A. Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met.
- B. Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
- C. Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval.
- D. Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met.
Answer: B
NEW QUESTION # 42
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?
- A. Use the without sharing keyword on the class declaration.
- B. Use the schema describe calls to determine if the logged-in users has access to the Account object.
- C. Use the with sharing keyword on the class declaration.
- D. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
Answer: C
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).
NEW QUESTION # 43
......
Get professional help from our TVB-450 Dumps PDF: https://troytec.getvalidtest.com/TVB-450-brain-dumps.html