Dev II v3
![]() |
![]() |
![]() |
Title of test:![]() Dev II v3 Description: Salesforce Platform Developer II |




New Comment |
---|
NO RECORDS |
A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resolution? Choose 2 answers. A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production. B. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production. C. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production. D. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear. A developer has a test class that creates test data before making a mock call-out, but now receives a you have uncommitted work pending. Please commit or callout before calling out error. What step should be taken to resolve the error?. Ensure the records are inserted before the Test.startTest() statement and the mock callout after the Test.startTest(). Ensure the records are inserted before the Test.startTest() statement and the mock callout occurs within a method annotated with StestSetup. Ensure both the insertion and mock callout occur after the Test.stopTest(). Ensure both the insertion and mock callout occur after the Test.startTest(). Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called candidate as created with organization-wide default set to Private. A lookup on the Candidate object sets an employee as an the viewer user. The record cannot be shared with the current setup. The record can be shared using a sharing rule. The record can be shared an Apex class. The record can be shared using a permission set. A developer creates an application event that has triggered an infinite loop. What may have caused this problem?. The event Is fired from a custom renderer. An event is fired ontouchend" and is unhandled. The event has multiple handlers registered in the project. The event handler calls a trigger. A company's support process dictates that any time a Case is closed with a Status of 'Could not fix', an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case. What is the correct way to automate this using an Apex trigger?. An after update trigger that creates the Engineering Review record and inserts it. A before update trigger that creates the Engineering Review record and inserts it. An after upsert trigger that creates the Engineering Review record and inserts it. A before upsert trigger that creates the Engineering Review record and inserts it. A developer is tasked with creating a Lightning web component that is responsive on various devices. which two components should help accomplish this goal? Choose 2 answers. lightning-layout-item. lightning-layout. lightning-navigation. lightning-input-location. Universal Containers (UC) has an CRP system that stores customer information. When an Account is created in Salesforce, the FRP system's REST endpoint for creating new customers must automatically be called with the Account information, If the call to the ERP system fails, the Account should still be created. Accounts in UC org are only created, one at a time, by users in the customer on-boarding department. What should a developer to make the call to the CRP system's REST endpoint?. REST call from JavaScript. Headless Quick Action. apex Continuation. call a Queueable from a Trigger. A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the scheduled Apex has recently increased to more than 10,000. What should the developer do to eliminate the limit exception error?. Use the @future annotation. Implement the Bathable interface. Use platform events. Implement the Queueable interface. The Account object has a field, Audit_Code_c, that is used to specify what type of auditing the Account needs and a Lookup to User, zudizar_c, that is the assigned auditor. When an Account is initially created, the user specifies the Audit_Code c. Each User in the org has a unique text field, Audit_Code _e, that is used to automatically assign the correct user to the Account’s Auditor_c field. What should be changed to most optimize the code’s efficiency? Choose 2 answers. Add an initial SOQL query to get all distinct audit codes. Build a Map<Id, List<Account>> of audit code to accounts. Build a Map<Id, List<String>>of Account Id to audit codes. Add a WHERE clause to the SOQL query to filter on audit codes. As part of point-to-point integration, a developer must call an external web service which, due to high demand, takes a long time to provide a response. As part of the request, the developer must collect key inputs from the end user before making the callout. Which two elements should the developer use to implement these business requirements? Choose 2 answers. Apex method that returns a Continuation object. Screen flow. Process Builder. Lightning web component. trigger AssignOwnerByRegion on Account ( before insert, before update ) { List<Account> accountList = new List<Account>(); for( Account anAccount : trigger.new ) { Region__c theRegion = [ SELECT Id, Name, Region_Manager__c FROM Region__c - WHERE Name = :anAccount.Region_Name__c ]; anAccount.OwnerId = theRegion.Region_Manager__c; accountList.add( anAccount ); } update accountList; } Consider the above trigger intended to assign the Account to the manager of the Account's region. Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.). Use a Map to cache the results of the Region__c query by Id. Move the Region__c query to outside the loop. Remove the last line updating accountList as it is not needed. Use a Map accountMap instead of List accountList. Refer to the Aura component below: PDII Question 21 A developer receives complaints that the component loads slowly. Which change can the developer implement to make the component perform faster?. Change the type of contactInfo to "Map”. Move the contents of <c:contactInfo> into the component. Add a change event handler for showContactInfo. Change the default for showContactInfo to “False". A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?. Does the screen need to be rendered as a PDF?. Does the screen need to be accessible from the Lightning Experience UI?. Will the screen make use of a JavaScript framework?. Will the screen be accessed via a mobile app?. A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution. How should the developer implement error exception handling in their code to handle this?. Use a Try/Catch statement and handle DML cleanup in the catch statement. Use Database methods to obtain lists of Database.SaveResults. Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement. Use a Try/Catch and use sObject.addError() on any failures. Consider the following code snippet: Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed. What should the developer do to ensure that a partial refresh is made so that only the section identified with opportunityList is re-drawn on the screen?. Enclose the DATA table within the tag. Ensure the action method search returns null. Implement the tag with immediate = true. Implement the reRender attribute on the tag. An org records customer order information in a custom object, ordar__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charges on an order, based on a flat percentage rate associated with the region of the shipping address. What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work? A. B. C. D. Custom object. Custom metadata type. Custom hierarchy setting. Custom list setting. A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed. What should be done to eliminate this issue going forward?. Set the setting type on the custom setting to List. Replace custom settings with custom metadata. Set the setting type on the custom setting to Hierarchy. Replace custom settings with static resources. A developer created a class that implement he Queueable interface, as follows: As part of the deployment process, the developer is asked to create a corresponding test class. Which two actions should the developer take to successfully execute the test class? Choose 2 answers. Implement Test.isRunningtest ( ) to prevent chaining jobs during test execution. Enclose System.enqueueJob (new orderQueueable Job ( }) within Test. starttest and Test, stoptest (). Implement seeAllData-true to ensure the Queueable )ob is able to run in bulk mode. Ensure the running user of the test class has, at least, the View All permission on the Order object. An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records is loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading. Use a List Custom Setting to disable the Trigger for the user who does the data loading. Add the Profile Id of the user who does the data loading to the Trigger so the Trigger won’t fire for this user. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading. Which use case can only be performed by using asynchronous Apex?. Scheduling a batch process to complete in the future. Processing high volumes of records. Updating a record after the completion of an insert. Calling a web service from an Apex trigger. A developer created a Lightning web component that uses a Lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record. Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?. Process Builder. Client-side validation. Apex REST. Custom validation rules. A developer created a Lightning web component that uses a lightning-record-edit-form t collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record. complain that they only see one error message at a time about their input when trying to save a Lead record. What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously? with minimal JavaScript intervention?. Validation rules. External JavaScript library. Try/catch/finally block. Apex trigger. A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating. What should the developer change in the code above for this to happen?. Add the @track decorator to the data variable. Create a new variable to store the result and annotate it with @track. Create a variable to store the result and call refreshApex(). Call refreshApex() on this.data. Consider the queries in the options below and the following Information: * For these queries, assume that there are more than 200,000 Account records. * These records Include soft-deleted records; that is, deleted records that are still in the Recycle Bin. * There are two fields that are marked as External Id on the Account. These fields are customer_Number_c and ERR_Key_ s. Which two queries are optimized for large data volumes? Choose 2 answers. SELECT I4 FROM Account WHERE Name !- NULL. SELECT ID FROM Account WHRE id IN :aListVariable. SELECT 1d FROM Accounts WHERE Name != '° AND Customer_Number_c- "ValueA'. SELECT Id FROM Account WHERE Name != ' 'AND IsDeleted = false. An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?. Call the Apex class method from a testMethod instead of the testSetup method. Verify the user has permissions passing a user into System.runAs(). Use system.assert() in testSetup to verify the values are being returned. Add @testVisible to the method in the class the developer is testing. The Salesforce admin at Cloud Kicks created a custom object called Region__c to store all postal zip codes in the United States and the Cloud Kicks sales region the zip code belongs to. Object Name: Region__c Fields: Zip_Code__c (Text) Region_Name__< (Text) Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code. Which code segment Is the most efficient way to fulfill this request?. A. set<String> zips = new set<String>(); for(Lead 1 : Trigger.new) { if(1.PostalCcode != Null) { zips.add(1.Postalcode); } } List<Region_c> regions = [SELECT zip Code_c, Region_Name__c FROM Region_c WHERE Zip_Ccode_c IN :zips]; Map<String, String> zipMap = new Map<String, String>(); for(Region_ cr :regions) { zipMap.put(r.Zip_Code_c, r.Region_Name_c); } for(Lead 1 : Trigger.new) { if(1.Postalcode != Null) { i.Region_c = zipMap.get(1.PostalCode); } }. 1. A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment. A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error. What should a developer do to fix the problem?. Verify that Test, statement ( ) is not inside a For loop in the test class. Add system.runAs ( ) to the best class to execute the trigger as a user with the correct object permissions. Add seeAllData=true to the test class to work within the sharing model for the production environment. Configure the production environment to enable ''Run All tests as Admin User.''. A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress," or Fulfilled and a lookup field, Contact_c, to Contact. Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?. SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c = fulfilled'). SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled'). SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled'). SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled'. global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter() {} @RemoteAction global static Account getAccount(String accountName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?. Account a = controller.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );. MyRemoter remote = new MyRemoter(); Account a = remote.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );. Account a = MyRemoter.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );. MyRemoter remote = new MyRemoter('TestAccount'); Account a = remote.getAccount (); System.assertEquals( 'TestAccount', a.Name );. A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?. Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method. Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method. Create an after insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method. Create an after insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method. A developer writes a Lightning web component that displays a dropdown list of all custom objects in the org from which a user will select. An Apex method prepares and returns data to the component. What should the developer do to determine which objects to include in the response?. Check the getObiectType() value for ‘Custom’ or ‘Standard’ on the sObject describe result. Import the list of all custom objects from @salesforce/schema. Use the getCustomObjects() method from the Schema class. Check the isCustom() value on the sObject describe result. A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records. The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?. Move the CalloutUtil.makeRestCallout method call below the catch block. Change the CalloutUtil.makeRestCallout to an @future method. Remove the Database.setSavepoint and Database.rollback. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method. An Aura component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets. 2. 2. A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time. There is a new requirement to also display high value opportunities in a Lightning web component. Which two actions should the developer take to meet these business requirements, and also prevent the business logic that obtains the high value opportunities from being repeated in more than one place? Choose 2 answers. Call the trigger from the Lightning web component. Use custom metadata to hold the high value amount. Create a helper class that fetches the high value opportunities,. Leave the business logic code inside the trigger for efficiency. A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list of Reviewer__c records, each with a lookup field to User that is used to indicate that the User will review the Defect__c. What should be used to give the User on the Reviewer__c record read only access to the Defect__c record on the Reviewer__c record?. Apex managed sharing. View All on Defect__c. Lightning web component. Criteria-based sharing. A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is the optimal way to accomplish this?. Use a MassEmailMessage() with an Apex Trigger. Use a Workflow Email Alert. Use an Email Alert with Process Builder. Use a SingleEmailMessage() with an Apex Trigger. @isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: 'Methods defined as TestMethod do not support Web service callouts.' What is the optimal way to fix this?. Add if (!Test.isRunningTest()) around CalloutUtil.sendAccountUpdate. Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate. Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate. Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate. An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters . What is the optimal way to implement these requirements?. write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic. A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?. Ensure queries do not exceed governor limits. Ensure properties are marked as Transient. Ensure properties are marked as private. Ensure profiles have access to the Visualforce page. Universal Containers ne=ds to integrate with several external systems. The process Is Initiated when a record Is created in Salesforce, The remote systems do not require Salesforce to wait for a response before continuing. What is the recommended best solution to accomplish this?. PushTopic event. outbound message. Trigger with HTTP callout. Platform event. A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order), before the final execution of the process. During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is called, a runtime error occurs. Why does the developer receive a runtime error?. The developer should have called SP2 before calling SP3. The developer has too many DML statements between the savepoints. SP3 became invalid when SP1 was rolled back. The developer used too many savepoints in one trigger session. There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?. Use the transient keyword in the Apex code when querying the Account records. Use JavaScript remoting to query the accounts. Use the standard Account List controller and implement pagination. Upload a third-party data table library as a static resource. what should be added to the setup in the location indicated. 12. 2. A developer created the code to perform an HTP GET request to an external system. When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint Which recommended approach should the developer implement to the callout exception?. create a remote site setting configuration that includes the endpoint. Annotate the getERPCatalogContents method With @Future (Callout-true). use the setHeader () method to specify Basic Authentication. Change the access modifier for ERPCatelog from Public to global. Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process, Universal Containers wants to notify an external system in the event that an unhandled exception occurs. What is the appropriate publish/subscribe logic to meet this requirement?. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system. Publish the error event using the addError() method and have the external system subscribe to the event using CometD. Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD. No publishing is necessary. Have the external system subscribe to the BatchApexErrorEvent. A developer has working business logic code, but sees the following error in the test class: You have uncommitted work pending. Please commit or rollback before calling out. What is a possible solution?. Set seeAIIData to "true" at the top of the test class, since the code does not fail in practice. Call support for help with the target endpoint, as it is likely an external code error. Rewrite the business logic and test classes with @TestVisible set on the callout. Use test.IsRunningTest() before making the callout to bypass it in test execution. A company has the Lightning Component above that allows users to click a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected. Which three techniques can a developer use to debug the JavaScript? (Choose three.). Enable Debug Mode for Lightning components for the user. Use console.log() messages in the JavaScript. Use Developer Console to view debug log. Use the browser’s dev tools to debug the JavaScript. Use Developer Console to view checkpoints. Which technique can run logic when an Aura Component is loaded?. Use the connectedCallback(0 method. Use the standard doinit function in the controller. Use an aura:handler 'init'' event to call a function. Call $A. enqueueAction passing in the method to call. Refer to the following code snippets: MyOpportunities.js import { LightningElement, api, wire } from 'lwo'; import { getOpportunities } from'@salesforce/apex/OpportunityController.findMyOpportunities'; export default class MyOpportunities extends LightningElement { @api userId; @wire (getOpportunities, {oppOwner: '$SuserId'}) opportunities; OpportunityController.cls public with sharing class OpportunityController { @AuraEnabled public static List<Opportunity> findMyOpportunities (Id oppowner) { return [SELECT Id, Name, Amount FROM Opportunity WHERE OwnerId = oppowner WITH SECURITY ENFORCED LIMIT 10]; } } A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user. When the component is rendered, the following message is displayed: "Error retrieving data". Which modification should be implemented to the Apex class to overcome the issue?. Use the Continuation true attribute in the Apex method. Edit the code to use the without sharing keyword in the Apex class. Ensure the OWD for the Opportunity object is Public. Use the Cacheable=true attribute in the Apex method. Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox suddenly left the company. The users had fully tested all of the changes in the sandbox and signed off on them. Unfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment. What should the developer do to identify the configuration changes that need to be moved into production?. Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata. Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost. Leverage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set. In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set. A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes. What should the developer do to implement the communication?. Publish an event on an event channel. Fire an application event. Publish a message on a message channel. Fire a custom component event. A developer wrote a class named AccountHistoryManager that relies on field history tracking. The class has a static method called getAccountHistory that takes in an Account as a parameter and returns a list of associated AccountHistory object records. The following test fails: What should be done to make this test pass?. The test method should be deleted since this code cannot be tested. Create AccountHistory records manually in the test setup and write a query to get them. Use Test.isRunningTest() in getAccountHistory() to conditionally return fake AccountHistory records. Use @isTest (SeeAllData=true) to see historical data from the org and query for AccountHistory records. Consider the controller code above that is called from a Lightning component and returns data wrapped in a class. Consider the controller code above that is called from a Lightning component and returns data wrapped in a class. The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData(). What is wrong?. Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component. The member's Name and Option should not have getter and setter. The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled too. The member's Name and Option should not be declared public. In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale. What is the most effective approach to ensure values displayed respect the users locale settings?. Use a wrapper class to format the values retrieved via SOQL. Use the FOR VIEW clause in the SOQL Query. Use the FORMAT() function in the SOQL query. Use REGEX expressions to format the values retrieved via SOQL. A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers. What should the developer use to store and package the custom configuration settings for the app?. Custom Metadata. Custom Settings. Custom Objects. Process Builder. Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site. What should the developer use to ensure the site is multilingual?. Use Custom Metadata to translate custom picklist values. Use Custom Objects to translate custom picklist values. Use Custom Settings to ensure custom messages are translated properly. Use Custom Labels to ensure custom messages are translated property. A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests. What should the developer do to speed up test execution?. Define a method that creates test data and annotate with @createData. Ensure proper usage of test data factory In all test methods. Define a method that creates test data and annotate with @testSetup. Reduce the amount of test methods in the class. Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records. A Custom List View on the junction object with filters that will show the proper records based on owner. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships. A Custom Report Type and a report Lightning Component on the Community Home Page. Consider the following code snippet: The Apex method is executed in an environment with a large data volume count for Accounts, and the query is performing poorly. Which technique should the developer implement to ensure the query performs optimally, while preserving the entire result set?. Annotate the method with the @Future annotation. Create a formula field to combine the CreatedDate and RecordType value, then filter based on the formula. Break down the query into two individual queries and join the two result sets. Use the Database.queryLocator method to retrieve the accounts. Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? Choose 3 answers. Import the static resource. Call loadscript. Append the static resource to the DOM. Reference the static resource in a <script> tag. Import a method from the platformftesourceLoader,. Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?. The target system uses a REST API. The callout needs to be asynchronous. The target system uses a SOAP API. The callout needs to be invoked from a Workflow Rule. |