Salesforce Platform Developer I

Elapsed Time: 00:00:00 -- 0/0 (0.00%)

1. A company's engineering department is conducting a month-long test on the scalability of an inhouse- developed software that requires a cluster of 100 or more servers. Which of the following models is the best to use?







2. What are three characteristics of change set deployments?
Choose 3 answers








3. Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation. What would be the best solution for this requirement?







4. Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?







5. A developer identifies the following triggers on the Expense_c object:
--> deleteExpense,
--> applyDefaultToExpense,
--> validateExpenseUpdate
The triggers process before delete, before insert, and before update events respectively. Which two techniques should the developer implement to ensure trigger best practices are followed?







6. Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component?
Choose 3 answers








7. Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?







8. Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support_c.
Users should be able to associate multiple Engineering_Support__c records to a single Opportunity record.
Additionally, aggregate information about the Engineering_Support__c records should be shown on the Opportunity record.
Which relationship field should be implemented to support these requirements?







9. Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. Which Visualforce feature supports this requirement?







10. Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.
What is the best practice to get the sum of all Order Line item totals on the Order record?







11. A developer writes a trigger on the Account object on the before update event that increments a count field. A record triggered flow also increments the count field every time that an Account is created or updated. 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?







12. A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?







13. A developer created these three Rollup Summary fields in the custom object, Project__c:
--> Total_Timesheets__c
--> Total_Approved_Timesheets__c
--> Total_Rejected_Timesheet__c
The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to implement the business requirement in order to minimize maintenance overhead?







14. A software company uses the following objects and relationships:
--> * Case: to handle customer support issues
--> * Defect__c: a custom object to represent known issues with the company's software
--> * Case_Defect__c a junction object between Case and Defect__c to represent that a defect is a cause of a customer issue Case and Defect__c have Private organization-wide defaults.
What should be done to share a specific Case_Defect__c record with a user?







15. A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?







16. Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?







17. A developer needs to confirm that a Contact trigger works correctly without changing the organization's data. What should the developer do to test the Contact trigger?







18. An org has an existing flow that edits an Opportunity with an Update Records element. A developer must update the flow to also create a Contact and store the created Contact's ID on the Opportunity. Which update must the developer make in the flow?







19. If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?
Choose 2 answers







20. Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts. The component should be able to validate the user input before saving the information to the database. What is the best technology to create this component?







21. A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth exceeded'. What could be the possible causes?







22. Which three data types can a SOQL query return?
Choose 3 answers








23. Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name. What is the best solution to assign the case to the appropriate support representative?







24. A developer needs to prevent the creation of Request_c records when certain conditions exist in the system. A RequestLogic class exists that checks the conditions. What is the correct implementation?







25. Which two statements are true about using the @testSetup annotation in an Apex test class?
Choose 2 answers







26. For which three items can a trace flag be configured? Choose 3 answers








27. A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?







28. The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:
@AuraEnabled
public void static updateLeads(){
	for(Lead thisLead : [SELECT Origin__c FROM Lead]){
		thisLead.LeadSource = thisLead.Origin;
		update thisLead;
	}
}

Which governor limit will likely be exceeded within the Apex transaction?







29. Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?
A.
<uses-application access="GLOBAL" extends="inputoutput">
	<uses-dependency resource="circumstraint"/>
</uses-application>
B.
<aura:component access="GLOBAL" extends="ing:outApp">
    <aura:dependency resource="c:accountlist"/>
</aura:component>
C.
<aura:component access="GLOBAL">
   <aura:dependency resource="c:accountlist"/>
</aura:component>
D.
<aura:application access="GLOBAL">
    <aura:dependency resource="c:accountList"/>
</aura:application>







30. A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?







31. 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?







32. Which action may cause triggers to fire?







33. Refer to the following Apex code:
Integer x = 0;
do {
    x = 1;
    x++;
} while (x < 1);
System.debug(x);

What is the value of x when it is written to the debug log?






34. A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?







35. Universal Containers has a Visualforce page that displays a table of every Container__c record being rented by a customer. The page is exceeding the View State limit because some customers rent over 10,000 containers. What should a developer change about the Visualforce page to reduce page load errors and improve performance?







36. A Salesforce Administrator used Flow Builder to create a flow named ‘’accountOnboarding’’. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component?







37. An Apex method, getAccounts, that returns a list of Accounts given a searchTerm, is available for Lightning Web Components to use. What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
A.
@AuraEnabled(getAccounts, 'searchTerm')
accountList;
B.
@wire(getAccounts, { searchTerm: '$searchTerm' })
accountList;
C.
@AuraEnabled(getAccounts, { searchTerm: 'searchTerm' })
accountList;
D.
@wire(getAccounts, { searchTerm: '$searchTerm' })
accountList;







