A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? (There are three correct answers.)
A. ApexPages.addErrorMessage()
B. A custom exception
C. .addError()
D. Database.handleException()
E. A try/catch construct
An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c.When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?
A. By changing Application_c.Status_c into a roll -up summary field.
B. By changing Application_c.Status_c into a formula field.
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
A. A visualforce page that calculates the total number of hours for a timecard and displays it on the page.
B. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field.
C. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.
D. A Process Builder process that updates a field on the timecard entry is created.
What should a developer use to implement an automate approval process submission for case?
A. Process builder.
B. An assignment rules.
C. A workflow rules.
D. Scheduled apex.
The account object has a custom percent field, rating, defined with a length of 2 with 0 decimal places. An account record has the value of 50% in its rating field and is processed in the apex code below after being retrieved from the database with SOQL public void processaccount(){ decimal acctscore = acc.rating__c * 100; }
What is the value of acctscore after this code executes?
A. 5
B. 50
C. 500
D. 5000
On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on the URL?
A. Use the constructor method for the controller.
B. Use the $Action.View method in the Visualforce page.
C. Create a new PageReference object with the Id.
D. Use the tag in the Visualforce page.
How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)
A. By using a helper class that can be invoked from multiple triggers
B. By using Maps to hold data from query results
C. By using the Database class to handle DML transactions
D. By performing DML transactions on a list of sObjects.
In Lightning component framework, which resource can be used to fire events? Choose 2 answers.
A. Third-party Javascript code
B. Javascript controller actions
C. Visualforce controller actions
D. Third-party web service code
What are two correct examples of the model in the salesforce MVC architecture? Choose 2 answers.
A. Custom field on the custom wizard_c object
B. Standard lightning component
C. Workflow rule on the contact object
D. Standard account lookup on the contract object
What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?
A. Limits, startTest, stopTest
B. Test.getDmlStatements()
C. @TestSetup.
D. @TestVisible
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DEX-450 exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.