PDII

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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. <lightning:layout multipleRows-"false"> <1ightning:layoutItem size="6">{!v.rec.Name) </lightning:layoutItem> <1ightning:layoutItem size="6">{!v.rec.Description_c </lightning:layoutItem> </11ghtning:layout> How should a developer change the component to be responsive for mobile and tablet devices? A. <1ightning:layout multipleRows="true"> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.zec.Name) </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="6"> {!v.rec.Description_c) </lghtning:layoutItem> </lightning:layout> B.<lightning:layout multipleRows="false"> <lightning:layoutItem size="12" largeDeviceSize="6">v.rec.Name) </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="6"> {!v.rec.Description_c) </lightning:layoutItem> </lightning:layout> C. <lightning: layout multipleRows="false"> <1ightning:layoutItem smallDeviceSize="12" largeDeviceSize>v.rec.Name </lightning:layoutItem> </lightning:layout>

A. <1ightning:layout multipleRows="true"> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.zec.Name) </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="6"> {!v.rec.Description_c) </lghtning:layoutItem> </lightning:layout>

Refer to the component code and requirements below: <lightning:layout multioleRows="true"> <lightning:layoutItem size="12">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="12">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="12">{!v.account.Industry} </lightning:layoutItem> </lightning:layout> Requirements: 1. For mobile devices, the information should display In three rows. 2. For desktops and tablets, the information should display in a single row. A. <lightning:layout multioleRows="true"> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry} </lightning:layoutItem> </lightning:layout> B. <lightning:layout multioleRows="true"> <lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Industry} </lightning:layoutItem> </lightning:layout> C. <lightning:layout multioleRows="true"> <lightning:layoutItem size="6" mediumDeviceSize="4">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="6" mediumDeviceSize="4">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="6" mediumDeviceSize="4">{!v.account.Industry} </lightning:layoutItem> </lightning:layout> D. <lightning:layout multioleRows="true"> <lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Industry} </lightning:layoutItem> </lightning:layout>

A. <lightning:layout multioleRows="true"> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Number} </lightning:layoutItem> <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry} </lightning:layoutItem> </lightning:layout>

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. <lightning:layout multipleRows="false"> <lightning:layoutItem size="6">{!v.rec.Name) </lightning:layoutItem> <lightning:layoutItem size="6">{!v.rec.Description_c) </lightning:layoutItem> </lightning:layout> How should a developer change the component to be responsive for mobile and tablet devices? A. <lightning:layout multipleRows="true"> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.rec.Name) </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.rec.Description_c} </lightning:layoutItem> </lightning:layout> B. <lightning:layout multipleRows="true"> <lightning:layoutItem smallDeviceSize="12" largeDeviceSize="6"{!v.rec.Name) </lightning:layoutItem> <lightning:layoutItem smallDeviceSize="12" largeDeviceSize="6">{!v.rec.Description__c) </lightning:layoutItem> </lightning:layout>

A. <lightning:layout multipleRows="true"> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.rec.Name) </lightning:layoutItem> <lightning:layoutItem size="12" largeDeviceSize="6">{!v.rec.Description_c} </lightning:layoutItem> </lightning:layout>

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. 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 over each other, thus replacing entire Page Layouts in production. C. Page Layouts should never be deployed via Change Sets, as this causes Field-Level Security to be reset and fields to disappear. D. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.

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 over each other, thus replacing entire Page Layouts in production.

A developer gets an error saying 'Maximum Trigger Depth Exceeded." What is a possible reason to get this error message? A. A trigger is recursively invoked more than 16 times. B. A flow trigger was included too many times. C. There are numerous DML operations in the trigger logic. D. The SOQL governor limits are being hit.

A. A trigger is recursively invoked more than 16 times.