38. Universal Container uses Service Cloud with a custom field, stage_c, on the Case object. Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to ‘Waiting on customer’. The Administrator wants to ensure the solution used is bulk safe. Which two automation tools should a developer recommend to meet these business requirements?
Choose 2 answers







39. 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?







40. Which two sfdx commands can be used to add testing data to a Developer sandbox?







41. A company has a custom object, Sales_Help_Request__c, that has a Lookup relationship to Opportunity. The Sales_Help_Request__c has a number field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help_Request__c. A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity. What should the developer use to implement this?







42. A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:
public class SilverLaptop {
    //code implementation
}

How can a developer use the Laptop Interface within the Silverlaptop class?







43. What are two ways for a developer to execute tests in an org?







44. The following automations already exist on the Account object;
• A workflow rule that updates a field when a certain criteria is met
• A custom validation on a field
• A Flow that updates related contact records
A developer created a trigger on the Account object. What should the developer consider while testing the trigger code?







45. When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?







46. 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







47. Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?







48. A developer wants to mark each Account in a List as either or Inactive based on the LastModified field value being more than 90 days. Which Apex technique should the developer use?







49. 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







50. 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?







51. 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?







52. A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce. Which two actions will prevent the duplicate order records from being created in Salesforce? Choose 2 answers







53. As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be used to meet this business requirement?







54. Which two are phases in the Aura application event propagation framework? Choose 2 answers







55. A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers







56. In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?







57. 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 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







58. A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?







59. When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values in a postalCodeToTimezone_c custom object. What should be built to implement this feature?







60. A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class. Which code segment shows the correct declaration of the class and methods?
A
global class WebServiceClass {
    private Boolean helperMethod() { /* implementation ... */ }
    global String updateRecords() { /* implementation ... */ }
}
B
webservice class WebServiceClass {
    private Boolean helperMethod() { /* implementation ... */ }
    global static String updateRecords() { /* implementation ... */ }
}
C
global class WebServiceClass {
    private Boolean helperMethod() { /* implementation ... */ }
    webservice static String updateRecords() { /* implementation ... */ }
}
D
webservice class WebserviceClass {
    private Boolean helperMethod() { /* implementation ... */ }
    webservice static String updateRecords() { /* implementation ... */ }
}







61. When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers







62. What should a developer do to check the code coverage of a class after running all tests?







63. A developer has the following requirements:
• Calculate the total amount on an Order.
• Calculate the line amount for each Line Item based on quantity selected and price.
• Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements on its own?







64. A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?







65. The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ‘Technology’ while also retrieving the contact’s Job_Application__c records. Based on the object’s relationships, what is the most efficient statement to retrieve the list of contacts?







66. Which scenario is valid for execution by unit tests?







67. 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?







68. A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers








69. Where are two locations a developer can look to find information about the status of asynchronous or future methods?
Choose 2 answers







70. Which aspect of Apex programming is limited due to multitenancy?







71. Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers








72. A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data. Which security consideration should the developer be aware of?







73. What are two use cases for executing Anonymous Apex code?
Choose 2 answers







74. The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
• Rollup summary fields
• Custom validation rules
• Duplicate rules
A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code?
Choose 2 answers







75. What should be used to create scratch orgs?







76. Which two are best practices when it comes to component and application event handling?
(Choose two.)







77. What should a developer use to script the deployment and unit test execution as part of continuous integration?







78. A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?







79. Which action causes a before trigger to fire by default for Accounts?







80. How does the Lightning Component framework help developers implement solutions faster?







81. A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?







82. A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?







83. Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the 'Technology' industry:
for(Account thisAccount : [Select Id, Industry FROM Account LIMIT 259]) {
    if(thisAccount.Industry == 'Technology'){
    	thisAccount.Is_Tech__c = true;
    }
    update thisAccount;
}

which three statements are accurate about debug logs?
Choose 3 answers








84. Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?







85. A development team wants to use a deployment script to automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers







86. A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?







87. 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. @AuraEnabled(Cacheable=true)
B. @AuraEnabled
C. @RemoteAction
D. @RemoteAction(Cacheable=true)







88. How should a developer write unit tests for a private method in an Apex class?







89. 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







90. What does the Lightning Component framework provide to developers?







91. Which two events need to happen when deploying to a production org? Choose 2 answers







92. A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects. When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?







93. A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?







94. 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?







95. 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?







96. How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?







97. Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field. Which consideration should the developer be aware of when deciding between SOQL and SOSL? Choose 2 answers







