
[Apr-2023] TVB-450 Exam Questions and Valid TVB-450 Dumps PDF
TVB-450 Brain Dump: A Study Guide with Tips & Tricks for passing Exam
NEW QUESTION # 59
A developer needs to confirm that an Account trigger is working correctly without changing the organization's dat a. What would the developer do to test the Account trigger?
- A. Use Deply from the Force.com IDE to deploy an 'insert Account' Apex class.
- B. Use the Test menu on the developer Console to run all test classes for the account trigger.
- C. Use the New button on the Salesforce Accounts Tab to create a new Account record.
- D. Use the Open Execute Anonymous feature on the Developer Console to run an 'insert Account' DML statement.
Answer: B
NEW QUESTION # 60
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 and populate a custom field on the parent object marked as an External ID.
- C. Create and populate a custom field on the parent object marked as Unique
- D. Create a custom field on the child object of type External Relationship.
Answer: D
NEW QUESTION # 61
A custom object Trainer_c has a lookup field to another custom object Gym___c.
Which SOQL query will get the record for the Viridian City gym and it's trainers?
- A. SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'
- B. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'
- C. SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'
- D. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'
Answer: B
NEW QUESTION # 62
Which code displays the content of Visualforce page as PDF?
- A. <apex:page readeras'' application/pdf''>
- B. <apex:page renderAs="pdf">
- C. <apex:page contentype '' application/pdf'')
- D. <apex:page readerAs= ''application/pdf''>
Answer: B
NEW QUESTION # 63
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 use a custom event to pass the data to the child component,
- C. The parent component can invoke a method in the child component
- D. The parent component can use the Apex controller class to send data to the child component.
Answer: A,B
NEW QUESTION # 64
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.
At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
- A. An outbound message
- B. An Apex REST class
- C. An invocable method
- D. An Apex controller
Answer: B
NEW QUESTION # 65
A developer needs to confirm that a Contact trigger works correctly without changing the organization's dat a. what should the developer do to test the Contact trigger?
- A. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement
- B. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
- C. Use the Test menu on the Developer Console to run all test classes for the Contact trigger
- D. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
Answer: C
NEW QUESTION # 66
A developer writes a single trigger on the Account object on the after insert and after update events. A workflow rule modifies a field every time an Account is created or updated.
How many times will the trigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION # 67
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: public class customCtrlr{ private Account theAccount; public String actType; public customCtrlr() { theAccount = [SELECT Id, Type FROM Account WHERE Id = :apexPages.currentPage().getParameters().get('id')]; actType = theAccount.Type; } } Visualforce page snippet: The Account Type is {!actType} The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is property referenced on the Visualforce page, what should the developer do to correct the problem?
- A. Change theAccount attribute to public.
- B. Convert theAccount.Type to a String.
- C. Add with sharing to the custom controller.
- D. Add a getter method for the actType attribute.
Answer: D
Explanation:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm
NEW QUESTION # 68
What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components?
Choose 3 answers
- A. Loading externally hosted scripts
- B. Loading files from Documents
- C. Specifying loading order
- D. Loading scripts In parallel
- E. One-time loading for duplicate scripts
Answer: C,D,E
NEW QUESTION # 69
What is the order of operations when a record is saved in Salesforce?
- A. Workflow, process flows, triggers, commit
- B. Process flows, triggers, workflow, commit
- C. Workflow, triggers, process flows, commit
- D. Triggers, workflow, process flows, commit
Answer: D
NEW QUESTION # 70
Which two statements are true about Getter and Setter methods as they relate to Visualforce?
- A. There is no guarantee for the order in which Getter methods are called.
- B. A corresponding Setter method is required for each Getter method.
- C. Getter methods pass values from a controller to a page.
- D. Setter methods always have to be declared global.
Answer: B,C
NEW QUESTION # 71
How many accounts will be inserted by the following block ofcode? for(Integer i = 0 ; i < 500; i++) { Account a = new Account(Name='New Account ' + i); insert a; }
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
NEW QUESTION # 72
A developer creates a custom exception as shown below:
What are two ways the developer can fire the exception in Apex? Choose 2 answers
- A. Throw new parityException ( );
- B. Throw new ParityException (parity does not match);
- C. New ParityException( );
- D. New ParityException (parity does not match);
Answer: A,B
NEW QUESTION # 73
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers
- A. Use the @Readonly annotation and the with sharing keyword on the class.
- B. Use a regular expression on the parameter to remove special characters.
- C. Use variable binding and replace the dynamic query with a static SOQL.
- D. Use the escapeSingleQuote method to sanitize the parameter before its use.
Answer: C,D
NEW QUESTION # 74
......
TVB-450 Exam Questions: Free PDF Download Recently Updated Questions: https://www.fast2test.com/TVB-450-premium-file.html