Consider the Apex class below that defines a RemoteAction used on a Visualforce search page. global with sharing class MyRemoter ( public String accountName { get; set; } public static Account account { get; set; } public MyRemoter() {} @RemoteAction global static Account getAccount (String accountName) { account = [SELECT Id, Name, NumberofEmployees FROM Account WHERE Name = :accountName]; return account; } } Which code snippet will assert that the remote action returned the correct Account? A. Account a = MyRemoter.getAccount ('TestAccount'); System.assertEquals( 'TestAccount', a.Name); B. Account a = controller.getAccount (TestAccount'); System.assertEquals( 'TestAccount', a.Name); C. MyRemoter remote = new MyRemoter(); Account a = remote.getAccount ("TestAccount'); System.assertEquals( 'TestAccount', a.Name); D. MyRemoter remote = new MyRemoter ("TestAccount'); Account a remote.getAccount();

A. Account a = MyRemoter.getAccount ('TestAccount'); System.assertEquals( 'TestAccount', a.Name);

A developer wrote a test class that sucessfully assert trigger on Account. It fires and updates data correctly in a sandbox enviroment. A salesforce admin with a custom profile attempts to deploy this trigger via change set into the production enviroment, but the test class fails with an insufficient previleges error. What should developer do to fix this error? A. Add System.RunAs() to the test class to execute the trigger as a user with the correct object permissions B. Verify that test.startTest() is not inside the loop in the test class C. Configure the production enviroment to entire "Run all tests as admin user" D. Add seeAllData=true to the test class to work within the sharing model for the production enviroment

A. Add System.RunAs() to the test class to execute the trigger as a user with the correct object permissions

Refer to the test method below. Line 1: @isTest Line 2: static void testMyTrigger() Line 3: { Line 4: //Do a bunch of data setup Line 5: DataFactory.setupDataForMyTriggerTest(); Line 6: Line 7: List<Account> acctaBefore = [SELECT Is Customer e FROM Account WHERE Id IN DataFactory.accounts]; Line 8: List<Account> acctaBefore = [SELECT Is Customer e FROM Account Line 9: //Utility to assert all accounts are not customers before the //update Line 10: AssertUtil.assertNotCustomers (acctsBefore); Line 11: Line 12: //Set accounts to be customers Line 13: for (Account a: DataFactory.accounts) Line 14: { Line 15: a.Is_Customer__c = true; Line 16: } Line 17: Line 18: update DataFactory.accounts; Line 19: Line 20: List<Account> acctsAfter = (SELECT Number_of_Transfers__c FROM Account WHERE Id IN :DataFactory.accounts]; Line 21: Line 22: //Utility to assert Number_of_Transfers_c is correct based on test data Line 23: AssertUtil.assertNumberOfTransfers (acctsAfter); Line 24:} The test method tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers. The test method fails at the Line 20 because of too many SOQL queries. What is the correct way to fix this? A. Add Test.startTest() before and add Test.stopTest () after Line 18 of the code. B. Use Limits.getLimitQueries () to find the total number of queries that can be issued. C. Add Test.startTest() before and add Test.stopTest () after both Line 7 and Line 20 of the code. D. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.

A. Add Test.startTest() before and add Test.stopTest () after Line 18 of the code.

Line5: DataFactory.setupDataForMyTriggerTest(); Line6: Line7: List<Account> acctsBefore = (SELECT Is_Customer_ FROM Account WHERE Id IN :DataFactory.accounts]; Line8: Line9: //Utility to assert all accounts are not customers before the update Line10: AssertUtil.assertNot Customers (acctsBefore); Line11: Line12: //Set accounts to be customers Line13: for (Account a: DataFactory.accounts) Line14: { Line15: a.Is_Customer__c = true; Line16: } Line17: Line18: update DataFactory.accounts; Line19: Line20: List<Account> acctsAfter [SELECT Number_of_Transfers e FROM Account WHERE IS IN DataFactory.accounts]; Line21: Line22: //Utility to assert Number_of_Transfers_c is correct based on test data Line23: AssertUtil.assertNumberOfTransfers (acctsAfter); Line24: The test method tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers. The test method fails at the Line 20 because of too many SOQL queries. What is the correct way to fix this? A. Add Test.startTest() before and add Test.stoplest() after Line 18 of the code. B. Add Test.startTest() before and add Test.stopTest() after both Line 7 and Line 20 of the code. C. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced. D. Use Limits.getLimitqueries() to find the total number of queries that can be issued.

A. Add Test.startTest() before and add Test.stoplest() after Line 18 of the code.

developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet: <aura:component implements "force:hasRecordid, flexipage:availableForAllPageTypes"> <div>Hello!</div> </aura:component> How can the component's controller get the context of the Lightning page that the sobject is on without requiring additional test coverage? A. Add force:hasSobjectName to the implements attribute. B. Use the get sobjectType() method in an Apex class. C. Create a design attribute and configure via App Builder. D. Set the sobject type as a component attribute.

A. Add force:hasSobjectName to the implements attribute.

A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component. 01: 02: public class ContactFetcher { 03: 04: static List<Contact> getRecent Contacts (Id accountId) { 05: List<Contact> contacts = getFiveMostRecent (accountId); 06: return contacts; 07: } 08: 09: private static List<Contact> getFiveMostRecent (Id accountId) { 10: //...implementation... 11: } 12:} Which two lines must change in the above code to make the Apex method able to be wired? Choose 2 answers A. Add public to line 04. B. Remove private from line 09. C. Add @AuraEnabled (cacheable=true) to line 08. D. Add @AuraEnabled(cacheable=true) to line 03.

A. Add public to line 04. D. Add @AuraEnabled(cacheable=true) to line 03.

A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component. 01: 02: public class ContactFetcher { 03: static List<Contact> getRecentContacts (Id accountId) { 04: List<Contact> contacts = getFiveMostRecent (accountId): 03: return contacts:; 04: } 05: private static List<Contact> getFiveMost Recent (Id accountId) { 06: //...implementation... 07: } Which two lines must change in the above code to make the Apex method able to be wired? Choose 2 answers A. Add public to line 04. B. Add @AuraEnabled (cacheable=true) to line 03. C. Remove private from line 09. D. Add @AuraEnabled(cacheable=true) to line 08.

A. Add public to line 04. B. Add @AuraEnabled (cacheable=true) to line 03.

Refer to the following code snippet: public class LeadController { public static List<Lead> getFetchLeadList (String searchTerm, Decimal aRevenue) { String safeTerm = '4'-searchTerm.escapeSingleQuote()+'4' return [SELECT Name, Company, Annual Revenue FROM Lead WHERE Annual Revenue > :aRevenue AND Company LIKE :safeTerm; LIMIT 20]; } } A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by wire calling getFetchLeadList when certain criteria are met. Which three changes should the developer implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? Choose 3 answers A. Annotate the Apex method with @AuraEnabled (Cacheable=true). B. Implement the with sharing keyword in the class declaration. C. Use the WITH SECURITY ENFORCED clause within the SOQL query. D. Implement the without sharing keyword in the class declaration. E. Annotate the Apex method with @AuraEnabled.

A. Annotate the Apex method with @AuraEnabled (Cacheable=true). B. Implement the with sharing keyword in the class declaration. C. Use the WITH SECURITY ENFORCED clause within the SOQL query.

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 A. Apex method that returns a Continuation object B. Screen Flow C. Lightning web component D. Apex Trigger

A. Apex method that returns a Continuation object C. Lightning web component

The Account object has a field, Audit_Code_o, that is used to specify what type of auditing the Account needs and a Lookup to User, Auditor that is the assigned auditor. When an Account is initially created, the user specifies the Audit Codec Each User in the org has a unique text field, Audit_Code__c, that is used to automatically assign the correct user to the Account's Auditor field. trigger AccountTrigger on Account(before insert) { AuditAssigner.setAuditor (Trigger.new); public class AuditAssignes | public static void setAuditor (Lisschecount> accounts) [ for (Vaer u: [SELECT Id, Rudit Code FROM Uaer]) { for(Account a : accounts){ if (u.Audit_Code__c) a.Auditor__c = u.Id; } } } } What should be changed to most optimize the code's efficiency? Choose 2 answers A. Build a Map<String, List<Account>> of audit code to accounts. B. Add an initial SOQL query to get all distinct audit codes. C. Add a WHERE clause to the SOQL query to filter on audit codes. D. Build a Map<id, List<String>> of Account Id to audit codes.

A. Build a Map<String, List<Account>> of audit code to accounts C. Add a WHERE clause to the SOQL query to filter on audit codes.

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, Auditor that is the assigned auditor. When an Account is initially created, the user specifies the Audit Codec Each User in the org has a unique text field, Audit_Code__c, that is used to automatically assign the correct user to the Account's Auditor field. trigger AccountTrigger on Account(before insert) { AuditAssigner.setAuditor (Trigger.new); public class AuditAssignes { public static void setAuditor (Lisschecount> accounts) { for (User u: [SELECT Id, Rudit Code FROM User]) { for(Account a : accounts) { if (u.Audit Code){ a.Auditor = u.Id; } } } } } What should be changed to most optimize the code's efficiency? Choose 2 answers A. Build a Map<String, List<Account>> of audit code to accounts. B. Add an initial SOQL query to get all distinct audit codes. C. Add a WHERE clause to the SOQL query to filter on audit codes. D. Build a Hapcid, List<String> of Account Id to audit codes.c

A. Build a Map<String, List<Account>> of audit code to accounts. C. Add a WHERE clause to the SOQL query to filter on audit codes.

Ursa Major Solar has a custom object, Service Job_e, with an optional Lookup field to Account called Partner_Service_Provider_c. The Totaljobs_c field on Account tracks the total number of ServiceJob_c records to which a partner service provider Account is related. What should be done to ensure that the totaljobs_c field is kept up to date? A. Create an Apex trigger on ServiceJob_c B. Use Database.executeBatch() to invoke a Database. Batchable class C. Define a method that creates test data and annotate with test setup D. Use helper class on ServiceJob_c

A. Create an Apex trigger on ServiceJob_c

Universal Containers implements a private sharing model for the Convention Attendee__c custom object. As part of a new quality assurance effort, the company created an Event_Reviewer__c user lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to. What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record? A. Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing. B. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers. C. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records with a group of Event Reviewers. D. Create a before insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

A. Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

Consider the following code snippet: <c-selected-order> <template for:each (orders.data) for:item="order"> <c-order orderId=(order.Id)></c-order> </template> </c-selected-order> How should the <c-order> component communicate to the <c-selected-order> component that an order has been selected by the user? A. Create and dispatch a custom event. B. Create and fire a standard DOM event. C. Create and fire a component event. D. Create and fire an application event.

A. Create and dispatch a custom event.

A developer is asked to develop a new AppExchange 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 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 packagedie custom configuration settings of the app? A. Custom metadata B. Custom objects C. | Custom labels D. Custom settings

A. Custom metadata

A developer is asked to develop a new feature. 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? A. Custom metadata B. Custom settings C. Custom objects D. Custom labels

A. Custom metadata

A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data? A. Custom settings B. Custom metadata C. System.Cookie class D. Static Resources

A. Custom settings

A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data? A. Custom settings B. Custom metadata C. System.Cookie class D. Static resources

A. Custom settings

A developer is trying to decide between creating a VF component or a lightning component for a custom screen What functionality consideration impacts the final decision? A. Does screen need to be rendered as a PDF without using a third-party application B. Will screen make use a JS framework C. Will screen be accessed via mobile app D. Does screen need to be accessible from the Lightning Experience UI

A. Does screen need to be rendered as a PDF without using a third-party application

developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields, that will vary according to their selections when running the page. Which feature of Apex code is required to facilitate this solution? A. Dynamic Schema binding B. describe s0bjects() C. SOSL queries D. REST API

A. Dynamic Schema binding

An end user reports that a Lightning component is performing poorly. Which two steps should be taken in production to investigate? Choose 2 answers A. Enable Debug Mode for Lightning components. B. Print console.log() statements to identity where actions are delayed. C. Use the Salesforce Lightning Inspector Chrome extension D. Add a trace flag to the user who reported the issue.

A. Enable Debug Mode for Lightning components. C. Use the Salesforce Lightning Inspector Chrome extension

Consider the following code snippet: public class searchFeature{ public static List<List<Object>> searchRecords (string searchquery) { return [FIND searchquery IN ALL FIELDS RETURNING Account, Opportunity, Lead]; } A developer created the following test class to provide the proper code coverage for the snippet above: @isTest private class searchFeature_Test { @TestSetup private static void makeData() { //insert opportunities, accounts and lead } @isTest private static searchRecords_Test () { List<List<Object>> records = searchFeature.searchRecords ("Test'); System.assertNotEquals (records.size(),0); } } However, when the test runs, no data is returned and the assertion fails. Which edit should the developer make to ensure the test class runs successfully? A. Enclose the method call within Test.startTest() and Test.stopTest(). B. Implement the seeAllData=true attribute in the @IsTest annotation. C. Implement the without sharing keyword in the searchFeature Apex class. D. Implement the setFixedSearchResults method in the test class.

A. Enclose the method call within Test.startTest() and Test.stopTest().

A developer created and tested VisualForce page in their developer sandbox, but now receives reports that user encounter view state errors when using it in production What should the developer ensure to correct these errors? A. Ensure variables marked transistent. B. Ensure profiles have access to VisualForce page C. Ensure properties are marked as private D. Ensure queries do not exceed governor limits

A. Ensure variables marked transistent.

After a platform event is defined in a Salesforce org, events can be published via which mechanism? A. External Apps use an API to publish event messages. B. Internal Apps can use entitlement processes. C. External Apps require the standard Streaming API. D. Internal Apps can use outbound messages.

A. External Apps use an API to publish event messages.

A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce. This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts. Which two recommendations should make this process more efficient? Choose 2 answers A. Identify unique fields on Order and Account and set them as External IDs. B. Ensure the data in the file is sorted by the order ID. C. Use the upsert wizard in the Data Loader to import the data. D Use the insert wizard in the Data Loader to import the data.

A. Identify unique fields on Order and Account and set them as External IDs. B. Ensure the data in the file is sorted by the order ID.

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? A. Implement the Batchable interface B. Implement Queueable interface C. Implement Schedulable interface D. Add @future decorator to class definition

A. Implement the Batchable interface

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called Survey_Response__c do not belong to a list of blocked domains. The list of blocked domains is stored in a custom object for ease of maintenance by users. The Survey_Response__c object is populated via a custom Visualforce page. What is the optimal way to implement this? A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller. B. Implement the logic in validation rules on the Contact and the Survey_Response_e objects. C. Implement the logic in an Apex trigger on Contact and also implement the logic within the custom Visualforce page controller. D. Implement the logic in the custom Visualforce page controller and call that method from an Apex trigger on Contact.

A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller.

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called Survey_Response__c do not belong to a list of blocked domains. The list of blocked domains is stored in a custom object for ease of maintenance by users. The survey_Response__c object is populated via a custom Visualforce page. What is the optimal way to implement this? A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller. B. Implement the logic in an Apex trigger on Contact and also implement the logic within the custom Visualforce page controller. C. Implement the logic in the custom Visualforce page controller and call that method from an Apex trigger on Contact. D. Implement the logic in validation rules on the Contact and the Survey_Response__c objects.

A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller.

Line1: trigger ContactTrigger on Contact (before insert, before update) Line2:{ Line3: Map<Id, Account> accountKep new Mapeid, Account>(); Line4: for (Contact c: Trigger.new) Line5:{ Line6: Account a = [SELECT Id, Nane, BillingCountry FROM Account WHERE Id: c.AccountId); Line7: accountMap.put(a.id, a); Line8: } Line9: Line10: //Do stuff with accountMap Line11: for (Contact : Trigger.new) Line12: { Line13: Account à accountMap.get(c.AccountId); Line14: if( != null) Line15: { Line16: c.BillingCountry = a.Bi11ingCountry; Line17: } Line18: } Line19: Line20: update Trigger.new: Line21:} Refer to the code segment above. When following best practices for writing Apex triggers, which two lines are wrong or cause for concern? Choose 2 answers A. Line 6 B. Line 11 C. Line 16 D. Line 20

A. Line 6 D. Line 20

An org has a requirement that the Shipping Address on the Account must be validated by a third-party web service before the Account is allowed to be inserted. This validation must happen in real-time before the account is inserted into the system. Additionally, the developer wants to prevent the consumption of unnecessary SME statements. What is the optimal way to meet this requirement? A. Make a callout to the web service from a custom Visualforce controller B. Make a callout to the web service from a Apex Trigger C. Make a callout to the web service from clien-side D. Make a callout to the web service from LWC component

A. Make a callout to the web service from a custom Visualforce controller

A developer is writing a Listener for implementing outbound messaging. Which three considerations must the developer keep in mind in this case? Choose 3 answers A. Messages can be delivered out of order. B. Messages are retried independent of their order in the queue. C. The sessionid in an outbound message is scoped for both API requests and UI requests. D. The Organization ID is included only in the first outbound message. E. The Listener must be reachable from the public internet.

A. Messages can be delivered out of order. B. Messages are retried independent of their order in the queue. C. The sessionid in an outbound message is scoped for both API requests and UI requests

The following code segment is called from a trigger handler class from the Opportunity trigger: for (Opportunity opp: Trigger.new) { if (opp.amount >= 1000000) { Account acct = [SELECT Id, status FROM Account WHERE id = sopp.accountId LIMIT 1); acct.status = 'High Potential'; Update act; } } Which two changes will improve this code and make it more efficient? Choose 2 answers A. Move the DML outside of the for loop. B. Move the business logic inside the Opportunity trigger. C. Use Trigger.old instead of Trigger.new. D. Move the SOQL to fetch the account record outside of the for loop.

A. Move the DML outside of the for loop. C. Use Trigger.old instead of Trigger.new.

A company represents their customers as Accounts that have an External ID field called Customer Number__c. They have a custom object, Order__c, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and relates it to the proper Account. What is the optimal way to implement this? A. Perform a REST PATCH to upsert the order__c and specify the Account's customer__Number__c in it. B. Perform a REST GET on the Account and a REST POST to update the order__c with the Account's record ID. C. Perform a REST POST to update the order__c and specify the Account's Customer__Number__c in it. D. Perform a REST GET on the Account and a REST PATCH to upsert the order__c with the Account's record ID.

A. Perform a REST PATCH to upsert the order__c and specify the Account's customer_Number__c in it.

Consider the following code snipet: public class with sharing AccountController{ @AuraEnabled public List<Accounts> getAllAccounts(){ return [SELECT Id, Name, Industry FROM Account]; } } As part of the deployment cycle, a developer creates the wollowing test class: private class with sharing AccountController_Test{ @TestSetup public static void makeData(){ User user1 = [Select Id From User Where Profile.Name = 'System Administrator' isActive=true LIMIT 1]; User user2 = [Select Id From User Where Profile.Name = 'Standard User' and UserName = '[email protected]' and isActive=true LIMIT 1]; TestUtils.insertAccounts(10, user1.Id); TestUtils.insertAccounts(10, user2.Id); } @isTest private static void getAllAccounts_AtandardUser_Test(){ List<Account> result = AccountController.getAllAccounts(); System.assertEquals(20, result.size()); } } When the test class runs, the assertion falls. Which change should the developer implement in the Apex test method fo ensure the test method executes successiully? A. Query the Standard User into memory and enclose lines 14 and 15 within the System.runAs(user) method. B. Add System.runAs(User) 10 line 14 and enclose ine 14 within Test.startTest () and Test.stopTest() C. Query the Administrator use into memory and enclose fines 14 and 15 within the System.runAs (user) method. D. Add @IsTest (seeAllData=true) to line 12 and enclose lines 14 and 15 within Test. startTast () and Test.stopTest()

A. Query the Standard User into memory and enclose lines 14 and 15 within the System.runAs(user) method.

Universal Containers (UC) has an ERP system that stores customer Information. When an Account is created in Salesforce, the ERP 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 the UC org are only created, one at a time, by users in the UC customer on-boarding department. What should a developer implement to make the call to the ERP system's REST endpoint? A. REST call from JavaScript B. Headless Quick Action C. Apex Continuation D Call a Queueable from a Trigger

A. REST call from JavaScript

Company has native iOS app that needs to connect SF to retrieve information from different JSON objects. How to implement this? A. REST web service B. REST callout C. SOAP callout D. SOAP web service

A. REST web service

A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a "Maximum view state size limit" error message under certain conditions. According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers A. Refine any SOQL queries to return only data relevant to the page. B. Use the private keyword in the controller for variables. C. Use the final keyword in the controller for variables that will not change. D. Use the transient keyword in the Apex controller for variables that do not maintain state. E. Use filters and pagination to reduce the amount of data.

A. Refine any SOQL queries to return only data relevant to the page. D. Use the transient keyword in the Apex controller for variables that do not maintain state. E. Use filters and pagination to reduce the amount of data.

Consider the following code snippet: trigger Opportunitylrigger on Opportunity (before insert, before update) { for (Opportunity opp : Trigger.new){ OpportunityHandler.setFricingStructure (Opp); } } public class OppertunityHandler{ . public static void setPricingStructure (Opportunity thisopp){ . Pricing Structure_c ps = [Select Type_c FROM Pricing Structure__c . WHERE industry__c = :thisOpp.iccount_Industry__c]; . ThisOpp. Pricing_Structure__c = ps.Type__c; . update thisOpp; } } Which two best practices should the developer implement to optimize this code? Choose 2 answers A. Remove the DML statement. B. Query the Pricing Structure c records outside of the loop. C. Use a collection for the DML statement D. Change the trigger context 10 azzex update, after insert.

A. Remove the DML statement. B. Query the Pricing Structure c records outside of the loop.

Consider the following code snippet: trigger OpportunityTrigger on Opportunity (before insert, before update) { for (Opportunity opp: Trigger.new) { OpportunityHandler.setPricingStructure (Opp) } } public class OpportunityHandler{ public static void setPricingStructure (Opportunity thisOpp) { Pricing Structure_c ps = [Select Type e FROM Pricing Structure__c WHERE industry_c = thisOpp.Account_Industry_cl; thisopp.Pricing Structure_c = ps.Type__c; update thisOpp; } } Which two best practices should the developer implement to optimize this code? Choose 2 answers A. Remove the DML statement. B. Use a collection for the DML statement. C. Query the Pricing Structure__c records outside of the loop. D. Change the trigger context to after update, after insert.

A. Remove the DML statement. C. Query the Pricing Structure_c records outside of the loop.

Consider the following code snippet: trigger OpportunityTrigger on Opportunity (before insert, before update) { for (Opportunity opp: Trigger.new) { OpportunityHandler.setPricingStructure (opp) } } public class OpportunityHandler{ public static void setPricingStructure (Opportunity thisopp) { Pricing_Structure__c pe = [Select Type FROM Pricing Structure_c WHERE industry__c = :thisopp.Account_Industry__c]; thisOpp.Pricing_Structure__c = ps.Type__c update thisOpp: } Which two best practices should the developer implement to optimize this code? Choose 2 answers A. Remove the DML statement. B. Query the Pricing Structure e records outside of the loop. C. Change the trigger context to after update, after insert. D. Use a collection for the DML statement.

A. Remove the DML statement. B. Query the Pricing Structure e records outside of the loop.

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? A. Replace custom settings with custom metadata. B. Replace custom settings with static resources. C. Set the setting type on the custom setting to Hierarchy. D. Set the setting type on the custom setting to List.

A. Replace custom settings with custom metadata.

What should a developer use to query all Account fields for the Acme account in their sandbox? A. SELECT FIELDS (ALL) FROM Account WHERE Name = 'Acme' LIMIT 1 B. SELECT ALL FROM Account WHERE Name = 'Acme' LIMIT 1 C. SELECT * FROM Account WHERE Name = 'Acme' LIMIT 2 D. SELECT FIELDS FROM Account WHERE Name = 'Acme' LIMIT 1

A. SELECT FIELDS (ALL) FROM Account WHERE Name = 'Acme' LIMIT 1

Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers A. SELECT Id FROM Account WHERE Name IN (List of Names) AND Customer Number_c = 'ValueA' B. SELECT Id FROM Account WHERE Id IN (List of Account Ids) C. SELECT Id FROM Account WHERE Name != " D. SELECT Id FROM Account WHERE Name LIKE 'Partner'

A. SELECT Id FROM Account WHERE Name IN (List of Names) AND Customer Number_c = 'ValueA' B. SELECT Id FROM Account WHERE Id IN (List of Account Ids)

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? A. SP3 became invalid when SP1 was rolled back. B. The developer should have called SP2 before calling SP3. C. The developer has too many DML statements between the savepoints. D. The developer used too many savepoints in one trigger session.

A. SP3 became invalid when SP1 was rolled back.

Which statement is true regarding savepoints? A. Static variables are not reverted during a rollback. B. Reference to savepoints can cross trigger invocations. C. You can roll back to any savepoint variable created in any order. D. Savepoints are not limited by DML statement governor limits.

A. Static variables are not reverted during a rollback.

A developer has a Batch Apex process, Satch_Acccunt_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed in the sandbox However, the developer cannot get code coverage on the Batch Apex class. The test class is below: @IsTest private Batch Account Update Test() { @IsTest static void UnitTest() { Account a = new Account (Name='test',Type='Customer',Sales_Amounc__c=0); insert a: Batch_Account_Sales bas = new Batch_Account_Sales(); ID jobId = dstabase.executeBatch(bas); } } What is causing the code caverage problem? A. The executeBatch must fall within test.startTest() and test.stopTest() B. The batch needs more than one account record created C. The account creation already sets the sales amount to 0. D. The batch process will not recognize new accounts created in the same session

A. The executeBatch must fall within test.startTest() and test.stopTest()

An environment has two Apex triggers: an after-update trigger on Account and an after-update trigger on Contact The Account after-update trigger fires whenever an Account's address is updated, and it updates every associated Contact with that address The Contact after-update trigger fires on every edit, and it updates every Campaign Member record related to the Contact with the Contact's state. Consider the following: A mass update of 200 Account records addresses, where each Account has 50 Contacts. Each Contact has one Campaign Member. This means there are 10,000 Contact records across the Accounts and 10,000 Campaign Member records across the contacts. What will happen when the mass update occurs? A. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements. B. Mass update will be successful C. The mass update will fail, since unfinished work pending D. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of DML statements

A. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements.

A developer created the following test method: @isTest (SeeAlldata= true) public static void testDeleteTrigger() { . //Implementations } The developer org has five accounts where the name starts with "Test". The developer executes this test in the Developer Console. After the test code runs, which statement is true? A. There will be no accounts where the name starts with "Test". B. There will be five accounts with the name test C. Test will fail D. Test will execute succesfully

A. There will be no accounts where the name starts with "Test".

What are three reasons that a developer should write Jest tests for Lightning web components? Choose 3 answers A. To verify the DOM output of a component B. To verify that events fire when expected C. To test how multiple components work together D. To test basic user interaction E. To test a component's non-public properties

A. To verify the DOM output of a component B. To verify that events fire when expected D. To test basic user interaction

A company uses Opportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue object. As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic. They estimate that roughly 100,000 Opportunities will have Revenue records created and populated. What is the optimal way to automate this? A. Use Database.executeBatch() to invoke a Database.Batchable class. B. Use System.scheduleJob() to schedule a Database. Scheduleable class. C. Use Database.executeBatch() to invoke a Queueable class. D. Use System.enqueue Job () to invoke a Queueable class.

A. Use Database.executeBatch() to invoke a Database.Batchable class.

Refer to the code below: List<opportunity> opportunities = [SELECT id, Amount from Opportunity]; for (Opportunity opp: opportunities) { . // perform operation here } When the code runs, it results in a System Limit Exception with the error message: Apex heap size too large. What should be done to fix this error? A. Use Limits.getLimitHeapsize() B. Use System.getLimitHeapsize() C. Look at SetUp settings D. Use Limits.Heap.getSize()

A. Use Limits.getLimitHeapsize()

A page throws an Attempt to dereference a null object' error for a Contact. What change in the controller will fix the error? A. Use a condition in the getter to return a new Contact if it is null. B. Change the setter's signature to return a Contact. C. Change the getter's signature to be static Contact. D. Declare a static final Contact at the top of the controller.

A. Use a condition in the getter to return a new Contact if it is null.

Salesforce users y receive a "Maximum trigger depth exceeded" error when saving an Account. How can a developer fix this error? A. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then modify the trigger to only fire when the Boolean is FALSE. B. Split the trigger logic Into two separate triggers. C.. | Convert the trigger to use the @future annotation, and chain any subsequent trigger invocations to the Account object. D. Modify the trigger to use the is: hresd=true annotation.

A. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then modify the trigger to only fire when the Boolean is FALSE.

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 certain conditions are met. What is the optimal way to accomplish this? A. Use an Email Alert with Flow Builder. B. Use a Workflow Email Alert. C. Use SingleEmailMessage() with an Apex trigger. D. Use MassEmailMessage() with an Apex trigger.

A. Use an Email Alert with Flow Builder.

Refer to the Lightning component below. <lightning:button label="Save" onclick="{!c.handleSave}" /> ( { handleSave: function (component, event, helper) ( helper.saveAndRedirect (component); }) The Lightning Component allows users to click a button to save their changes and then 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 3 answers A. Use console.log() messages in the JavaScript. B. Use Developer Console to view checkpoints. C. Use the browser's dev tools to debug the JavaScript. D. Enable Debug Mode for Lightning components for the user. E. Use Developer Console to view the debug log.

A. Use console.log() messages in the JavaScript. C. Use the browser's dev tools to debug the JavaScript. D. Enable Debug Mode for Lightning components for the user.

UC want to develop customer comunity to help their customers log issues with their containers. The community needs to function with their German and Spanish speeking customers also. UC heard that it's easy to create international community using Salesforce, and hired a developer to build out the site What should developer use to ensure the site is multilangual? A. Use custom labels to ensure custom messages are transidented properly B. Use custom metadata to translate custom picklist values C. Use custom objects to translate custom picklist values D. Use custom settings to ensure custom messages are transidented properly

A. Use custom labels to ensure custom messages are transidented properly

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 accessed 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 user's locale settings? A. Use the FORMAT() function in the SOQL query. B. Use REGEX expressions to format the values retrieved via SOQL C. Use a wrapper class to format the values retrieved via SOQL D. Use the FOR VIEW clause in the SOQL query.

A. Use the FORMAT() function in the SOQL query.

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 accessed 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 user's locale settings? A. Use the FORMAT() function in the SOQL query. B. Use REGEX expressions to format the values retrieved via SOQL C. Use the FOR VIEW clause in the SOQL query. D. Use a wrapper class to format the values retrieved via SOQL

A. Use the FORMAT() function in the SOQL query.

A developer is asked to create LWC component which will be displayed in a modal dialog Which three steps help achive this? Choose 3 A. add lightning_recordAction as a target B. Set actionType as screenAction C. lightning_recordAction set as target in targetConfig D. Set eventType to Action E. lightning_appPage set as target in targetConfig

A. add lightning_recordAction as a target B. Set actionType as screenAction C. lightning_recordAction set as target in targetConfig

Consider the following code snippet, depicting an Aura component: <aura:component> <lightning:input type="Text" name="searchString" aura:id="search1" label="Search String"/> <br/> <lightning:button label="Search" onclick="{!c.performSearch}"/> </aura:component> Which two interfaces can the developer implement to make the component available as a quick action? A. force:lightningQuickAction B. lightning-input field C. force:lightningAction D.force:lightning QuickAction without Header

A. force:lightningQuickAction D.force:lightningQuickAction without Header

A developer writes a Lightning web component that displays a dropdown list of allcustom objects which user will select How to determine which object include to response? A. isCustom() B. getCustomObjects() C. getObjectType() D. import list from '@salesforce/schema'

A. isCustom()

A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed. <template> <lightning-record-edit-form object-api-name="Contact"> <lightning-input-field-field-name="FirstName"></lightning-input-field> <lightning-input-field-field-name="Lastiame"></lightning-input-field> <lightning-input-field field-name="Email"></lightaing-inpuc-field> <lightning-button type="submit" name="submit® label="Create Conmtact"> </1ightaing-button> </1ightaing-record-edit-form> </template> Which component should the developer add to the form to display error messages? A. lightaing-messages B. apex:massages C. aura:messages D. lightaing-error

A. lightaing-messages

A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed In a non-linear fashion on top of an Image of the product to help the user better understand the meaning of the fields. Which two components should a developer use to implement the creation of the Case from the Lightning web component? Choose 2 answers A. lightning-record-edit-form B. lightning-input C. lightning-record-form D. lightning-input-field

A. lightning-record-edit-form C. lightning-record-form

import fetchOpps from '@salesforce/apex/OpportunitieSearch.fetchOpportunities'; @wire(fetchOpps); opportunities; make method avaliable? A. method anotated @invokableMethod B. method anotated @auraEnabled C. Add cachable=true attribute D. Add cachable=false attribute E. cannot mutate result

A. method anotated @invokableMethod C. Add cachable=true attribute E. cannot mutate result

A large company uses Salesforce across several department. Each has its own sandbox was agreed that each Administrator would have their own sandbox - which to test hain: Recently, users notice that fields that were recently added for one department suddenly disappear without warning, Which two statements are true regarding these issues and resolution? 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 in production. D. Page Layouts should never be deployed via Change Sets, as this causes Fleld-Level Security to be reset and fields to disappear.

A. sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production. C. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts in production.

A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input. When the search is completed, a search Complete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once. What is the optimal code that should be added to fire the event when the search has completed? Choose 3: A. var evt =$A.get("e.c.searchComplete"); B. evt.setParams ([results: results]); C. evt.afterEach(); D. evt.fire(); E. evt.get('SearchComplete');

A. var evt =$A.get("e.c.searchComplete"); B. evt.setParams ([results: results]); D. evt.fire();

Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers A. <apex:form> B. <apex:commandButton> C. <apex:actionSupport> D. <apex:actionStatus> E. <apex:commandLink>

B. <apex:commandButton> C. <apex:actionSupport> E. <apex:commandLink>

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? A. @RemoteAction B. @AuraEnabled(cachable=true) C. @RemoteAction(cachable=true) D. @AuraEnabled

B. @AuraEnabled(cachable=true)

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler. 01: 02: public class AccountSearcher { 03: public static List<AccountWrapper> search (String term) ( 04: List<AccountWrapper> wrappers = getMatchingAccountWrappers (term): return wrappers: } public class AccountWrapper { public Account { get; set; } public Decimal matchProbability { get; set; } } //...other methods, including getMatchingAccountWrappers // implementation... Which two changes should the developer make so the Apex method functions correctly? Choose 2 answers A. Add @AuraEnabled to line 09. B. Add @AureEnabled to line 03. C. Add @AuraEnabled to lines 11 and 12. D. Add AuraEnabled to line 01.

B. Add @AureEnabled to line 03. C. Add @AuraEnabled to lines 11 and 12.

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of Accountappers and is called imperatively from a JavaScript event handler. public class AccountSearcher { . public static List <Accountappers> search (String term){ . List <Accountapper> wrappers= getMatchingAccountappers (term); . return wrappers; } public class Accountwrapper { . public Account {get; set;) ; . public Decimal matchProbability {get; set;) ; } // ... other methods, including gotiatchingaccount rappers //implementation... } Which two changes should the developer make so the Apex method functions correctly? Choose 2 answers A. Add @AuraEnable(catchable=true) to line 5 B. Add Aura Enabled to lines 11 and 12 C. Add with sharing to line 1 D. Add Aura Enabled to line 03.

B. Add Aura Enabled to lines 11 and 12 D. Add Aura Enabled to line 03.

Users report that a button on a custom Lightning web component is not working. However, there are no other details provided. What should the developer use to ensure error messages are properly displayed? A. Use <lightning-message> tag B. Add JavaScript and HTML to display an error message. C. use <apex:message> tag D. Enable debug mode on SetUp

B. Add JavaScript and HTML to display an error message.

What must be done in the component to get data from Salesforce? A. Add the following code above record: @api(getRecord, { recordId: '$recordId', fileds: '$fields' }); B. Add the following code above record: @wire(getRecord, { recordId: '$recordId', fileds: '$fields' }); C. Add the following code above record: @api(getRecord, { recordId: '$recordId' }); D. Add the following code above record: @api(getRecord, { recordId: '$recordId' });

B. Add the following code above record: @wire(getRecord, { recordId: '$recordId', fileds: '$fields' });

Part of a custom Lightning component displays the total number of Opportunities in the org, which are in the millions. The Lightning component uses an Apex method to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the Lightning component? A. SUM() SOQL aggregate query on the Opportunity object B. COUNT() SOQL aggregate query on the Opportunity object C. SOQL for loop that counts the number of Opportunities records D. Apex batch job that counts the number of Opportunity records

B. COUNT() SOQL aggregate query on the Opportunity object

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. Use system.assert () in testSetup to verify the values are being returned. B. Call the Apex class method from a testMethod instead of the testsetup method. C. Verify the user has permissions passing a user into system.runAs(). D. Add @testVisible to the method in the class the developer is testing.

B. Call the Apex class method from a testMethod instead of the testsetup method.

Which use case can be performed only by using asynchronous Apex? A. Updating a record after the completion of an insert B. Calling a web service from an Apex trigger C. Making a call to schedule a batch process to complete in the future D. Processing tens of thousands of records

B. Calling a web service from an Apex trigger

A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity; or the Name of an Account and a Contact. Assuming the Name field exists, how should the developer do this? A. Use a String.replace() method to parse the contents of each Name field and then compare the results. B. Cast each object into an sobject and use sObject.get('Name') to compare the Name fields. C. Use the Salesforce Metadata API to extract the value of each object and compare the Name fields. D. Invoke a Schers.describe() function to compare the values of each Name field.

B. Cast each object into an sobject and use sObject.get('Name') to compare the Name fields.

Given the code above, which two changes need to be made in the Apex Controller for the code to work? Choose 2 answers A. Add @AuraEnabled(Cachable=true) to class definition B. Change the argument in the Apex Controller line 05 from JSONObject to string. C.Remove line 06 from the Apex Controller and instead use firstName in the return on line 07. D. Remove private from line 04

B. Change the argument in the Apex Controller line 05 from JSONObject to string. C.Remove line 06 from the Apex Controller and instead use firstName in the return on line 07.

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 about their input when trying to save a Lead record. Which best practice should the developer use to perform the validations on more than one field, thus allowing more than one error message to be displayed simultaneously? A. Server-side validation B. Client-side validation C. Validation rule D. Implement helper class

B. Client-side validation

Given the following information regarding Universal Containers (UC): UC represents their customers as Accounts in Salesforce. • All customers have a unique customer_umber that is unique across all of UC's systems. • UC also has a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. UC wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer pays their bills on time. What is the optimal way to implement this? A. Ensure customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly. B. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly. C. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code. D. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.

B. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.

A developer is asked to develop a new AppExchange 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? A. Custom settings B. Custom metadata C. Custom objects D. Custom labels

B. Custom metadata

Universal Containers implements a private sharing model for the Convention_Attendee__c custom object. As part of a new quality assurance effort, the company created an Event Reviewer__c user lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to. What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record? A. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers. B. Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing. C. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records with a group of Event Reviewers. D. Create a before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

B. Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

Universal Containers needs to integrate with a Heroku service that resizes product images submited by users. What are two alternatives to implement the integration and protect against maliclous calls to the Heroku app's endpoint? Choose 2 answers: A. Create a trigger that uses a @future Apex HTTP callout passing JSON serealized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce B. Create flow with outbound message action allowing Heroku app to automaticaly store the resized images in Salesforce C. Use the Heroku Connect as an Intermidialy service allowing the Heroku app to automatically store the resized images in Salesforce D. Create a trigger that uses a @future Apex HTTP callout passing JSON serealized data and some form of pre-shared secret key, so the Heroku app can authentificate requests and store the resized images in Salesforce.

B. Create flow with outbound message action allowing Heroku app to automaticaly store the resized images in Salesforce D. Create a trigger that uses a @future Apex HTTP callout passing JSON serealized data and some form of pre-shared secret key, so the Heroku app can authentificate requests and store the resized images in Salesforce.

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature can be used to ensure that the variables are testable in both Production and all Sandboxes? A. Custom variable B. Custom metadata C. Custom setting D. Custom object

B. Custom metadata

An org records customer order Information in a custom object, Order__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. Custom object B. Custom metadata type C. Custom list setting D. Custom hierarchy setting

B. Custom metadata type

An org records customer order information in a custom object, Order__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. Custom setting B. Custom metadata type C. Workflow rules D. Validation rules

B. Custom metadata type

Universal Containers (UC) currently does all development in its full copy sandbox. Recently, UC has projects that require multiple developers to develop concurrently. UC is running into issues with developers making changes that cause errors in work done by other developers. Additionally when they are ready to deploy, many unit tests fail which prevents the deployment. Which three types of orgs should be recommended to UIC to eliminate these problems? Choose 3 answers A. Data Migration org B. Development org C. Continuous Integration (CI) Org D. System Integration Org E. Staging Org

B. Development org D. System Integration Org E. Staging Org

A developer created the following test class to provide the proper code coverage for the snippet above: @isTest private class searchFeature_Test( @TestSetup private static void makeData() { //insert opportunities, accounts and lead @isTest private static searchRecords_Test(){ List<List<Object>> records=searchfeature.searchRecords ('Test'); System.assertNotEquals(records.size(),0); } } However, when the test runs, no data is retumed and the assertion fails. Which edit should the developer make to ensure the test class runs successfully? A. Implement the without sharing keyword in the searchFeature Apex class. B. Enclose the method call within Test.startTest() and Test.stopTest(). C. Implement the secallData-true attribute in the 31sTest annotation. D. Implement the setFixedSearchResults method in the test class.

B. Enclose the method call within Test.startTest() and Test.stopTest().

As part of a custom development, a developer creates a Lightning component to show how a particular opportunity progresses over time. The component must display the date stamp whan any of the following fields change: Amount, Probabily, tage, or Close Date How should the developer acces the data that must be displayed? A. Create a custom date fled on Opportunity for each fed o track the previous date and execute a SOQL query for dae feds B. Execute 2 SOQL query for Amount, Probabity, Stage, and Close Date on the OppartunityHistory object C. Subscribe to the Opportunityistory Change Data Capture event in the Lightning component. D. Subscribe to the Opportunity Change Data Capture event in the Lightning component.

B. Execute 2 SOQL query for Amount, Probabity, Stage, and Close Date on the OppartunityHistory object

A company uses their own built-in ERP system to handle order management. The company wants sales Reps to know their status of orders so that if customer calls to ask about their shipment, sales reps can advise the customer about the order status and tracking number if it has shipped Which two methods can make this ERP order data visible in Salesforce? Choose 2: A. Write a cron job in salesforce to poll the ERP system for order updates B. Have the ERP system push the data into Salesforce using SOAP API C. Ensure real time order data is in Salesforce using the Streaming API D. Use Salesforce Connect to view real time order data in ERP system

B. Have the ERP system push the data into Salesforce using SOAP API D. Use Salesforce Connect to view real time order data in ERP system

Contact object in an org Is configured with workflow rules that trigger field updates. The file are not updating even though the end user expects them to. The developer creates a debug log to troubleshout the problem What should developer specify to see the value of the workflow rule conditions and debug the problem? A. ERROR level for the Database log category B. INFO level for the Workflow log category C. INFO level for the Database log category D. ERROR level for the Workflow log category

B. INFO level for the Workflow log category

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? A. Set the setting type on the custom setting to List B. Replace custom settings with custom metadata. C. Replace custom settings with static resources. D. Set the setting type on the custom setting to Hierarchy.

B. Replace custom settings with custom metadata.

Just a prior to a new deployment to a salesforce administrator who configured a new order fulfilment process feature in a developer sandbox, suddenly left the company. As part of the UAT cycle, the users had fully tested all of the changes in the sandbox and signed off on them; making the Order fulfiliment feature ready for its go-live in the production environment. Unfortunately although a Change Set was started, it was not completed by the former administrator. A developer is brought in to finish the deployment. What should the developer do to identify the configuration changes that need to be moved into production? A. 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 B. Leverage the Setup Audit. Trial to review the changes made by a department administrator and identify which changes should be added to the change set. C. Set up continious integration and a git reposetory to automatically merge all changes from the sandbox metadata with the production metadata. D. In salesforce set up, look at the last modified date for every object to determine which should be added to a change set

B. Leverage the Setup Audit. Trial to review the changes made by a department administrator and identify which changes should be added to the change set.

A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience. What should the developer override the Case New Action with to satisfy the requirements? A. Lightning Record Page B. Lightning Component C. Lightning Flow D Lightning Page

B. Lightning Component

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 A. Process Builder B. Lightning web component C. Apex method that returns a Continuation object D. Screen Flow

B. Lightning web component C. Apex method that returns a Continuation object

Assuming the CreateOneAccount class creates one account and implements the Queueable interface, which syntax properly tests the Apex code? A. List<Account> accts; System.enqueueJob( new CreateOneAccount() ); Test.getFlexQueueOrder(); System.assertEquals( 1, accta.size() ); B. List<Account> accts: Test.startTest(); System.enqueueJob( new CreateOneAccount() ); Test.stoplest (); accts = [SELECT Id FRCM Account]: System.assertEquals(1, accts.size() ); C. List<Account> accts; System.enqueueJob( new CreateOneAccount() ); accts = [SELECT id FROM Account]: System.assertEquals(1, accts.size() ); D. List<Recount> accts; System.enqueueJob( new CreateOneAccount() ); Teat.startTest(); System.assertEquals (1, accts.size() }; Test.stopTest();

B. List<Account> accts: Test.startTest(); System.enqueueJob( new CreateOneAccount() ); Test.stoplest (); accts = [SELECT Id FRCM Account]: System.assertEquals(1, accts.size() );

A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setopplist function is not being invoked. @api stage; oppa; connectedCallback() { this.opps= this.setopplist (this.stage); } } What should the developer change to allow this? A. Create a custom event from the parent component to set the property. B. Move the logic to a getter/setter pair. C. Move the logic from connectedCallback() to constructor(). D. Move the logic from connectedCallback() to renderedCallback().

B. Move the logic to a getter/setter pair.

A developer is creating a Lightning Web Component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked. @api stage; opps; connectedCallback(){ this.opps = this.setOppList(this.stage); } } What should the developer change to allow this? A. Move the logic from connectedCallback() to constructor() B. Move the logic to getter/setter pair C. Create a custom event from the parent component to set the property D. Move the logic from connectedCallback() to renderedCallback()

B. Move the logic to getter/setter pair

An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CommissionBaseAccount__c when Opportunity is edited and the Opportunity's Amount changes. A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAccount__c and complex logic to calculate a value for a custom field, CommissionBaseAccount__c, when an Opportunity stage changes to Closed/Won. Users report that when they change the Opportunity stage changes to Closed/Won and also change the Amount during the same save, the CommissionBaseAccount__c Is incorrect. Which action should the developer take to correct this problem? A. Call the trigger from the process. B. Replace the process with a Fast Field Update record-trigger flow. C. Call the process from the trigger.

B. Replace the process with a Fast Field Update record-trigger flow.

A developer is trying to access org data from within a test class. Which sobject type requires the test class to have the (seeAllData=true) annotation? A. User B. Report C. Profile D. RecordType

B. Report

What should a developer use to query all Account fields for the Acme account in their sandbox? A. SELECT * FROM Account WHERE Name = "Acme" LIMIT 1 B. SELECT FIELDS (ALL) FROM Account WHERE Name = "Acme' LIMIT 1 C. SELECT ALL FIELDS FROM Account WHERE Name = "Acme' LIMIT 1 D. SELECT FIELDS (ALL) FROM Account WHERE Name = "Acme' LIMIT 1

B. SELECT FIELDS (ALL) FROM Account WHERE Name = "Acme" LIMIT 1

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? A. The developer should have called SP2 before calling SP3. B. SP3 became invalid when SP1 was rolled back. C. The developer used too many savepoints in one trigger session. D. The developer has too many DML statements between the savepoints.

B. SP3 became invalid when SP1 was rolled back.

A company has a Lightning page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning page? A. Salesforce Lightning Inspector Event Log tab B. Salesforce Lightning Inspector Storage tab C. Salesforce Lightning Inspector Transactions tab Salesforce Lightning D. Inspector Actions tab

B. Salesforce Lightning Inspector Storage tab

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. for (Lead 1: Trigger.new) { Region_c reg= [SELECT Region_Name_c FROM Region_c WHERE Zip Code_c = :1. PostalCode]; Region _c = reg.Region_Name_c } B. Set<String> zips = new Set<String>(): for (Lead 1: Trigger.new) { if (1.PostalCode != Null) { zips.add(1.PostalCode); } } C. List<Region_c> regions = [SELECT Zip Code_c, Region Name c FROM Region_c WHERE Zip Code_c IN :zips];

B. Set<String> zips = new Set<String>(): for (Lead 1: Trigger.new) { if (1.PostalCode != Null) { zips.add(1.PostalCode); } }

Universal Containers (UC) currently does all development in its full copy sandbox Recently, UC has projects that require multiple developers to develop concurrently. UC is running into issues with developers making changes that cause errors in work done by other developers. Additionally, when they are ready to deploy, many unit tests fail which prevents the deployment Which three types of orgs should be recommended to UC to eliminate these problems? Choose 3 answers A. Enterprise org B. Staging org C. Development org D. Integration org E. Data Migration org

B. Staging org C. Development org E. Data Migration org

public class OpportunityController{ @AuraEnabled public static list<opportunity> searchOppById(string caseId){ list<opportunity> oppLst = [select id, name from opportunity where external_case_id__c in :caseId]; return oppLst; } } Which to technic should be implemented to avoid low performance querying from executing? Choose two: A. Implement with sharing keyword on the apex class B. Use SOSL instead SOQL to perform text-based search C. Implement LIMIT clause in the query D. Ensure input is not null

B. Use SOSL instead SOQL to perform text-based search C. Implement LIMIT clause in the query

What is a benefit of JS remotig over VF remote objects? A. Allows for specified re-rendered tags B. Support complex server-side application logic C. Does not require Apex code D. Does not require JS code

B. Support complex server-side application logic

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an asynchronous method? A. The callouts will be made in an Apex test class. B. The callouts will be made in an Apex trigger. C. Over 10 callouts will be made in a single transaction. D. The callout could take longer than 60 seconds to complete.

B. The callouts will be made in an Apex trigger.

A developer creates an application event that has triggered an infinite loop. What may have caused this problem? A. Using DML statement inside trigger B. The event is fired from a custom renderer C. The condition inside loop is never true D. Record updated twice inside operation

B. The event is fired from a custom renderer

A company accepts orders for customers in their enterprise resource planning (ERP) system that must be integrated into Salesforce as Order__c records with a lookup field to Account. The Account object has an external ID field, ERP_Customer_ID__c. What should the integration use to create new Order_c records that will automatically be related to the correct Account? A. Insert on the Ordes__c object followed by an update on the Order__c object. B. Upsert on the Order__c object and specify the ERP_Customer_ID__c for the Account relationship. C. Merge on the Order__c object and specify the ERP_Customer_ID_ for the Account relationship. D. Upsert on the Account and specify the ERF_Customer_ID__c for the relationship.

B. Upsert on the Order__c object and specify the ERP_Customer_ID__c for the Account relationship.

A company has an Apex process that makes multiple extensive database operations and web service callouts. The database processes and web services can take a long time to run and must be run sequentially. How should the developer write this Apex code without running into governor limits and system limitations? A. Implement Batchable interface B. Use Queueable Apex to chain the jobs to run C. Implement Schedulable interface D. Chain jobs with Flow

B. Use Queueable Apex to chain the jobs to run

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page. What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page? A. Use System.profilele() to test as an administrator and a community user. B. Use System.runAs() to test as a sales rep and a community user. C. Use System.profiles() to test as a sales rep and a community user. D. Use System.runAs () to test as an administrator and a community user.

B. Use System.runAs() to test as a sales rep and a community user.

A developer implemented a custom data table in LWC with filter, but change filter takes long time. How to improve? A. Use selective SOQL queries B. Use setStorable() C. Use SOSL D. Return all records into list

B. Use setStorable()

A developer recently released functionality to production that performs complex commission calculations in Apex code called from an Opportunity trigger. Users report that the calculations seem incorrect because the values they see for commissions are wrong. The developer has representative test data in their developer sandbox. Which three tools or techniques should the developer use to execute the code and pause it at key lines to visually inspect values of various Apex variables? Choose 3 answers A. Lightning Web Component B. Visual Studio Code C. Apex Replay Debugger D. Enable debug mode E. Developer Console

B. Visual Studio Code C. Apex Replay Debugger E. Developer Console

Which technique can run custom logic when a Lightning web component is loaded? A. enqueueAction passing in the method to call. B. Use the connectedCallback () method C. Use an aura:handler "init" event to call a function. D. Use the renderedCallback ( ) method.

B. Use the connectedCallback () method

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? A. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic. B. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic. C. 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. D. Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

B. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.

import { LightningElement } from 'lwc'; import getOrders from '@apex/OrderController.getAvaliableOrdrs'; export default class OrderManagement extends LightningElement { orders; errors; @wire(getOrders) wiredOrders({error, data}) { if(data){ this.orders = data; this.errors = undefined; } else if(error){ this.errors = error; this.orders = undefined; } } } When component deployed error has occured How to fix this A. import { LightningElement, api } from 'lwc'; B. import getOrders from '@salesforce/apex/OrderController.getAvaliableOrdrs'; C. import getOrders from '@salesforce/apex/c.OrderController.getAvaliableOrdrs'; D. import { LightningElement, wire } from 'lwc';

B. import getOrders from '@salesforce/apex/OrderController.getAvaliableOrdrs'; D. import { LightningElement, wire } from 'lwc';

A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library. Which statement properly loads the static resource within the LWC? A. const jeUtility SA.get('SResource.jaUtile'); B. import jsUtilities from '@salesforce/resourceUrl/jsUtils'; C. import { jsUtilities } from '@salesforce/resourceUrl/jsUtils'; D. <lightning-require scripts="(!$Resource.jsUtils)"/>

B. import jsUtilities from '@salesforce/resourceUrl/jsUtils';

Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event. The developer is working on a Lightning web component to display the information. What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event? A. import { subscribe, unsubscribe, onError } from 'lightning/pubsub' B. import { subscribe, unsubscribe, onError } from 'lightning/empApi' C. import { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate' D. import { subscribe, unsubscribe, onError } from 'lightning/MessageChannel'

B. import { subscribe, unsubscribe, onError } from 'lightning/empApi'

Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. t should update In real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event. The developer Is working on a Lightning web component to display the information. What should be added to the Lightning web component to alow the developer to interact with the Server Update platform event? A. import { subscribe, unsubscribe, onError } from 'lightning/MessageChannel' B. import { subscribe, unsubscribe, onError } from 'lightning/empApi' C. import { subscribe, unsubscribe, onError } from 'lightning/pubsub' D. import { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'

B. import { subscribe, unsubscribe, onError } from 'lightning/empApi'

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 A. lightning-navigation B. lightning-layout-item C. lightning-input-location D. lightning-layout

B. lightning-layout-item D. lightning-layout

Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 A. method makes web service callout B. not annotated with cachable=true C. Call with click button D. Call method that is external to LWC component

B. not annotated with cachable=true C. Call with click button

A large company uses Salesforce across several departments. Each department has its own Administrator. It was agreed that each Administrator would have their own sandoox. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Winich two statements are true regarding these issue and resolution? Choose 2 answers A. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production. B. sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production. C. Page Layouts should never be deployed via Change Sets, as this causes Fleld-Level Security to be reset and fields to disappear. D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts in production.

B. sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production. D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts in production.

Which tag should a developer use to display different text while an <apex:cormandBusson> Is processing an action? A. <apex:actionFoller> B. <apex:pageMessage> C. <apex:actionStatus> A. <apex:actionFoller>

C. <apex:actionStatus>

Code below using in Visualforce search page global with sharing MyRemoter{ public string accountName { get; set; } public static Account { get; set; } public MyRemoter(){} @RemoteAction global static account getAccount(string accountName){ account = [select id, name, numberOfEmployees from account where name = :accountName]; return account; } } How to test it? A. MyRemoter remote = new MyRemoter('Test Account'); Account a = remote.getAccount(); System.assertEquals('Test Account', a.name); B. MyRemoter remote = new MyRemoter(); Account a = remote.getAccount('Test Account'); System.assertEquals('Test Account', a.name); C. Account a = MyRemoter.getAccount('Test Account'); System.assertEquals('Test Account', a.name); D. Account a = controller.getAccount('Test Account'); System.assertEquals('Test Account', a.name);

C. Account a = MyRemoter.getAccount('Test Account'); System.assertEquals('Test Account', a.name);

Refer to the test method below. @isTest static void testAccount Update() { . Account acct = new Account (Name = 'Test'); . acct.Integration_Updated__c = false; . insert acct; . CalloutUtil.sendAccount Update (acet.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 calls a web service that updates an external system with Account information and sets the Account's Integration Updated_e 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? A. Add if (!Test.isRunningTest()) around calloutUtil.sendAccount Update. B. Add Test.startTest() before and Test.setMock and Test.stopTest() after calloutUtal.sendAccount Update. C. Add Test.startTest() and Test.setMock before and Test.stopTest () after calloutUtil.sendAccount Update. D. Add Test.startTest() before and Test.stopTest() after calloutUtil.sendAccount Update.

C. Add Test.startTest() and Test.setMock before and Test.stopTest () after calloutUtil.sendAccount Update.

A developer is asked to create a Lightning web component that will be invoked via a button on a record page. The component must be displayed in a modal dialog. Which three steps should the developer take to achieve this? A. In targetConfigs, add lightning_AppPage as a target. B. Set event Type to Action. C. Add a targetConfig and set targets to lightning_RecordAction. D. Set actionType to ScreenRotion. E. In targets, add lightning_RecordAction as a target.

C. Add a targetConfig and set targets to lightning_RecordAction. D. Set actionType to ScreenRotion. E. In targets, add lightning_RecordAction as a target.

Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity. Whenever a new line of business is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity's stage is changed to Closed/Won, its commission should be calculated in real time. What should a developer use so that different implementations of the commission calculation can be invoked on the stage change? A. A final class with multiple methods B. Apex Describe Schema methods C. An Apex class with a custom enum D. An interface and implementing classes

C. An Apex class with a custom enum

Universal Containers wants to use a Customer Community with Customer Community Plus licenses to allow their customers access to track how many containers they have rented and when they are due back. Universal Containers uses a Private sharing model for External users. Many of their customers are multi-national corporations with complex Account hierarchies. Each account on the hierarchy represents a department within the same business. One of the requirements is to allow certain community users within the same Account hierarchy to see several departments' containers, based on a custom junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements? A. A custom list view on the junction object with filters that will show the proper records based on owner B. A Lightning web component on the Community Home Page that uses Lightning Data Services. C. An Apex trigger that creates Apex managed sharing records based on the junction object's relationships D. A Visualforce page that uses a custom controller that specifies without sharing to expose the records

C. An Apex trigger that creates Apex managed sharing records based on the junction object's relationships

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 A. Process Builder B. Screen Flow C. Apex methed that returns continuation object D. Lightning Web Component

C. Apex methed that returns continuation object D. Lightning Web Component

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, Auditor__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__c, that is used to automatically assign the correct user to the Account's Auditor__c field. trigger AccountTrigger on Account (before insert) { AuditAssigner.setAuditor(Trigger.new); } public class AuditAssigner { public static void setAuditor (List<Account> accounts) { for (User u: [SELECT Id, Audit Codec FROM User]) { for Gocount à : accounts) { if (u.Audit Code.Audit Code_c) { a.Auditor__r.Id: } } } } } What should be changed to most optimize the code's efficiency? Choose 2 answers A. Build a Map<String, List<Account>> of audit code to accounts. B. Add an initial SOQL query to get all distinct audit codes. Build a C. Build a Map<Id, List<String>> of Account Id to audit codes. D. Add a WHERE clause to the SOQL query to filter on audit codes.

C. Build a Map<Id, List<String>> of Account Id to audit codes. D. Add a WHERE clause to the SOQL query to filter on audit codes.

Which use case can be performed only by using asynchronous Apex? A. Call API more than 16 times B. Call API from Screen Flow C. Calling a web service from an Apex trigger D. Calling a web service with DML operation

C. Calling a web service from an Apex trigger

Which use case can be performed only by using asynchronous Apex? A. Updating a record after the completion of an insert B. Querying tens of thousands of records C. Calling a web service from an Apex trigger D. Making a call to schedule a batch process to complete In the future

C. Calling a web service from an Apex trigger

Refer to the Aura component below: Component markup: <aura:component> <aura:attribute name="contactInfo" type="object"/> <aura:attribute name="showContactInfo" type="boolean" default="true"/> <aura:handler name="init" value="(this)" action="(!c.init)"/> <!-- other code .... --> <aura:if 18True="{!v.showContactInfo)"> <c:contactInfo values" (!v.contactInfo)"/> </aura:if> </aura:component> Controller JS: init: function (cmp, helper) { 1. //...other code ... var show helper.getShowContactInfo(); cmp.set("v.showContactInfo", show); // other code... }); 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 showContactInfo to "false". D. Move the contents of cc:contactInfo> into the component.

C. Change the default for showContactInfo to "false".

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? A. Call sObject.getType() method B. Look at isCustom field on each object C. Check the isCustom () value on the sObject describe result D. Look if object definition contains __c trace ending

C. Check the isCustom () value on the sObject describe result

A developer is tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in Lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabs and interact with the Salesforce Console APIs. What are two approaches a developer can take to build the application and support the business requirements? Choose 2 answers A. Create the application using Lightning Experience Builder. B. Create the application using Aura Components wrapped in Lightning Web Components. C. Create the application using Aura Components. D. Create the application using Lightning Web Components wrapped in Aura Components

C. Create the application using Aura Components. D. Create the application using Lightning Web Components wrapped in Aura Components

Developer noticed that tests take long time to run. What to do to fix this? A. Ensure proper usage of test data factory B. Define a method that creates test data and anotate it with @createData C. Define a method that creates test data and anotate it with @testSetup D. Reduce the amount of test methods

C. Define a method that creates test data and anotate it with @testSetup

A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. Depending on company personnel resources, what are two ways to automate this? Choose 2 answers A. Apex invocable method B. Remote action C. Flow Builder D. Apex trigger

C. Flow Builder D. Apex trigger

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 record read only access to the Defect record on the Reviewer___c record? A. Apex managed sharing B. View All on Defect__c C. Criteria-based sharing D. Lightning web component

C. Criteria-based sharing

An org records customer order information in a custom object, Order__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. Custom list setting B. Custom hierarchy setting C. Custom metadata type D. Custom object

C. Custom metadata type

A developer Is asked to find a way to store secret data with an ability to specify which profiles and users can access it What should be used to store this data? A. System.Cookie class B. Static resourses C. Custom settings D. Custom metadata

C. Custom settings

Which method should be used to convert a Date to a String in the current user's locale? A. String.format; B. String.valueOf; C. Date.format; D. Date.parse;

C. Date.format;

How should a developer reference a third-party JavaScript library from a Lightning component? A. From an asset file B. From a document C. From a static resource D. From a third-party URL

C. From a static resource

Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch job runs. What is the appropriate publish/subscribe logic to meet this requirement? A. Have the external system subscribe to a standard Platform Event that gets fired with with EventBus.publish()- B. Have the external system subscribe to a custom Platform Event that gets fired with addError(). C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish(). D Have the external system subscribe to a standard Platform Event that gets fired.

C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish().

Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch job runs. What is the appropriate publish/subscribe logic to meet this requirement? A. Have the external system subscribe to a standard Platform Event that gets fired with with EventBus.publish()- B. Have the external system subscribe to a custom Platform Event that gets fired with addError(). C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish(). D Have the external system subscribe to a standard Platform Event that gets fired.

C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish().

A developer created a class that implements the Queueabie Interface, as follows: public class without sharing OrderQueueablelcb implements Queueable { public void execute (QueueableContext context) { // implementaticn logic System. enqueuableJob(new FollcwUplehb()); } } As part of the deployment process, the developer is asked to create a corresponding test class. Which two actions should the developer take fo successfully execute the test class? Choose 2 answers A. Implement seeAllDaza=true to ensure the Queueable job is able to run In bulk mode. B. Ensure the running user of the test class has, at least. the View All permission on the Order object C. Implement Test.isRunningTest() lo prevent chaining jobs during test execution. D. Enclose System.enqueueJob(new OrderQueueableJob()) within Test.startTest and Test.stopTest()

C. Implement Test.isRunningTest() to prevent chaining jobs during test execution. D. Enclose System. enqueueJob (new OrderQueueableJob()) within Test.startTest and Test.stopTest()

A developer is asked to look into an issue where a scheduled Apex is running inte 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 d per do to the limit error? A. Use platform events, B. Use the @future annotation, C. Implement the Batchable interface. D. Implement the Queuable interface.

C. Implement the Batchable interface.

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? A. Use platform events. B. Use the @future annotation. C. Implement the Batchable interface. D. Implement the Queueable interface.

C. Implement the Batchable interface.

A developer wrote an Apex class to make several callouts to an external system. If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class? A. Session Id B. Remote site settings C. Named credentials D. Connected apps

C. Named credentials

Just prior to a new deployment the Salesforce administrator, who configured a new order fulfillment process feature in a developer sandbox, suddenly left the company. As part of the UAT cycle, the users had fully tested all of the changes in the sandbox and signed off on them; making the Order fulfillment feature ready for its go-live in the production environment. Unfortunately although a Change Set was started, it was not completed by the former administrator. A developer is brought in to finish the deployment. What should the developer do to identify the configuration changes that need to be moved into production? A. In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set. B. Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata. C. 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. D. 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.

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

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 should the dev use to implement these requirements? Choose 2 A. Process Builder B. Screen Flow C. Lightning web component D. Apex method that retums a Continuation object

C. Lightning web component D. Apex method that retums a Continuation object

A developer is creating a page in App Builder that will be used In the Salesforce mobile app. Which two practices shouid the developer follow to ensure the page operates with optimal performance? Choose 2 answers A. Limit the number of Tabs and Accordion components. B. Limit 25 fields on the record detail page. C. Limit five visible components on the page. D. Analyze the page with Performance Analysis for App Buller.

C. Limit five visible components on the page. D. Analyze the page with Performance Analysis for App Buller.

Assuming the CreateOneAccount class creates one account and implements the Queueable interface, which syntax properly tests the Apex code? A. List<Account> accts; System.enqueueJob( new CreateOneAccount () ); Test.getFlexQueueOrder(); System.assertEquals( 1, acots.size() ); B. List<Account> accts; System.enqueueJob( new CreateOneAccount () ); Test.startTest(); System.assertEquals(1, acots.size() ); Test.stopTest(); C. List Account> accts; Test.startTest(); System.enqueueJob( new CreateOneAccount () ); Test.stopTest(); accts [SELECT Id FROM Account]; System.assertEquals(1, accts.size() ); D. List<Account> accts; System.enqueueJob( new CreateOneAccount () ); accts = [SELECT Id FROM Account]; System.assertEquals(1, accts.size() );

C. List Account> accts; Test.startTest(); System.enqueueJob( new CreateOneAccount () ); Test.stopTest(); accts [SELECT Id FROM Account]; System.assertEquals(1, accts.size() );

A developer is writing a Jest test for a Lightning web component that conditionally displays child components based on a user's checkbox selections. What should the developer do to properly test that the correct components display and hide for each scenario? A. Create a new describe block for each test. B. Create a new jadom instance for each test. C. Reset the DOM after each test with the afterEach() method. D. Add a teardown block to reset the DOM after each test.

C. Reset the DOM after each test with the afterEach() method.

A company needs to automatically delete sensitive information after seven years. This could delete almost a million records every day. How can this be achieved? A. Schedule a schedulable Apex process to run every day that queries and deletes records older than seven years. B. Schedule a queueable Apex process to run every day that queries and deletes records older than seven years. C. Schedule a batch Apex process to run every day that queries and deletes records older than seven years. D. Define Apex class with @future decorator

C. Schedule a batch Apex process to run every day that queries and deletes records older than seven years.

Which statement Is true regarding savepoints? A. Savepoints are not limited by DML statement governor limits. B. You can roll back to any savepoint variable created in any order. C. Static variables are not reverted during a rollback. D. Reference to savepoints can cross trigger invocations

C. Static variables are not reverted during a rollback.

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an asynchronous method? A. The callout could take longer than 60 seconds to complete. B. Over 10 callouts will be made in a single transaction. C. The callouts will be made in an Apex trigger. D. The callouts will be made using the REST API.

C. The callouts will be made in an Apex trigger.

Another_Object__c another0bj = [SELECT ID, Option__c FROM Another_Object__c WHERE Some Object_e = :someObj.Name LIMIT 1 ]; MyDataWrapper theData = new MyDataWrapper(); theData.Name = some0bj.Name: theData.Option anotherObj.Option__c return theData; public class MyDataWrapper { public String Name { get; set; } public String Option { get; set; } public MyDataWrapper() {} } The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSomeData(). What is wrong? A. The member's Name and option should not be declared public. B. Instances of Apex classes, such as MyDatalizapper, cannot be returned to a Lightning component. C. The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also. D. The member's Name and Option should not have getter and setter.

C. The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.

Question: Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user? A. Base sharing rule B. Share record with Flow C. The record can be shared using an Apex class. D. Define sharing rule

C. The record can be shared using an Apex class.

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer. What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user? A. The record can be shared using a permission set. B. The record can be shared using a sharing rule. C. The record can be shared using an Apex class. D. The record cannot be shared with the current setup.

C. The record can be shared using an Apex class.

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer. What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user? A. The record can be shared using a sharing rule. B. The record can be shared using a permission set. C. The record can be shared using an Apex class. D. The record cannot be shared with the current setup.

C. The record can be shared using an Apex class.

A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails. What might be causing the failed assertion? A. The test class has not defined an Account owner when inserting the test data. B. The test class is not using System.runAs() to run tests as a Salesforce administrator. C. The test class has not requeried the Account record after updating the Opportunity. D. The test class has not implemented seeAllData=true in the test method.

C. The test class has not requeried the Account record after updating the Opportunity.

Which governor limits is likely to be executed when the trigger runs within a scope of 200 newly inserted accounts? A. Total number of records processed as a result of DML B. Total number of SOSL query issued C. Total number of DML statements issued D. Total number of SOQL query issued

C. Total number of DML statements issued

A company uses Opportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue object. As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic. They estimate that roughly 100,000 Opportunities will have Revenue records created and populated. What is the optimal way to automate this? A. Use system.scheduleJob() to schedule a Database. Scheduleable class. B. Use System.enqueueJob () to invoke a queueable class. C. Use Database.executeBatch () to invoke a Database.Batchable class. D. Use Database.executeBatch() to invoke a Queueable class.

C. Use Database.executeBatch () to invoke a Database.Batchable class.

When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales orders, phone calls, or Cases. The date range for recent interactions will be different for every customer record type. How can this be accomplished? A. Use Lightning Flow with Apex helper class B. Use sObject.getType() C. Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page D. Use Workflow rules

C. Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page

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 of equal to $1,000,000. However, this criteria value can change over time. There is a new requirement to aiso display high value opportunities in a Lightning web component. 'Which two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated in more than one place? Choose 2 answers A. Call the trigger from the Lightning web component. B. Leave the business logic code inside the trigger for efficiency. C. Use custom metadata to hold the high value amount. D. Create a helper class that fetches the high value opportunities.

C. Use custom metadata to hold the high value amount. D. Create a helper class that fetches the high value opportunities.

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance? A. Use the transient keyword for the List variables used in the custom controller. B. Use an <apex:actionPoller> in the page to load all of the data asynchronously. C. Use lazy loading to load the data on demand, instead of in the controller's constructor. D. Use Javascript to move data processing to the browser instead of the controller.

C. Use lazy loading to load the data on demand, instead of in the controller's constructor.

Universal Containers (UC) has enabled the translation workbench and has translated pickiist values. UC has a custom multi-select pickiist field, Products__c, on the Account object that allows sales reps to specity which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Products__c field. What should the developer do to ensure the value of Products__c is in the current user's language? A. Set the locale on each record in the SOQL result ist B. Use the locale clause in the SOOL query. C. Use toLabel(Praducts__c) in the flekis list of the SOQL query. D. Call the translate () method on each record in the SOOL result list.

C. Use toLabel(Praducts__c) in the flekis list of the SOQL query.

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? A. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic. B. 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. C. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic. D. Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

C. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.

A developer created a JavaScript library that simplifies the development of repetitive tasks Which satements properly loads resource? A. const jeUtility SA.get('SResource.jaUtile'); B. import jsutilities from '@salesforce/resourceUrl/jsUtils'; C. import { jsUtilities } from '@salesforce/resourceUrl/jsUtils'; D. <lightning-require scripts="(!$Resource.jsUtils)"/>

C. import { jsUtilities } from '@salesforce/resourceUrl/jsUtils';

When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a unique name of "ERPSecCertificate". Consider the following code snippet: HttpRequest req = new HttpRequest(); ... // rest of request Which method must the developer implement in order to sign the HTTP request with the certificate? A. Certificate cf = new Certificate(setClientCertificateName('ERPSecCertificate')); B. Setup remote site setting C. reg.setClientCertificateName('ERPSecCertificate'); D. Define new WebMock inner class

C. reg.setClientCertificateName('ERPSecCertificate');

Refer to the component code and requirements below: <iightaing:layout multipleRcws="true"> <lightning:layoutlvem size="12">{!v.account.Name} </1ighting:layouricem> <lightning:layoutItem size="12">{!v.account.AccountNumber} </1ighting:layoutIzem> <lightaing:layoutltem size="12">(!v.Account.Industry} </1ighting:layoutitem> </1ightning:layout> Requirements: 1. For mobile devices, the information should display in three rows. 2 For desktops and tablets, the information should display In a single row. Requirement 2 is not displaying as desired Which option has the correct component code to meet the requirements for desktops and and tablets? A. <lightning:layout multipleRows="true"> <lightning:layoutltem size="12" largeDeviceSize="4">{!v.account.Name} <layoutltem size="12" largeDeviceSize="4">{!v.account.AccountNumber} <layoutItem size="12" largeDeviceSize="4">{!v.account.Industry} B. <lightning:layout multipleRows="true"> <lightning:layoutltem size=*12" mediumDeviceSize="6">{!v.account.Name} <layoutltem size="12" mediumDeviceSize="6">{!v.account.AccountNumber} <layoutItem size="12" mediumDeviceSize="6">{!v.account.Industry} C. <lightning:layout multipleRows="true"> <lightning:layoutltem size="12" mediumDeviceSize="6" largeDeviceSize="4">{!v.account.Name} <layoutltem size="12" mediumDeviceSize="6" largeDeviceSize="4">{!v.account.AccountNumber} <layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">{!v.account.Industry} D. <lightning:layout multipleRows="true"> <lightning:layoutltem size="12" mediumDeviceSize="4">{!v.account.Name} <layoutltem size="12" mediumDeviceSize="4">{!v.account.AccountNumber} <layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry}

D. <lightning:layout multipleRows="true"> <lightning:layoutltem size="12" mediumDeviceSize="4">{!v.account.Name} <layoutltem size="12" mediumDeviceSize="4">{!v.account.AccountNumber} <layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry}

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencyIsoCode text field that contains the currency code they should use. If a Catalog's CurrencyIsoCode changes, all of its Catalog Items' CurrencyIsoCodes should be changed as well. What should a developer use to update the Currency IsoCodes on the Catalog Items when the Catalog's CurrencyIsoCode changes? A. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencyIsoCode is different B. A Database.Schedulable and Database. Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyISoCode is different C. An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencyIsoCode is different D. A Database. Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyISoCode is different

D. A Database. Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyISoCode is different

An Apex trigger creates an Order__c record every time an opportunity is won by a Sales Rep.Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this? A. Add try/catch block B. Implement database savepoint C. Use Flow Builder instead Apex trigger D. Add system.debug() statements to the code and use the Developer Console logs to trace the code

D. Add system.debug() statements to the code and use the Developer Console logs to trace the code

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a Master-Detail field to Catalog, and each Catalog may have as many as 100`000 Catalog Items. Both objects have a CurrencyIsoCode text field that contains the currency code they should use. If Catalog's CurrencyIsoCode changes, all of it's CatalogItems should be Changes as well. What should a developer use to update the CurrencyIsoCodes on the CatalogItems when the Catalog's CurrencyIsoCode changes? A. An after insert trigger on Catalog that updates the Catalog Items if Catalog's CurrencyIsoCode is different B. A Database.Schedulable and Databse.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencyIsoCode is different C. An after insert trigger on Catalog Item that updates the Catalog Items if Catalog's CurrencyIsoCode is different D. A Database.Schedulable and Databse.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyIsoCode is different

D. A Database.Schedulable and Databse.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencyIsoCode is different

A developer is working on a set of custom Aura components that can be individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components should get other information related to the selected Account and display it. Which event should the c:searchAccounts component fire to make it known that an Account is selected? A. An application event B. A refreshView event C. A publish event D. A component event

D. A component event

Users report that a button on a custom Lightning web component is not working. However, there are no other details provided. What should the developer use to ensure error messages are properly displayed? A. Add the <apex:messages/> tag to the component. B. Add a try-catch block surrounding the DML statement. C. Use the Database method with allortone set to false. D. Add JavaScript and HTML to display an error message.

D. Add JavaScript and HTML to display an error message.

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price. JavaScript: import { LightningElement } from 'lwc'; export default class OrderLineItem extends LightningElement { @api quantity: @api unitPrice: } Template Markup: <template> <div> Quantity: {quantity} <br /> Unit Price: {unitPrice} <br /> </div> </template> What must be added to display the total? A. Add Total: (multiply (quantity, unitPrice)) in the template. B. Add Total: (Quantity unitPrice) in the template. C. Add calculateTotal() { return quantity unitPrice: to the JavaScript and Total: (calculateTotal()) in the template. D. Add get total() { return quantity * unitPrice }; to the JavaScript and Total: (total) in the template.

D. Add get total() { return quantity * unitPrice }; to the JavaScript and Total: (total) in the template.

A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity's stage is changed, a workflow rule is fired to increase the value of a field by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5. A user changes the stage of an Opportunity and manually sets the count field to 4. The count field updates to 5, but the child record is not created. What is the reason this is happening? A. After triggers fire before workflow rules. B. Trigger.old does not contain the updated value of the count field. C. Trigger.new does not change after a field update. D. After triggers are not fired after field updates.

D. After triggers are not fired after field updates.

A company has reference data stored in multiple custom metadata records that represent default information and delete behaviour for certain geographic regions. When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. What is the optimal way to automate this? A. Implement helper class B. Flow Builder C. Use addError static method D. Apex trigger

D. Apex trigger

For compilance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than once object and over time, they preict they will have hundreds of millions of records What should a developer use to implement this? A. Setup Audit Trial B. Field History tracking C. Field Audit Trial D. Big Objects

D. Big Objects

Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to walt for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems. Based on these requirements, which method should a developer use to create the records In Salesforce? A. REST API request using B. REST API request using co C. Apex web services D. Bulk API 2.0

D. Bulk API 2.0

A developer created the code below to perform an HTTP GET request to an external system. public class ERPCatalog { private final ERF_CATALOG_URL = 'http//sampleCatalog.com/cat public String getERPCatalogContents() { Http h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint(ERF_CATALOG_URL); req.setMethod('SET' ); HttpResponse res = h.send(req); return res.getBody(); } } 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 resolve the callout exception? A. Create a remote site setting configuration that includes the endpoint. B. Annotate the getERPCatalogContents method with Future (Callout-true) C. Use the setReader() method to specify Basic Authentication. D. Change the access modifier for ERPCatalog from public to global.

D. Change the access modifier for ERPCatalog from public to global.

A developer created the code below to perform an HTTP GET request to an external system. public class ERPCatalog { private final ERF_CATALOG_URL = 'http//sampleCatalog.com/cat'; public String getERPCatalogContents() { Http h = new Http(); HttpRequest req = new HttpRequeat (); req.setEndpoint (ERF_CATALOG_URL); req.setMethod('SEI' ); HttpResponse res = h.send(req); return res.getBody(); } } 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 resolve the callout exception? A. Create a remote site setting configuration that includes the endpoint. B. Annotate the getERPCatalogContents method with Future (Callout-true) C. Use the setReader() method to specify Basic Authentication. D. Change the access modifier for ERPCatalog from public to global.

D. Change the access modifier for ERPCatalog from public to global.

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. public void updateAndMakeCallout (Map<Id, Request_c> regs, Map<Id, Request Line c> reqLines) { Savepoint sp = Database.setSavepoint(); try { insert reqs.values(); insert reqLines.values(); HttpResponse response = CalloutUtil.makeRestCallout (reqs.keyset (), reqLines.keySet()); } catch (Exception e) { Database.rollback (sp); System.debug(e); } 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? A. Move the calloutUtil.makeRestCallout method call below the catch block. B. Change the calloutUtil.makeRestCallout to an @InvocableMethod method. C. Remove the Database, set Savepoint and Database.rollback. D. Change the calloutUtil.makeRestCallout to an @future method.

D. Change the calloutUtil.makeRestCallout to an @future method.

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process. How should a developer implement the callouts? A. An HTTP REST callout for the billing callout and a Continuation for the tax callout B. An HTTP REST callout for both the billing callout and the tax callout C. A Continuation for the billing callout and an HTTP REST callout for the tax callout D. Continuation for both the billing callout and the tax callout

D. Continuation for both the billing callout and the tax callout

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 data @wire (recordList,{recordId:'$recordId'}) records(result) { . if(result.data){ . this.data=result.data; } else if(result.error){ . this.showToast(result,error); } What should the developer change in the code above for this to happen? A. Use Apex Controller class B. Create Apex class which returns continuation Object C. Create Apex helper class D. Create a variable to store the result and call refreshApex.

D. Create a variable to store the result and call refreshApex.

A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data? A. Static resources B. Custom metadata C. System.Cookie class D. Custom settings

D. Custom settings

Which method should be used to convert a Date to a String in the current user's locale? A. String.valueOf B. String.format C. Date.parse D. Date.format

D. Date.format

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 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? A. Try/catch/finally block B. Apex trigger C. Validation rules D. External JavaScript library

D. External JavaScript library

After platform event published in Salesforce, event can be published via which mechanism? A. Internal Apps can use outbound message B. Internal Apps can use entitlement proccess C. External apps require standard Streaming API D. External apps use an API to publish event message

D. External apps use an API to publish event message

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 an event on an event channel. B. Publish a message on a message channel. C. Fire an application event. D. Fire a custom component event.

D. Fire a custom component event.

A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script. Following best practices, what the optimal approach to satisfy this requirement? A. Approvals B. Apex trigger C. Enstain next best action D. Flow builder

D. Flow builder

A developer created the following test class to provide the proper code coverage for the snippet above: @isTest private class searchFeature_Test( @TestSetup private static void makeData() { //insert opportunities, accounts and lead @isTest private static searchRecords_Test(){ List<List<Object>> records=searchfeature.searchRecords ('Test'); System.assertNotEquals(records.size(),0); } } However, when the test runs, no data is retumed and the assertion fails. Which edit should the developer make to ensure the test class runs successfully? A. Implement the without sharing keyword in the searchFeature Apex class. B. Enclose the method call within Test.startTest() and Test.stopTest(). C. Implement the secallData-true attribute in the 31sTest annotation. D. Implement the setFixedSearchResults method in the test class.

D. Implement the setFixedSearchResults method in the test class.

Universal Containers needs 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? A. Trigger with HTTP callout B. Platform event C. PushTopic event D. Outbound message

D. Outbound message

Universal Containers needs 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? A. Trigger with HTTP callout B. Platform event C. PushTopic event D. Outbound message

D. Outbound message

Refer to the markup below: <template> <!-- other code ... --> <lightning-record-form record-id=(recordId) object-api-name- "Account" layout-type="Full"> </lightning-record-form> </template> A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly. What can the developer do to improve the performance? A. Replace layout-type="Full" with layout-type="Partial". B. Add cache="true" to the component. C. Add density-"compact" to the component. D. Replace layout-type-"Full" with fields-[fields]

D. Replace layout-type-"Full" with fields-[fields]

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? A. Schedule job to send email B. Set condition at Workflow rule C. Implement Apex helper class D. Publish a message on a message channel

D. Publish a message on a message channel

Universal Containers uses Salesforce to manage its product offerings to customers. A developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce. What should the developer use to get the product information from Salesforce? A. SOAP API B. User Interface API C. Streaming API D. REST API

D. REST API

Refer to the markup below: <template> <!--... other code... --> <lightning-record-form record-id=(recordId) object-api-name="Account" layout-type="Full"> </lightning-record-form> </template> A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly. What can the developer do to improve the performance? A. Replace layout-type="Full" with layout-type="Partial". B. Add density="compact" to the component. C. Add cache="true" to the component. D. Replace layout-type="Full" with fields=(fields).

D. Replace layout-type="Full" with fields=(fields).

A developer is trying to access org data from within a test class. Which sObject type requires the test <class to have the (seeAliData=true) annotation A. Profile B. User C. RecordType D. Report

D. Report

A developer is writing a Jest test for a Lightning web component that conditionally displays chiki components based on a user's checkbox selections. What should the developer do to properly test that the correct components display and hide for each scenario? A. Create a new describe block for each test B. Create a new y=dom instance for each test. C. Add a teardown block to reset the DOM after each test D. Reset the DOM after each test with the afterEach() method

D. Reset the DOM after each test with the afterEach() method

A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code. What is the optimal way to store and retrieve the list? A. Store the information in static resource B. Store the information with custom labels C. Store the information in custom settings D. Store the information in custom metadata and access it with the getall() method.

D. Store the information in custom metadata and access it with the getall() method.

A developer wrote the following method to find all the test accounts in the org: public static Account] searchTestAccounts () { List<List<50bject>> searchList = [FIND "test" IN ALL FIELDS RETURNING Account (Naxe)]; return (Account[]) searchList[0]; } However, the test method below fails. @isTest public static void testSearchTestAccounts(){ Account a = new Account (name='test'); insert a; Account[] accounts = TestAccountFinder.searchTestAccounts(); System.assert (accounts.size() == 1); } What should be used to fix this falling test? A. Teat.loadData to set up expected data B. @teatSetup method to set up expected data C. @isTest (SeeAllData=true) to access org data for the test D. Test.fixedSearchResults() method to set up expected data

D. Test.fixedSearchResults() method to set up expected data

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered. account = [SELECT Id, Is Registered_ FROM Account WHERE Id = accountId]; if (!account.IsRegistered__c) { account.IsRegistered = true; //...et other account fields... update account; } What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time? A. Use uppert instead of update. B. Use Database.update (account, false). C. Add a try/catch block around the update. D. Use FOR UPDATE in a SOQL query.

D. Use FOR UPDATE in a SOQL query.

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made If has not already been registered. account = [SELECT Id, Is Registered c FROM Account WHERE Id = :raccountldis]; if (taccount.Is_Registered__c) { account.Is_Registersd__c = true; // ...set other account fields... update account; } What should the developer do to ensure that users do not overwrite each other's updates the same Account if they make updates at the same time? A. Add a try/catch block around the update. B. Use Database, update (account, false) C. Use upsext instead of update D D. Use FOR UPDATE ina SOOL query.

D. Use FOR UPDATE ina SOOL query.

How can a developer efficiently incorporate multiple JavaScript libraries in an Aura component? A. Use CDNs with script attributes. B. Implement the libraries in separate helper files. C. Join multiple assets from a static resource. D. Use JavaScript remoting and script tags.

D. Use JavaScript remoting and script tags.

A developer wrote a class named account Historyblanager 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 account History object records. The following test fails: @isTest public static void testAccount History () { . Account a= new Account(name='test'); . insert a; . a.name=a.name+'1'; . List <accountHistory> ahlist =AccountHistorytManager.getAccountHistory (a); . System.assert (ahlist.size() > 0); } What should be done to make this test pass? A. Enclose line 7 into Test.startTest() Test.stopTest() B. Add @future decorator to class definition C. Change public to global D. Use Test.isRunningTest in getaccountHistory to conditionally return fake accountHistory records.

D. Use Test.isRunningTest in getaccountHistory to conditionally return fake accountHistory records.

There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user. The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, "Maximum view state size limit exceeded". What step should the developer take to resolve this issue? A. Remove instances of the transient keyword from the Apex controller to avoid the view state error. B. Adjust any code that filters by picklist values since they are not indexed. C. Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex controller. D. Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.

D. Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.

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 certain conditions are met. What is the optimal way to accomplish this? A. Use a Workflow Email Alert. B. Use SingleEmailMessage() with an Apex trigger. C. Use MassEmailMessage() with an Apex trigger. D. Use an Email Alert with Flow Builder.

D. Use an Email Alert with Flow Builder.

What a optimal technique a developer should use to programatically retreive Global Picklist options in the test method? A. Platform a callout to the Metadata API B. Perform SOQL query C. Use a static resuorse D. Use schema namespace

D. Use schema namespace

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? A. Rewrite the business logic and test classes with TestVisible set on the callout. B. Call support for help with the target endpoint, as it is likely an external code error. C. Set see allData to true at the top of the test class, since the code does not fail in practice. D. Use test.IsRunningTest() before making the callout to bypass it in test execution.

D. Use test.IsRunningTest() before making the callout to bypass it in test execution.

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? A. Use the Continuation true attribute in the Apex method. B. Edit the code to use the without sharing keyword in the Apex class. C. Ensure the OWD for the Opportunity object is Public. D. Use the Cacheable=true attribute in the Apex method.

D. Use the Cacheable=true attribute in the Apex method.

Refer code snippet below: public void createChildRecord(string externalIdentifier){ account parentAccount; contact newContact = new Contact(); newContact.account = parentAccount; insert newContact; } ... properly related account? A. account parentAccount = new account(); B. account parentAccount = [select id from account where legacy_id__c = :externalIdentifier].Id; C. account parentAccount = new account(legacy_id__c = externalIdentifier); D. account parentAccount = [select id from account where legacy_id__c = :externalIdentifier];

D. account parentAccount = [select id from account where legacy_id__c = :externalIdentifier]; ??????????????????????????

Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event. The developer is working on a Lightning web component to display the information. What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event? A. import {subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'; B. import { subscribe, unsubscribe, onError } from 'lightning/MessageChannel'; C. import { subscribe, unsubscribe, onError) from 'lightning/pubsub'; D. import { subscribe, unsubscribe, onError } from 'lightning/empApi';

D. import { subscribe, unsubscribe, onError } from 'lightning/empApi';


Kaugnay na mga set ng pag-aaral

Developmental Theories II: Erikson, Piaget, Kohlberg, and Gilligan

View Set

Chapter 13, Intro to Visual Arts

View Set

Ani class (months, congrats etc, numbers)

View Set

AP Government Unit 3: Civil Liberties and Civil Rights

View Set