98. A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page. How should this be accomplished?







99. A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?







100. A develop completed modification to a customized feature that is comprised of two elements: Apex trigger Trigger handler Apex class What are two factors that the developer must take into account to properly deploy the modification to the production environment?







101. Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology industry:
for(Account thisAccount : [Select Id, Industry FROM Account LIMIT 150]){
    if(thisAccount.Industry == 'Technology'){
    	thisAccount.is_Tech__c = true;
    }
    update thisAccount;
}

When the code execution, which two events occur as a result of the Apex transaction? Choose 2 answers







102. 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?







103. A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?







104. The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when converted. What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?







105. Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.
for(account a: Trigger.new){
    if(a.AnnualRevenue > 1000000){
		List<Opportunity> oppList = [SELECT Id FROM Opportunity WHERE accountId = :a.Id];
		if(oppList.size() == 0){
			Opportunity oppty = new Opportunity(Name = a.name, StageName = 'Prospecting',
			loseDate = system.today().addDays(30));
			insert oppty;
		}
	}
}

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors. Which two actions should the developer take to fix the code segment shown above?
Choose 2 answers







106. 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 customizations outside the ISV’s package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?







107. What are three ways for 2 developer to execute tests in an org? Choose 3 answers








108. Which three resources in an Azure Component can contain JavaScript functions?








109. A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?







110. Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?







111. A developer must create a lightning component that allows users 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 levelpermissions on salary__c?







112. A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition. As part of a data enrichment process Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system. Which technique should the developer implement to streamline the data upload?







113. In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce?
Choose 2 answers







114. Which three operations affect the number of times a trigger can fire?
Choose 3 answers








115. Consider the following code snippet:
public static List<Lead> obtainAllFields(Set<Id> leadIds){
    List<Lead> result = new List();
    for(id leadId : leadIds){
		result.add([SELECT FIELDS(ALL) FROM Lead WHERE Id = :leadId]);
    }
    return result;
}

Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful execution of the method?







116. A developer wants to invoke on outbound message when a record meets a specific criteria. Which three features satisfy this use case? Choose 3 answer








117. Which statement is true regarding execution order when triggers are associated to the same object and event?







118. An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price. What is the correct implementation?







119. What can be used to override the Account's standard Edit button for Lightning Experience?







120. Which two settings must be defined in order to update a record of a junction object? Choose 2 answers







121. A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?







122. Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers








123. Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?







124. Which salesforce org has a complete duplicate copy of the production org including data and configuration?







125. A developer created a Lightning web component called statusComponent to be inserted into the Account record page. Which two things should the developer do to make the component available?







126. Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer add to create the most efficient model that supports the business need?







127. The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?







128. What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers








129. 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)







130. A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality?







131. A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations. In this implementation scenario, which two options are of the Controller according to the MVC architecture?
Choose 2 answers







132. A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing. What is the first step towards troubleshooting the issue?







133. What are two benefits of using declarative customizations over code? Choose 2 answer







134. Given the following Anonymous block:
List<Case> casesToUpdate = new List<Case>();
for(Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]) {
    thisCase.Status = 'Working';
    casesToUpdate.add(thisCase);
}
try{
    Database.update(casesToUpdate,false);
}catch(Exception e){
    System.debug(e.getMessage());
}

What should a developer consider for an environment that has over 10,000 Case records?







135. A developer is tasked with building a custom Lightning web component to collect Contact information. The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users. What should the developer use in their Lightning Web Component to support the security requirements?







136. Which annotation exposes an Apex class as a RESTful web service?







137. Which three code lines are required to create a Lightning component on a Visualforce page?
Choose 3 answers








138. What can used to delete components from production?







139. What are two considerations for deploying from a sandbox to production?
Choose 2 answers







140. A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases.Which approach can efficiently generate the required data for each unit test?







141. A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?







142. Which of the following statements about the IF-ELSE statement are true?
Choose 2 answers.







143. Which of the following is a valid Apex best practice regarding SOQL queries?







144. What is a valid use case for using a controller extension in a Visualforce page?







145. Cosmic Containers requires that when saving an opportunity record, a check is performed to determine if the opportunity amount is the highest value amongst all the opportunities created in the current year. If so, a checkbox on the opportunity record should be marked, and an email should be sent to the record owner's manager. Which Salesforce feature should be recommended to handle this requirement?







146. Which of the files below can the $ContentAsset global value provider reference?
Choose 3 answers.








