A company uses Salesforce to sell products to customers. They also have an external product information management (P1M) system that If the system of record for products. A developer received these requirements • Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce. • The PricebookEntry should be created in a Pricebooki that is specified in a custom setting. What should the developer use to satisfy these requirements?
A. Apex REST
B. Event Monitoring
C. Invocated Action
D. Sobject Tree
Refer to the Aura component below:
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?
A. Change the type of contactInfo to "Map'.
B. Add a change event handler for showcontactInfo.
C. Change the default for showcontactlnfo to "false'.
D. Move the contents of into the component.
Consider the Apex class below that defines a RemoteAction used on a Visualforce search
page.
Which code snippet will assert that the remote action returned the correct Account?
A. Option A
B. Option B
A developer has created, Lightning web component that uses the get Record wire adapter. Which three things should the developer do in a test validate the wire method is working as expected? Choose 3 answer
A. Import wire from 1w.
B. Create a JSOM file with mock data.
C. Use the emit () API.
D. Use an assert statement to validate results.
E. Import getRecord from Lightning/uiRecordAPi.
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?
A. Call the Apex class method from a testMethod instead of the testsetup method.
B. Verify the user has permissions passing a user into system.runAs ().
C. Use system.aasert () in testSetup to verify the values are being returned.
D. Add @testvisibie to the method in the class the developer is testing.
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) Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are 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?
A. Add a validation rule to the Contract to prevent Contract creation by the user who loads
the data.
B. Add the Profile ID of the user who loads the data to the trigger, so the trigger will not fire for this user.
C. Use a list custom setting to disable the trigger for the user who loads the data.
D. Use a hierarchy custom setting to skip executing the logic inside the trigger for the user who loads the data.
A developer is creating a lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday. What should the developer do to ensure the calendar displays accurately for users in every locale?
A. Use a custom metadata type to store key/value pairs.
B. Query the firstDayofweek field from the Locale for the current user.
C. Use UserInfo,getLocale () in the component.
D. Import the FirstDayofweek property m the component
Which tag should a developer use to display different text while an is executing versus not executing?c
A. <apexactionPoller>
B. <ApexactionSupper>
C. <ApexactionStatus>
D. <ApexpageMessages>
A developer is building a Lightning web component that searches for Contacts. The component must communicate the search results to other unrelated Lightning web components, that are in different DOM trees, when the search completes. What should the developer do to implement the communication?
A. Publish a message on a message channel.
B. Fire a custom component event.
C. Publish an event on an event channel.
D. Fire an application event.
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?
A. Does the screen need to be accessible from the lightning Experience UI?
B. Will the screen make use of a JavaScript framework?
C. Does the screen need to be rendered as a PDF without using a third-party application?
D. Will the screen be accessed via a mobile app?