Which action can a developer perform in a before update trigger? (Choose 2)
Reveal answer details Close answer details
Correct answersA, B
Salesforce · DEX-450
Preview real exam questions, verified answers and available explanations before choosing a study plan.
|
Multiple choice
Which action can a developer perform in a before update trigger? (Choose 2) Reveal answer details Close answer detailsCorrect answersA, B
Multiple choice
An org has different Apex Classes that provide Account -related functionality.After a new validation rule is added to the object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?Choose 2 answers: Reveal answer details Close answer detailsCorrect answersA, B
Single choice
developer created this Apex trigger that calls MyClass .myStaticMethod: trigger myTrigger on Contact What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist? Reveal answer details Close answer detailsCorrect answerA
Single choice
In which order does Salesforce execute events upon saving a record? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers Reveal answer details Close answer detailsCorrect answersA, C
Single choice
In the code below, which type does String inherit from? String s = 'Hello World'; Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class? Reveal answer details Close answer detailsCorrect answerA
Single choice
Manage package can be created in which type of org? Reveal answer details Close answer detailsCorrect answerC
Single choice
A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. Reveal answer details Close answer detailsCorrect answerA
Single choice
Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions() ); Reveal answer details Close answer detailsCorrect answerA
Multiple choice
What is a capability of formula fields? (Choose 3) Reveal answer details Close answer detailsCorrect answersA, D, E
Single choice
When creating a record with a Quick Action, what is the easiest way to post a feed item? Reveal answer details Close answer detailsCorrect answerA
Single choice
A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer needs to create records for the object Property__c. The developer creates the following code handling } Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
Which resource can be included in a Lightning Component bundle?Choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Single choice
A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers Reveal answer details Close answer detailsCorrect answersB, C
Multiple choice
What features are available when writing apex test classes?(Choose 2 Answers) Reveal answer details Close answer detailsCorrect answersC, E
Single choice
Which one do you like? What should a developer consider for an environment that has over 10,000 Case records? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or update. The field update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account? Reveal answer details Close answer detailsCorrect answerA
Single choice
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the apex class, Bodyfat, and its method, calculateBodyfat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizer outside the ISV's package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
Which two are true regarding a Dyno? Choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Single choice
A developer has the following code: try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' NullPointer Exception ');} What message will be logged? Reveal answer details Close answer detailsCorrect answerB
Single choice
How many level of child records can be returned in a single SOQL query from one parent object? Reveal answer details Close answer detailsCorrect answerA
Single choice
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? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which set of roll-up types are available when creating a roll-up summary field? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2) Reveal answer details Close answer detailsCorrect answersA, B
Multiple choice
Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers Reveal answer details Close answer detailsCorrect answersB, C
Single choice
A developer runs the following anonymous code block in a Salesforce org with 100 accounts List acc= What is the debug output? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Single choice
In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign. Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer must create a Lightning component that allows user to input Contact record information to create a Contact record, including a Salary__c custom field. What should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c? Reveal answer details Close answer detailsCorrect answerA
Single choice
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 What is the value of acctscore after this code executes? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which Apex collection is used to ensure that all values are unique? Reveal answer details Close answer detailsCorrect answerA
Single choice
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
Which three statements are true regarding the @istest annotation? Choose 3 answers Reveal answer details Close answer detailsCorrect answersB, D, E
Single choice
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class? Reveal answer details Close answer detailsCorrect answerC
Single choice
What is a correct pattern to follow when programming in Apex on a Multi-tenant platform? Reveal answer details Close answer detailsCorrect answerC
Single choice
Given the code block: Integer x; Which value will the system debug statement display? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers Reveal answer details Close answer detailsCorrect answersA, B
Single choice
A developer has the following code block: public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer needs to avoid potential system problems that can arise in a multi-tenant architecture. Which requirement helps prevent poorty written applications from being deployed to a production environment? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
Which resource can be included in a Lightning Component bundle? Choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Single choice
Why would a developer use Test. Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer needs to find information about @future methods that were invoked. Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses What should the developer do to accomplish this? Reveal answer details Close answer detailsCorrect answerA
Single choice
How can a developer get all of the available record types for the current user on the case object? Reveal answer details Close answer detailsCorrect answerD
Single choice
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; x+ {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}catch (Exception How many accounts are in the org after this code is run? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer created a helper class with a method that can be called from Visualforce pages, web services, triggers, and of even anonymous code. When the method is called from a trigger, the developer needs to execute logic that should not be executed If the method Is called from anywhere else. How can the developer determine if the code Is executed in a trigger context? Reveal answer details Close answer detailsCorrect answerC
Single choice
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex? Reveal answer details Close answer detailsCorrect answerC
Single choice
A company that uses a Custom object to track candidates would like to send candidate information automatically to a third -party human resource system when a candidate is hired. What can a developer do to accomplish this task? Reveal answer details Close answer detailsCorrect answerD
Single choice
Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites? Reveal answer details Close answer detailsCorrect answerA
Single choice
Which collection type provides unique key/value pairings of data? Reveal answer details Close answer detailsCorrect answerA
Single choice
In the code below, what type does Boolean inherit from? Boolean b= true; Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer needs to confirm that a Contact trigger works correctly without changing the organization's data. Reveal answer details Close answer detailsCorrect answerD
Multiple choice
A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers Reveal answer details Close answer detailsCorrect answersA, C, E
Single choice
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse? Reveal answer details Close answer detailsCorrect answerB
Single choice
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order will be imported into Salesforce. Reveal answer details Close answer detailsCorrect answerC
Multiple choice
What is a valid way of loading external JavaScript files into a Visualforce page? (Choose 2) Reveal answer details Close answer detailsCorrect answersA, D
Single choice
When is an Apex Trigger required instead of a Process Builder Process? Reveal answer details Close answer detailsCorrect answerD
Single choice
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code? ![]() Reveal answer details Close answer detailsCorrect answerC
Single choice
Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which statement is true about developing in a multi-tenant environment? Reveal answer details Close answer detailsCorrect answerA |