147. Cosmic Solutions is using Salesforce Connect to allow Salesforce users of the company to view orders that exist in an external order management system. Each order record has a unique record identifier in the external system which is visible in Salesforce via Salesforce Connect. Salesforce is used to create shipment records. Since each order can be associated with one or more shipments, the sales director of the company would like to allow users to choose an order while creating a shipment record in Salesforce. Which of the following should a developer define on the 'Shipment__c' object for this use case?







148. Bright Starts company has created a lookup relationship between the Lead object and a child 'Sub Lead' custom object for their lead verification process. Both objects have a 'Verified' custom checkbox field that is used for marking a lead or a sub lead as verified or not. In addition, a process is used to automatically mark a parent lead as verified if the 'Verified' field of any of its existing sub leads is updated to true. How can this process be tested efficiently using Apex tests?
Choose 3 answers.








149. The solutions architect of a company has rolled out Salesforce DX for the developer team to implement in their application development process. Which of the following are used in Salesforce DX?
Choose 3 answers.








150. An Opportunity needs to have an amount rolled up from a custom object that is not in a masterdetail relationship. How can this be achieved?







151. 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?







152. What are two ways a developer can get the status of an enquered job for a class that queueable interface?
Choose 2 answers







153. Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?







154. A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders. What should a developer do to allow their code to move some existing Orderltem records to a new Order record?







155. How can a developer retrieve all Opportunity record type labels to populate a list collection?
Choose 2 answers







156. A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page?







157. A developer is asked to create a custom visualforce page that will be used as a dash-board component. Which three are valid controller options for this page?
Choose 3 answers








158. 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?







159. Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers







160. A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?







161. A company has a custom object named Region. Each account in salesforce can only be related to one region at a time, but this relationship is optional. Which type of relantionship should a developer use to relate an account to a region?







162. Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?







163. 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 ex) {
		System.debug(ex);
	}
}
insert new Account (Name='myAccount'); 
How many accounts are in the org after this code is run?







164. A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Which three attributes need to be defined with values in the tag to accomplish this? (Choose three.)








165. 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?







166. When is an Apex Trigger required instead of a Process Builder Process?







167. 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?







168. A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?







169. Which approach should a developer use to add pagination to a Visualforce page?







170. A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? (Choose two.)







171. Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?







172. A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page. What should the developer do to deploy to production?







173. What is a benefit of using an after insert trigger over using a before insert trigger?







174. A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master- Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?







175. The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job. What should a developer do to meet these requirements?







176. Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)







177. Which set of roll-up types are available when creating a roll-up summary field?







178. Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)








179. What are two benefits of the Lightning Component framework? (Choose two.)







180. A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?







181. What should a developer use to implement an automatic Approval Process submission for Cases?







182. When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?







183. Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?







184. Which two platform features align to the Controller portion of MVC architecture? (Choose two.)







185. A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for testing?
(Choose two.)








186. A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality. What should the developer use to satisfy this requirement in the most efficient manner?







187. A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? (Choose two.)







188. Which approach should be used to provide test data for a test class?







189. Which approach should a developer take to automatically add a `Maintenance Plan` to each Opportunity that includes an `Annual Subscription` when an opportunity is closed?







190. What is the requirement for a class to be used as a custom Visualforce controller?







191. A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?







192. Which three options can be accomplished with formula fields?
(Choose three.)








193. What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component?
(Choose three.)








194. A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name?
(Choose two.)







195. In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?







196. Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)







197. How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?







198. An org has a single account named `˜NoContacts' that has no related contacts. Given the query:
List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`˜NoContacts'];

What is the result of running this Apex?







199. Which statement results in an Apex compiler error?







200. 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?







201. Which two Apex data types can be used to reference a Salesforce record ID dynamically?
(Choose two.)







202. A developer is working on a project to import data from an external system into Salesforce. The data contains sensitive information that should not be visible to all users in Salesforce. What should the developer do to ensure that the data is secure?







203. A developer creates a custom exception as shown below: public class ParityException extends Exception { } What are two ways the developer can fire the exception in Apex?







204. Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?







205. Which of the following resources can be accessed from a Lightning Web component?








206. A Lightning Web component has been created, which embeds an analytics dashboard. The sales team would like to use this component on their Org home page. Which “target” property should be added to the configuration file to make it available for the home page?







207. A Lightning Web component uses a lightning message channel named “dataChannel” to send data to other components. This component will publish the data to the channel so that other components can subscribe to this channel. Which is the correct way to import the channel named “dataChannel” on the client-side controller js file?







208. Which tag allows developers to reuse the markup of an existing Visualforce page in another Visualforce page?







209. Which layout is selected by default when creating a flow in the Flow Builder?







210. A developer has enabled the Einstein search feature for advanced search. However, the users cannot view some required fields in search results. What should be configured to fix this issue?







