Get TVB-450 Braindumps & TVB-450 Real Exam Questions
Salesforce TVB-450 Actual Questions and Braindumps
NEW QUESTION # 73
Which two are best practices when it comes to component and application event handling? (Choose two.)
- A. Use component events to communicate actions that should be handled at the application level.
- B. Try to use application events as opposed to component events.
- C. Handle low-level events in the event handler and re-fire them as higher-level events.
- D. Reuse the event logic in a component bundle, by putting the logic in the helper.
Answer: C,D
NEW QUESTION # 74
A developer identifies the following triggers on the Expense_c object:
DeleteExpense,
applyDefaultstoexpense
validateexpenseupdate;
The triggers process before delete, before insert, and before update events respectively.
Which two techniques should the developer implement to ensure trigger best practice are followed?
- A. Unify the before insert and before update triggers and use Process Builder for the delete action.
- B. Create helper classes to execute the appropriate logic when a record is saved.
- C. Maintain all three triggers on the Expense__c object, but move the Apex logic out for the trigger definition.
- D. Unify all three triggers in a single trigger on the Expense__c object that includes all events.
Answer: B,D
NEW QUESTION # 75
A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key__c is known.
Which two statements enable the developer to save the records to the database without an Id? (Choose two.)
- A. Upsert myAccounts Foreign_Key__c;
- B. Database.upsert(myAccounts).Foreign_Key__c;
- C. Upsert myAccounts(Foreign_Key__c);
- D. Database.upsert (myAccounts, Foreign_Key__c);
Answer: A,D
NEW QUESTION # 76
A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?
- A. Use Test.loadData ( )and a static resource to load a standard price book
- B. Use Test,getStandardPricebookid ( ) to get the standard price book ID.
- C. Use @TestVisible to allow the test method to see the standard price book.
- D. Use @IsTest (SeeAllData=True) and delete the existing standard price book
Answer: B
NEW QUESTION # 77
Which three data types can a SOQL query return? Choose 3 answers
- A. List
- B. Long
- C. Integer
- D. sObject
Answer: A,C,D
NEW QUESTION # 78
Which three Salesforce resources can be accessed from a Lightning web component?
Choose 3 answers
- A. Third-party web components
- B. Static resources
- C. All external libraries
- D. Content asset files
- E. SVG resources
Answer: B,C,E
NEW QUESTION # 79
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?
- A. The method must return a String of a serialized JSON Array.
- B. The method must be decorated with (cacheable=true).
- C. The method must be decorated with @AuraEnabled.
- D. The method must return a JSON Object.
Answer: B
NEW QUESTION # 80
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
- A. Public void doWork(sObject theRecord)
- B. Public void doWork(Account || Contatc)
- C. Public void doWork(Account Contact)
- D. Public void doWork(Record theRecord)
Answer: A
NEW QUESTION # 81
A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?
Choose 2 answers
- A. The parent component can use a public property to pass the data to the child component.
- B. The parent component can invoke a method in the child component
- C. The parent component can use the Apex controller class to send data to the child component.
- D. The parent component can use a custom event to pass the data to the child component,
Answer: A,D
NEW QUESTION # 82
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?
- A. Option B
- B. Option A
- C. Option D
- D. Option C
Answer: A
NEW QUESTION # 83
A developer considers the following snippet of code:
Based on this code, what is the value of x?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION # 84
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
- A. Create a custom field on the child object of type Foreign Key
- B. Create a custom field on the child object of type External Relationship.
- C. Create and populate a custom field on the parent object marked as an External ID.
- D. Create and populate a custom field on the parent object marked as Unique
Answer: C
NEW QUESTION # 85
The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:
Which governor limit will likely be exceeded within the Apex transaction?
- A. Total number of records processed as a result of DML statements
- B. Total number of records retrieved by SOQL queries
- C. Total number of DML statement issued
- D. Total number of SOQL queries issued
Answer: B
NEW QUESTION # 86
A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.
Which annotation should the developer add to the Apex method to achieve this?
- A.

- B.

- C.

- D.

Answer: C
NEW QUESTION # 87
A developer Is Integrating with a legacy on-premise SQL database.
What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?
- A. External ID field
- B. External Object
- C. Formula field
- D. Lookup field
Answer: A
NEW QUESTION # 88
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
- A. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
- B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
- C. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.
- D. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
Answer: C,D
NEW QUESTION # 89
Refer to the following Apex code:
What is the value of x when it is written to the debug log?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION # 90
Which two events need to happen when deploying to a production org? Choose 2 answers
- A. All Apex code must have at least 75% test coverage.
- B. All triggers must have at least 1% test coverage.
- C. All triggers must have at least 75% test coverage.
- D. All test and triggers must have at least 75% test coverage combined
Answer: A,B
NEW QUESTION # 91
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
- A. OrgLimits
- B. Exception
- C. Messaging
- D. Limits
Answer: D
NEW QUESTION # 92
Which code in a Visualforce page and/or controller might present a security vulnerability?
- A. <apex:outputField escape="false" value="{!ctrl.userInput}" />
- B. <apex:outputField value="{!ctrl.userInput}" />
- C. <apex:outputText value="{!$CurrentPage.parameters.userInput}" />
- D. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />
Answer: D
NEW QUESTION # 93
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 cross-object workflow field updates to be made on the Account.
- B. Changes are being made to the Account during an unrelated parallel save operation.
- C. Changes to Opportunities are causing roll-up summary fields to update on the Account.
- D. Changes are being made to the Account during Criteria Based Sharing evaluation.
Answer: A,C
NEW QUESTION # 94
Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products?
Choose 2 answers
- A. Flow Builder
- B. Workflow Rule
- C. Approval Process
- D. Process Builder
Answer: A
NEW QUESTION # 95
......
TVB-450 Dumps To Pass Salesforce Exam in 24 Hours - BraindumpsPass: https://www.braindumpspass.com/Salesforce/TVB-450-practice-exam-dumps.html
Buy Latest TVB-450 Exam Q&A PDF - One Year Free Update: https://drive.google.com/open?id=11CxXSTz1gN0yv_ulp1XwcunBPsnhc8Em