211. How do you use the Lightning Data Service to read and write data to Salesforce?







212. How do you use Apex to create custom validation rules?







213. How do you use the SOQL query language to retrieve data from Salesforce?







214. How would you go about creating a many-to-many relationship between objects in Salesforce?







215. Which statement accurately describes a best practice for test classes in Apex?







216. What would be the appropriate relationship to use when designing a model where a Custom_Object__c needs to relate to multiple Parent_Object__c records?







217. When creating a Visualforce page that requires a custom controller, which scenario necessitates the use of a custom controller over a standard controller with extensions?







218. How can a developer optimize SOQL queries to improve performance in Salesforce?







219. Which tool can be used to debug and troubleshoot Apex code in Salesforce?







220. What is the purpose of the Database.SaveResult class in Salesforce?







221. When is it appropriate to use an InvocableMethod annotation in Apex?







222. Which governor limit is most commonly hit during bulk data operations in Salesforce?







223. How does the @track decorator in Lightning Web Components (LWC) help developers?







224. What is the difference between Database.insert() and Database.upsert() in Salesforce?







225. A developer can use the debug log to see which three types of information? (Choose three.)








226. In which of the following environments can Developers write code? Choose 2 Answers.







227. Managed Packages can be created in which type of org?







228. How can a developer set up a debug log on a specific user?







229. While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly. Which approach should the developer use to be sure that the Apex class works correctly?







230. A maintenance team processes repairs on Container objects. The Status__c picklist transitions through values such as Received, In‑Progress, Repaired, and Released. When the status changes to Repaired, an external system must be notified automatically. What should the developer implement?







231. Managers at Universal Containers want to ensure that only decommissioned containers can be deleted. A picklist value “Decommissioned” has been added to the Status__c field on the Container__c object. Which tool should the developer use to enforce that only records with a status of Decommissioned can be deleted?







232. Which two characteristics are true for Aura component events? (Choose two.)







233. Which two types of code represent the controller in model-view-controller (MVC) architecture on the Lightning Platform? (Select two answers.)







234. 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. How can a developer achieve this?







235. What is an accurate constructor for a custom controller named MyController?







236. A developer needs to automatically populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which two trigger types should the developer create?







237. According to the order of execution, in which sequence does Salesforce execute these high-level events upon saving a record?







238. How can a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?







239. A workflow rule changes the value of a field on an object. An Apex after update trigger exists for the object. What happens when a user updates a record?







240. The Review__c object has a lookup relationship up to the Job_Application__c object. The Job_Application__c object has a master-detail relationship up to the Position__c object. The relationship field names are based on the auto-populated defaults. What is the recommended way to display field data from the related Review__c records on a Visualforce page for a single Position__c record?







241. What are two capabilities of a StandardSetController?







242. What are two reasons that a developer should use a custom Visualforce page in a Lightning Platform application?







243. A hierarchy custom setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user’s profile and display this on a Visualforce Page?







244. A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which two actions should the developer perform to get the record types and picklist values in the controller?







245. 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 should the developer write the account address verification logic?







246. Which two resources can you include in a Lightning component bundle?







247. What is a benefit of the Lightning Component framework?







248. A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning: “Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required.” What can the developer do to successfully deploy the new Visualforce page and extension?







249. Which is an accurate statement about creating unit tests in Apex?







250. What is the proper process for an Apex unit test?







251. An org has different Apex classes that provide account-related functionality. After a new validation rule is added to the Account object, many of the test methods fail. Which two actions will resolve the failures and reduce the number of code changes needed for future validation rules? (Select two answers.)







252. When working in a sandbox environment, which two things should the developer use to verify the functionality of a new test class before the developer deploys that test class to production? (Select two answers.)







253. Which two types of information does the Checkpoints tab in the Developer Console provide? (Select two answers.)







254. What are two valid source and destination pairs that can send or receive change sets? (Select two answers.)







255. Which two components can you deploy using Metadata API? (Select two answers.)







256. Which two answers are true for a partial sandbox but do not apply to a full sandbox? (Select two answers.)







257. A company wants a recruiting app and data model for job candidates and interviews, with the following requirements:
- Display the total number of interviews on each candidate record.
- Define security on interview records that’s independent from the security on candidate records.
Which two actions should a developer take to achieve this? (Select two answers.)







258. A developer has this trigger that fires after insert and creates a child case whenever a new case is created. Which unexpected behavior happens after the code block executes?
List childCases = new List<Case>();
for (Case parent : Trigger.new) {
	Case child = new Case(ParentId = parent.Id,Subject = parent.Subject);
	childCases.add(child);
}
insert childCases;