PD2 Flashcards

1
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress,’ or Fulfilled and a

lookup field, Contact_c, to Contact. Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?

A . SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled’)
B . SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled’)
C . SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled’
D . SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c = fulfilled’)

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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 searchComplete event is fired, with the results put in a results aribute 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 opmal code that should be added to fire the event when the search has completed?

A.

var evt = component.getEvent(“searchComplete”);

evt. setParams([results: results]);
evt. fire();

B.

var evt = $A.get(“e.c.searchComplete”);

evt. setParams([results: results]);
evt. fire();

C.

var evt = component.getEvent(“searchComplete”);

evt. setParams([“v.results”, results]);
evt. fire();

D.

var evt = $A.get(“e.c.searchComplete”);

evt. setParams([“v.results”, results]);
evt. fire();

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().

What is wrong?

A . The member’s Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled too.

B . The member’s Name and Option should not be declared public.
C . The member’s Name and Option should not have get and set.
D . Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A

A,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When should you use the ‘transient’ property on variables?

A . Variables that you want transmied as part of the view state. Stac variables also don’t get transmied
B . Variables that you don’t want transmied as part of the view state. Stac variables also don’t get transmied C . Stac variables that you want transmied as part of the view state to save space
D . Large variables in order to save space

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

if the ‘PageReference.setRedirect’ Apex function is set to False, what type of request is made?

A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

If the ‘PageReference.setRedirect’ Apex funcon is set to True, what type of request is made?

A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The ‘acon’ aribute on is ONLY evaluated on which type of request?

A . Get request
B . Postback request

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the correct order of execuon for Visualforce Page ‘postback’ requests (when user interacon requires a page update)?

A . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components 3) Upon successful compleon, Evaluate the acon that triggered the postback

4) Upon successful compleon, Update data and redirect user/update view state
5) HTML sent to browser
B . 1) Evaluate expressions and method calls for the main page and custom components 2) Decode View State
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser
C . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If you have a method ‘doStuff(List<sobject> records)', which is a valid call?</sobject>

A . doStuff([Select Id From Account]); B . doStuff(List records);
C . doStuff(Account acct);
D . doStuff(sObject obj);

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

During the Visualforce Page execuon, what step follows immediately aer ‘Evaluate constructors on controller and extensions’?

A . Create the view state
B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present C . Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
D . Send HTML to Browser

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The ‘Webservice’ keyword___________.

A . Method must be stac, and class must be global

B . Can be used on all classes
C . Used for any member variables included
D . All of the above

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the transacon limit on the number of ‘sendEmail’ method calls?

A . 20
B . 10
C . 50
D . 100
E . There is no limit Explanaon Explanaon/Reference:

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the correct order of execuon for Visualforce Page ‘get’ requests (inial page visit)?

A . Evaluate constructors on controller and extensions

2) If there’s a element, create the view state
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) Evaluate constructors, extensions, and expression on aribute definions on any custom components present

5) Send HTML to Browser

B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present

2) Evaluate constructors on controller and extensions
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page

4) If there’s a element, create the view state
5) Send HTML to Browser

C . Evaluate constructors on controller and extensions
2) Evaluate constructors, extensions, and expression on aribute definions on any custom components present 3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page

4) If there’s a element, create the view state
5) Send HTML to Browser

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

A developer writes the following code:

While tesng the code, the developer receives the following error message: System.CalloutExcepon : You have uncommied work pending What should the developer do? (Choose two.)

A . Use the asyncSend() method of the HTTP class to send the request in async context B . Ensure all callouts are completed prior to execung DML statements
C . Move the web service callout into an future method
D . Use Database.insert (order, true) to immediately commit any database changes
A

B,C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

A developer has a page with two extensions overriding the Standard controller for Case.

What will happen when a user clicks the command button?

A . All of the three Save methods will be executed

B . Save from Case Standard Controller will be executed

C . Save from CaseExtensionTwo will be executed

D . Save from CaseExtensionOne will be executed

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

A developer is wring unit tests for the following method:

Which assertion would be used in a negative test case?

A . System.assertEquals(true, isFreezing(null))

B . System.assertEquals (true, isFreezing(‘O’)
C . System.assertEquals(null, isFreezing(‘asdf))

D . System.assertEquals(true, isFreezingClOO’))

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of ‘1’ for a: Exec__Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every me an account record is created or updated. The following trigger is defined on the account:

trigger ExecOrderTrigger on Account (before insert, before update, aer insert, aer update){ for (Account accountlnstance: Trigger.New){ if (Trigger . isBefore){ accountlnstance Exec_Count_c += 1; } System, debug (accountlnstance.Exec_Count_c); } }

A . 1,2,3,3

B . 1,2,3,4

C . 2, 2, 4, 4

D . 2,2,3,3

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A developer has wrien the following method:
stac void processList(List<sobject> input){ Which code block can be used to call the method?</sobject>

A . processList (ace)
B . processList ([FIND ‘Acme’ ‘RETURNING Account])
C . processList([SELECT Id, Name FROM sObject WHERE Type = ‘Account’])

D . for Account ace : [SELECT Id, Name FROM Account])

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The Contact object has a custom field called ‘Zone.’ Its data type is ‘Text’ and field length is 3. What is the outcome aer execung the following code snippet in the org?

A . Both inserts succeed and the contact record that has the Zone value of ‘PI’IT is set to NULL

B . A paral insert succeeds and the contact record that has the Zone value ‘IAD1 is inserted

C . Both inserts succeed and the contact record that has the Zone value of PITT is truncated
D . An unhandled DML excepon is thrown and no contact records are inserted

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is a potenal design issue with the following code?

A . SOQL could be avoided by creang a formula field for StageName in Account from the related Opportunity B . The code will result in a System.LimitExcepon : Too many script statements error
C . The code will result in a System.DmExcepon:Enty_is_Deleted error
D . The code will result in a System.LimitExcepon: Apex CPU me limit exceeded error

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that mulple Survey_c records are being created per Case.

What could be the cause of this issue?

A . A user is creang the record as Closed
B . A workflow rule is firing with a Create Task acon C . A workflow rule is firing with a Field Update acon D . A user is eding the record mulple mes

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

A company requires an external system to be nofied whenever an account is updated.

What LimitExcepon could the following code trigger?

A . System.LimitExcepon: Too many future calls
B . System.LimitExcepon: Too many callouts
C . System.LimitExcepon: Too many SOQL queries
D . System.CalloutExcepon: Callout from triggers are currently not supported

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

A developer has been asked to create code that will meet the following requirements: Receives input of: Map<ld><br></br>Performs a potenally long-running callout to an outside web service<br></br>Provides a way to confirm that the process executed successfully</ld>

Which asynchronous feature should be used?

A . future (callout=true)
B . Database.AllowCallouts interface C . Schedulable interface
D . Queueable interface

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

A user receives the generic ‘An internal server error has occurred’ while interacng with a custom Lightning Component. What should the developer do to ensure a more meaningful message?

A . Use an AuraHandledExcepon in a try/catch block.

B . Use ProcessBuilder to catch the error.
C . Add an onerror event handler to the tag.
D . Add an error-view component to the markup.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

.A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to ‘Customer’ should have a status of ‘Acve,’ and Accounts with the type set to ‘Prospect’ should have a status of ‘Pending.’ No other changes to data should be made. Which code block will accurately meet the business requirements?

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Line 1 public class AributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List<string> getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?</string>

A . Line 1: class must be global
B . Lines 1 and 6: class and method must be global
C . Line 6: method must be stac
D . Line 8: method must first serialize the list to JSON before returning
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

{!v.account.Name} {!v. account .AccountNumber} {!v.account. Industry} Refer to the component code above. The informaon displays as expected (in three rows) on a mobile device. However, the informaon is not displaying as desired (in a single row) on a desktop or tablet. Which opon has the correct component changes to display correctly on desktops and tablets?

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

@isTest stac void testAccountUpdate() { Account acct = new Account({Name = ‘Test’); acct.Integraon Updated_c = false; insert acct; CalloutUl.sendAccountUpdate (acct.Id); Account acctAer = [SELECT Id, Integraon Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAer.Integraon_Updated_c); } The test method above calls a web service that updates an external system with Account informaon and sets the Account’s Integraon_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: ‘Methods defined as TestMethod do not support Web service callouts.’ What is the opmal way to fix this?

A . Add if (!Test.isRunningTest()) around CalloutUl.sendAccountUpdate.
B . Add Test.startTest() before and Test.stopTest() aer CalloutUl.sendAccountUpdate.
C . Add Test.startTest() before and Test.setMock and Test.stopTest() aer CalloutUl.sendAccountUpdate. D . Add Test.startTest() and Test.setMock before and Test.stopTest() aer CalloutUl.sendAccountUpdate.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.

When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.

What is the optimal way to implement this?

A . Add an

B . Add an C . Add an D . Add an

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q
A

A,E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q
A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q
A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q
A

B,C,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

Salesforce users consistently receive a ‘Maximum trigger depth exceeded’ error when saving m Account. How can a developer fix this error?

A . Split the trigger logic into two separate triggers.
B . Modify the trigger to use the isMulThread=true annotaon.
C . Convert trigger to use the future annotaon, and chain any subsequent trigger invocaons to the Account object.
D . Use a helper class to set a Boolean to TRUE the first me a trigger is fired, and then; modify the trigger to only fire when modify the trigger to only fire when the Boolean is FALSE.
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q
A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q
A

C,D,E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q
A

BCE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

A developer is wring 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. However, the users want to pick the five fields to use as filter fields when they run the page.

Which Apex code feature is required to facilitate this soluon’

A . Streaming API
B . Dynamic SOQL
C . Report API
D . Dynamic variable binding

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q
A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:

A . Set the sObject type as a component aribute.
B . Add force:hasSobjectName to the implements.
C . Use the getSObjectTypeQ method in an Apex class.
D . Create a design aribute and configure via App builder.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q
A

B,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

Which two queries are selecve 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 = !: ‘ ‘
B . SELECT id FROM ACCOUNT WHERE Name = Null
C . SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= ‘ValueA’ D . SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)

A

A,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?

A . Change the default for showContacrlnfo to ‘false’.
B . Move the contents of

C . Change the type of contactlnfo to ‘Map’.
D . Add a change event handler for showContacnfo

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.

What should the integraon use to create new Order__c records that will automacally be related to the correct Account?

A . Upsert on the Account and specify the ERP_Customer_ID__c.
B . Merge on the Order__c object and specify the ERP_Customer_ID__c.
C . Insert on the Order__c object followed by an update on the Order__c object. D . Upsert on the Order__c object and specify the ERP_Customer_ID__c.`

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

When developing a Lightning web component, which seng displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?

A . Set size=M6’ mobile-device-size=’12’

B . Set size-‘12’ medium-device-size’6’
C . Set size-‘12’ tablet-device-size-‘6’
D . Set size-‘6’ small-device-size-‘12’

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Which technique can run custom logic when a Lightning web component is loaded?

A . Call SA.enqueueAcon passing in the method to call.

B . Use the connectedCallback () method.
C . Use an aura:handler ‘init’ event to call a funcon.
D . Use the renderedCallback ( ) method.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

A Lightning web component exists in the system and displays informaon about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.

Which two sengs should the developer configure within the xml resource file? Choose 2 answers

A . Set the IsExposed aribute to True.
B . Set the IsVisible aribute to True.
C . Specify the target to be lightning__RecordPage. D . Specify the target to be lightning__AppPage.

A

A,C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

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 lazy loading to load the data on demand, instead of in the controller’s constructor. B . use an in the page to load all of the data asynchronously.
C . use Javascript to move data processing to the browser instead of the controller.
D . Use the transient keyword for the List variables used in the custom controller.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renng and when they are due back. Many of their customers are global companies with complex Account hierarchies, represenng various departments within the same organizaon. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments’ containers, based on a juncon object that relates the Contact to the various Account records that represent the departments. Which soluon solves these requirements?

A . A Custom Report Type and a report Lightning Component on the Community Home Page
B . An Apex Trigger that creates Apex Managed Sharing records based on the juncon object’s relaonships

C . A Custom List View on the juncon object with filters that will show the proper records based on owner

D . A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

A company has a Lightning Page with many Lightning Components, some that cache reference dat

a. 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 Storage Tab
B . Salesforce Lightning Inspector Acons Tab
C . Salesforce Lightning Inspector Event Log Tab
D . Salesforce Lightning Inspector Transacons Tab

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authencaon, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updang the code to handle authencaon?

A . Custom Seng (List)

B . Custom Metadata
C . Named Credenal
D . Dynamic Endpoint

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Producon. What should the developer ensure to correct these errors?

A . Ensure queries do not exceed governor limits.
B . Ensure properes are marked as Transient.
C . Ensure properes are marked as private.
D . Ensure profiles have access to the Visualforce page.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

A company’s support process dictates that any me a Case is closed with a Status of ‘Could not fix,’ an Engineering Review custom object record should be created and populated with informaon from the Case, the Contact, and any of the Products associated with the Case. What is the correct way to automate this using an Apex trigger?

A . An after upsert trigger that creates the Engineering Review record and inserts it

B . A before upsert trigger that creates the Engineering Review record and inserts it

C . An after update trigger that creates the Engineering Review record and inserts it

D . A before update trigger that creates the Engineering Review record and inserts it

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

A company processes Orders within their Salesforce instance. When an Order’s status changes to ‘Paid’ it must nofy the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the opmal method to implement this?

A . Create an Apex trigger and make a callout to the OMS from the trigger.
B . Generate the Partner WSDL and use it to make a callout to the OMS.
C . Create an Outbound Message that contains the session ID and send it to the OMS. D . Generate the Enterprise WSDL and use it to make a callout to the OMS.

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

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 . Add @testVisible to the method in the class the developer is tesng.
B . Use system.assert() in testSetup to verify the values are being returned.
C . Call the Apex class method from a testMethod instead of the testSetup method.

D . Verify the user has permissions passing a user into System.runAs().

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

A Developer wishes to improve runme performance of Apex calls by caching results on the client. What is the best way to implement this?

A . Decorate the server-side method with @AuraEnabled(cacheable=true).
B . Set a cookie in the browser for use upon return to the page.
C . Decorate the server-side method with @AuraEnabled(storable=true).
D . Call the setStorable() method on the acon in the JavaScript client-side code.

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

A developer is trying to decide between creang a Visualforce component or a Lightning component for a custom screen. Which funconality consideraon impacts the final decision?

A . Does the screen need to be accessible from the Lightning Experience UI?

B . Will the screen make use of a JavaScript framework?
C . Does the screen need to be rendered as a PDF?
D . Will the screen be accessed via a mobile app?

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

A Lightning Component funcons in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?

A . Refresh the sandbox and upgrade it to the latest API version.
B . Delete the component, metadata, and Apex controller and recreate them.

C . Expose it in the markup using the implements and access aributes.
D . Look for errors in the logic in the JavaScript controller.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

Recently a Salesforce org’s integraon failed because it exceeded the number of allowed API calls in a 24-hour period. The integraon handles a near real-me, complex inseron of data into Salesforce. The flow of data is as follows: The integraon looks up Contact records with a given email address and, if found, the integraon adds a Task to the first matching Contact it finds. If a match is not found, the integraon looks up Lead records with a given email address and, if found, the integraon adds a Task to the first matching Lead it finds. If a match is not found, the integraon will create a Lead and a Task for that newly created Lead. What is one way in which the integraon can stay near real-me, but not exceed the number of allowed API calls in a 24-hour period?

A . Use the REST API as well as the SOAP API to effecvely double the API calls allowed in a 24-hour period.
B . write a custom Apex web service that, given an email address, does all of the logic the integraon code was doing.
C . Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.
D . Create an Inbound Message that, using Flow, can do all of the logic the integraon code was doing.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

A developer created a Lightning web component that uses a Lightning-record-edit-force to collect informaon about Leads. Users complain that they only see one error message at a me when they save a Lead record.

What can the developer use to perform the validaons, and allow mulple error messages to be displayed simultaneously?

A . Apex REST
B . External JavaScript Library

C . Apex Trigger
D . Process Builder

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

A developer created a new trigger that inserts a Task when a new Lead is created. Aer deploying to producon, an outside integraon is periodically reporng errors.

Which change should the developer make to ensure the integraon is not affected with minimal impact to business logic?

A . Use a Try/Catch block aer the insert statement.
B . Remove the Apex Class from the Integraon User’s Profile.

C . Deacvate the Trigger before the Integraon runs.
D . Use the Database method with allOrNone set to False.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

Global with sharing class MyRemoter { public String accountName { get; set; } public stac Account account { get; set; } public AccountRemoter(} {} @RemoteAcon global stac Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } Consider the Apex class above that defines a RemoteAcon used on a Visualforce search page. Which code snippet will assert that the remote acon returned the correct Account?

A . MyRemoter remote = new MyRemoter(); Account a = remote.getAccount ({‘TestAccount’); System.assertEquals, ‘TestAcccunt’, a.Name -;

B . Account a = MyRemoter.getAccount ('TestAccount'):
System.assertEquals{ 'TestAccount', a.Name };
C . MyRemoter remote = new MyRemoter('TestAccount'};
Account a = remote.getAccount {);System.assertEquals(, ''TestAccount', a.Name -; D . Account a = controller.getAccount('TestAccount');
System.assertEquals(, 'TestAccount', a.Name } ;
A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

What are three benefits of using declarave customizaons over code? Choose 3 answers

A . Declarave customizaons generally require less maintenance.
B . Declarave customizaons do not require user tesng.
C . Declarave customizaons cannot generate run me errors.
D . Declarave customizaons will automacally update with each Salesforce release. E . Declarave customizaons are not subject to governor limits.

A

B,D,E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
82
Q

Somemes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer. The pricing logic already exists in a third-party system. Instead of recreang this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce. What is the opmal soluon?

A . A Visualforce page that can make a real-me Apex callout to display and save the pricing back in Salesforce

B . An Apex trigger that upon saving the Order will make a real-me Apex callout, saving the pricing back in Salesforce
C . A Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce

D . An ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
Q

A developer wants to call an Apex Server-side Controller from a Lightning Aura Component. What are two limitaons to the data being returned by the Controller? Choose 2 answers

A . A Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
B . Basic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.
C . A custom Apex Class can be returned, but only the values of public instance properes and methods annotated with @AuraEnabled are serialized and returned.

D . Only Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.

A

B,C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
84
Q

A developer is wring code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?

A . The callouts will be made in an Apex Test class.
B . The callouts will be made in an Apex Trigger.
C . The callout could take longer than 60 seconds to complete.

D . over 10 callouts will be made in a single transacon.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
85
Q

A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity’s Probability is greater than 50%. What is the opmal way to automate this?

A . Build a Flow on Opportunity.
B . Create a Workflow on Opportunity.

C . Use an Apex Trigger on Opportunity.

D . Build a Process on Opportunity

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
86
Q

A company has a nave iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated informaon from many different objects in a JSON format. Which is the opmal method to implement this in Salesforce?

A . Apex SOAP Callout
B . Apex REST Callout
C . Apex SOAP Web Service

D . Apex REST Web Service

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
87
Q

A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the opmal way to achieve this?

A . Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method.
B . Create an aer insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method.
C . Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method.
D . Create an aer insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
88
Q

An Apex trigger creates an Order__c record every me an Opportunity is won by a Sales Rep. Recently the trigger is creang two orders. What is the opmal method for a developer to troubleshoot this?

A . Run the Apex Test Classes for the Apex trigger to ensure the code sll has sufficient code coverage.

B . Turn off all Workflow Rules, then turn them on one at me to see which one causes the error.
C . add system.debug() statements to the code and use the Developer Console logs to trace the code.

D . Set up debug logging for every Sales Rep, then monitor the logs for errors and excepons.

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
89
Q

A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company’s systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on me. What is the opmal way to implement this?

A . Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.
B . 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.

C . Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
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

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
90
Q

Which two relaonship queries use the proper syntax? Choose 2 answers

A . SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
B . SELECT Name, (SELECT LastName FROM Contacts) FROM Account
C . SELECT Id, Name, Account __r.Name FROM Contact WHERE Account r.Industry = ‘Media’

D . SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = ‘Media’

A

B,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
91
Q

A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Ulity Tray to alert Users whenever a guest has arrived at the front desk. What should be used?

A . Changelog
B . Component Event

C . Applicaon Event

D . DML Operaon

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
92
Q

What are three benefits of using stac resources in Visualforce and Lightning Components? Choose 3 answers

A . Stac resource files can be packaged into a collecon of related files in a zip or jar archive.
B . Stac resource files do not count against an organizaon’s quota of data storage.
C . Stac resource files are automacally minified.
D . Relave paths can be used in files in stac resource archives to refer to other content within the archive. E . Stac resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.

A

A,D,E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
93
Q

A company represents their customers as Accounts that have an External ID field called Customer_Number__c. They have a custom Order (Order__c) object, 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 retates it to the proper Account. What is the opmal way to implement this?

A . Perform a REST GET on the Account and a REST POST to update the Order__c with the Account’s record ID.

B . Perform a REST PATCH to upsert the Order__c and specify the Account’s Customer_Number__c in it.
C . Perform a REST GET on the Account and a REST PATCH to upsert the Order__c with the Accounts record ID.

D . Perform a REST POST to update the Order__c and specify the Account’s Customer_Number__c in it.

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
94
Q

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The asseron is failing because the Number_of_Times_Viewed__c equals 0. What is the opmal way to fix this?

A . Change the inializaon to acct.Number_Of_Times_Viewed__c = 1.
B . Change the asseron to System.assertEquals(0, acctAer.Number_Of_Times_Viewed__c).

C . Add Test.startTest() before and Test.stopTest() aer AuditUl.incrementViewed.
D . Add Test.startTest() before and Test.stopTest() aer insert acct

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
95
Q

A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and update exisng records in a List of Order__c records?

A . upsert orders;
B . merge orders;
C . merge orders Order_Number__c;

D . upsert orders Order_Number__c;

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
96
Q

Example 1: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) { System.debug (‘Campaign ID’ + ar.get(‘CampaignId’-); System.debug (‘Average amount’ + ar.get(‘exprd’)); } Example 2: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResuits) { System.debug(*Campaign ID’ + ar.get(‘CampaignId’)); System.debug (‘Average amount’ + ar.get(‘theAverage’)); } Example 3: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) System.debug(*Campaign ID’ + ar.get(‘CampaignId’)); System.debug(‘Average amount’ + ar.get.AVG(-); } Example 4:AggregateResult[] groupedResults = [SELECT CampaigniId, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResults) { System.debug(‘Campaign ID’ + ar.get(‘CampaignId’)); System.debug (‘Average amount’ + ar.theAverage-; } Which two of the examples above have correct System.debug statements? Choose 2 answers

A . Example 1

B . Example 2

C . Example 3

D . Example 4

A

A,B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
97
Q

Consider the above trigger intended to assign the Account to the manager of the Account’’s region. Which two changes should a developer make in this trigger to adhere to best pracces? Choose 2 answers

A . Use a Map accountMap instead of List accountList.
B . Use a Map to cache the results of the Region__c query by Id.

C . Move the Region__c query to outside the loop.
D . Remove the last line updang accountList as it is not needed.

A

C,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
98
Q

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creaon of the Contact fails?

A . use the Database.Delete method if the Contact inseron fails.
B . Disable validaon rules on Contacts and set default values with a Trigger.

C . use the Database.Insert method with allOrNone set to False.
D . use setSavePoint() and rollback() with a try/catch block.

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
99
Q

An Apex Trigger creates a Contract record every me an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquision) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex Trigger creates Contract records. A developer is tasked with prevenng Contract records from being created when mass loading the Opportunies, but the daily users sll need to have the Contract records created. What is the most extendable way to update the Apex Trigger to accomplish this?

A . Use a Hierarchy Custom Seng to disable the Trigger for the user who does the data loading.
B . Add a Validaon Rule to the Contract to prevent Contract creaon by the user who does the data loading. C . Use a List Custom Seng to disable the Trigger for the user who does the data loading.
D . add the Profile Id of the user who does the data loading to the Trigger so the Trigger won’t fire for this user.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
100
Q

A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system. What is the opmal way to update the Accounts from the external system?

A . Apex REST Web Service

B . Composite REST API
C . SOAP API

D . Bulk API

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
101
Q

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 pracces, what should a developer use to meet this requirement?

A . Approvals
B . Flow Builder
C . Apex Trigger
D . Process Builder

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
102
Q

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 noce that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so. Which two statements are true regarding these issues and resoluon? Choose 2 answers

A . A sandbox should be created to use as a unified tesng environment instead of deploying Change Sets directly to producon.
B . Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.

C . The administrators are deploying their own Change Sets, thus deleng each other’s fields from the objects in producon.
D . The administrators are deploying their own Change Sets over each other, thus replacing enre Page Layouts and Workflows in Producon

A

A,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
103
Q

A company has a web page that needs to get Account record informaon, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integraon is opmal?

A . SOAP API
B . Apex REST Web Service

C . Apex SOAP Web Service

D . REST API

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
104
Q

UC Loans is a small company with a part me Salesforce administrator. UC Loans wants to create a Loan__c record whenever an Opportunity is won. What is the opmal soluon for UC Loans to accomplish this?

A . Quick Acon
B . Apex Trigger
C . Process Builder

D . Workflow Rule

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
105
Q

A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call. Which feature should be used to implement these requirements?

A . workflow
B . @future
C . Queueable
D . Process Builder

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
106
Q

A developer gets an error saying ‘Maximum Trigger Depth Exceeded.’ What is a possible reason to get this error message?

A . The SOQL governor limits are being hit.
B . A Process Builder is running that sends mass emails.

C . Trigger is recursively invoked more than 16 mes.

D . There are numerous DML operaons in the trigger logic.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
107
Q

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecng 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 enrely in uppercase characters. What is the opmal way to implement these requirements?

A . write a single trigger on Contact for both aer update and before update and callout to helper classes to handle each set of logic.
B . Write an aer update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.

C . write an aer update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
D . write a Validaon Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
108
Q

A developer is asked to build a soluon that will automacally send an email to the Customer when an Opportunity stage changes. The soluon must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated aer all Workflow Rules have fired. What is the opmal way to accomplish this?

A . Use a Workflow Email Alert.
B . Use a MassEmailMessage() with an Apex Trigger.

C . Use a SingleEmailMessage() with an Apex Trigger.

D . Use an Email Alert with Process Builder.

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
109
Q

A company noces that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

A . Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
B . Move the prerequisite reference data setup to the constructor for the test class.
C . Move the prerequisite reference data setup to a stac method in the test class and call that from each test method.
D . Move the prerequisite reference data setup to a @testSetup method in the test class.
A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
110
Q

Part of a custom Lightning Component displays the total number of Opportunies in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the opmal way for a developer to get the total number of Opportunies for the Lightning Component?

A . SUM() SOQL aggregate query on the Opportunity object
B . SOQL for loop that counts the number of Opportunies records

C . COUNT() SOQL aggregate query on the Opportunity object
D . Apex Batch job that counts the number of Opportunity records

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
111
Q

0f Universal Containers uses Big Objects to store almost a billion customer transacons called Customer_Transacon__b. These are the fields on Customer_Transacon__b: Account__c Program__ Points_Earned__c Locaon__c Transacon_Date__c The following fields have been idenfied as Index Fields for the Customer_Transacon__b object: Account__c, Program__c, and Transacon_Date__c. Which SOQL query is valid on the Customer_Transacon__b Big Object?

A . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b
WHERE Account__c = ‘001R000000302D3’ AND Program__c =’Shoppers’ AND Transacon_Date__c=2019-05-31T00:00Z
B . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE
Account__c = ‘001R000000302D3’ AND Program__c LIKE ‘Shop%’ AND Transacon_Date__c=2019-05-31T00:00Z C . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE

Account__c = ‘001R000000302D3’ AND Program__c EXCLUDES (‘Shoppers’, ‘Womens’) AND Transacon_Date__c=2019-05-31T00:00Z
D . SELECT Account__c, Program__c, Transacon_Date__c FROM Customer_Transacon__b WHERE Account__c = ‘001R000000302D3’ AND Program__c INCLUDES (‘Shoppers’, ‘Womens’) AND Transacon_Date__c=2019-05-31T00:00Z

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
112
Q

The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored. Which opons are valid? (Choose two.)

A . Use the Apex Jobs page in setup
B . Query the Queueable Apex record
C . Query the AsyncApexJob record
D . Use the Scheduled Jobs page in setup

A

A,C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
113
Q

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) annotaon?

A . RecordType

B . Profile
C . User
D . Report

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
114
Q

A developer is wring a complex applicaon involving triggers, workflow rules, Apex classes, and

processes. The developer needs to carefully consider the order of execuon when developing the applicaon. 1. Before Triggers
2. Aer Triggers
3. Post commit logic such as sending email
4. DML commied to the database

  1. Workflow rules
  2. Roll-up summary calculaons
    In what order do the following operaons execute?

A . 1,2,5,6,4,3

B . 1,5,6,2,4,3

C . 1,2,4,5,6,3

D . 1,6,5,2,4,3

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
115
Q

Which are relevant pracces while analyzing the meline of different types of transacons in the execuon overview panel? (Choose two.)

A . Log lines in the execuon log panel can be analyzed for details about specific events
B . The performance tree should be use to analyze events further starng from the one that take the least amount of me
C . The execuon tree can be used with the execuon log to filter and get specific informaon about events
D . Mulple short bursts of Apex events should be analyzed since they can add up to a significant amount of me

A

A,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
116
Q

Which tool should the developer use?

A . Developer Console
B . Force.com Migraon Tool

C . Workbench
D . Force.com IDE

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
117
Q

A developer is working on code that requires a call to an external web service from a batch. How should the developer enable this funconality?

A . Implement a custom System.CalloutExcepon class
B . Include Database.AllowCallout() in the class definion
C . Implement an @future method for the callout, and invoke it from the batch

D . Specify ‘callout=true’ in the batch implementaon

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
118
Q

What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?

A .

B .
C .
D .

A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
119
Q

What is a best pracce when unit tesng a controller? (Choose two.)

A . Simulate user interacon by leveraging Test.setMock()

B . Verify correct references by using getURL()
C . Access test data by using seeAIIData=true
D . Set query parameters by using getParameters().put

A

B,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
120
Q

A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.

How can this requirement be met with minimal customizaons?
A . Create an Aer Trigger on Account to upd|ate its related contact records on update

B . Create a Workflow Rule on Account to update related child Contact records
C . Create a Lightning Process on Account to update related child Contact records
D . Create a scheduled batch job that updates all contact address fields based on the related account record.

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
121
Q

Which is a valid Apex REST Annotaon? (Choose two.)

A . @Hp Patch

B . @HpDelete

C . HpUpsert
D . @HpAcon

A

A,B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
122
Q

A developer must create a way for external partners to submit millions of leads into Salesforce per day-How should the developer meet this requirement?

A . Publicly expose a Visualforce page via Force.com Sites
B . Create a web service on Heroku that uses Heroku Connect

C . Host a Web-to-Lead form on the company website
D . Publicly expose an Apex Web Service via Force.com Sites

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
123
Q

A developer must create a custom paginaon soluon for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.

How can the developer meet these requirements? (Choose two.)

A . Use a StandardSetController
B . Use CURSOR 50 in SOQL queries

C . Use OFFSET in SOQL queries
D . Use LIMIT 50 in SOQL queries

A

C,D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
124
Q

A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method in response to a user acon.

How can the developer accomplish this?

A . Use to create a JavaScript wrapper for the controller method
B . Use the @RemoteAcon annotaon on the method definion with JavaScript Remong C . Use the $Controller global variable to access the controller method via JavaScript
D . Use to enable JavaScript support for the controller method

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
125
Q

A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A cerficate signed by an appropriate cerficate authority has been provided to the developer.

What modificaon is necessary on the Salesforce side? (Choose two.)

A . Create an entry for the cerficate in Cerficate and Key Management
B . Update the code to use HpRequest.setClientCerficateName()
C . Configure two-factor authencaon with the provided cerficate
D . Update the code to use HpRequest.setHeaderQ to set an Authorizaon header.

A

A,B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
126
Q

What level can a hierarchy custom seng be defined for? (Choose three.)

A . Users
B . Groups
C . Profiles
D . Roles
E . Organizaon

A

Answer: A, C, E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
127
Q

[FIND ‘map’ IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for th|e following SOSL query?

A . List
B . List>
C . List D . List

A

Answer: B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
128
Q

A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.

What is the correct syntax to declare a remote method in Apex? (Choose two.)

A. @RemoteAction global static String getTable()

B. @RemoteAction global String getTable()

C. @RemoteAction public static String getTable()

D. @RemoteObject global static String getTable()

A

Answer: A, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
129
Q

A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)

A. List Is = Test.loadData (Lead.sObjectType, ‘myTestLeads’);
B. myDataFactory.createTestRecords (10)
C. Database.createTestRecords (10)
D. List Is = Test.loadData (Lead.sObjectType, $Resource + ‘myTestLeads’);

A

Answer: A, B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
130
Q

A developer has created a soluon using the SOAP API for authencang Communies users. What is needed when issuing the login() Call? (Choose two.)

A . Organizaon Id
B . Session Id
C . Username and Password D . Security Token

A

Answer: A, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
131
Q

When developing a Visualforce page that will be used by a global organizaon that does business in many languages and many currencies, which feature should be used? (Choose three.)

A . Custom Labels
B . convertCurrency()
C . Global Labels
D . Translaon Workberic E . getLocalCurrency()

A

Answer: A, B, D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
132
Q

How can the DISTANCE and GEOLOCATION funcons be used i|n SOQL queries? (Choose two.)

A . To filter results based on distance from a latude and longitude B . To get the distance results from a latude and longitude
C . To order results by distance from a latude or longitude
D . To group results in distance ranges from a latude and longitude

A

Answer: A, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
133
Q

Which two objects can be inserted in the same transacon? (Choose two.)

A . Opportunity and User
B . Account and AccountShare

C . Case and CaseComment
D . Account and Group`

A

Answer: B, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
134
Q

A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table.
Which tag should the developer use inside the component?

A.
B.
C.
D.

A

Answer: D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
135
Q

What is a consideraon when using bind variables with dynamic SOQL? (Choose two.)

A . Dynamic SOQL cannot reference fields on bind variables

B . Dynamic SOQL cannot use bind variables
C . Bind variables must be public or global
D . Bind variables must be in local scope

A

Answer: A, D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
136
Q

Which statement is true about using ConnectApi namespace (also called Chaer in Apex)? (Choose two.)

A . Chaer in Apex methods honor the ‘with sharing’ and ‘without sharing’ keywords

B . Chaer in Apex operaons are synchronous, and they occur immediately
C . Chaer in Apex methods do not run in system mode; they run in the context of the current user

D . Many test methods related to Chaer in Apex require the IsTest (SeeAIIData=true) annotaon

A

Answer: C, D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
137
Q

Which API can b|e used to execute unit tests? (Choose three.)

A . Streaming AP B . Test API
C . Tooling API
D . SOAP API

E . Metadata API

A

Answer: C, D, E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
138
Q

What is a recommended pracce with regard to the Apex CPU limit? (Choose two.)

A . Opmize SOQL query performance
B . Use Map collecons to cache sObjects

C . Avoid nested Apex iteraons
D . Reduce view state in Visualforce pages

A

Answer: B, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
139
Q

1 Contact con = new Contact ( LastName =fSmith’, Department = fAdminT)

2 insert con;
3 Contact insertedContact=[select Name from Contact where id=icon.Id];

4 Savepoint sp_admin = Database.setSavepoint();

5 con.Department = fHRf;

6 update con;
7 Database.rollback(sp_admin);
8 System.debug(Limits.getDmlStatements 0);

Given the following code, what value will be output in the logs by line #8?

A.5

B.3

C.4

D.2

A

Answer: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
140
Q

A developer has created a Team Member sObject that has a Master-Detail relaonship to a Project sObject and a Lookup relaonship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record.

How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?

A . Create a Controller that uses the Without Sharing keyword
B . Create a Criteria-Based Sharing Rule on the Project sObject
C . Create a Team Member Trigger that inserts Project_Share records
D . Create a Project Sharing Rule that shares to the Team Member Group

A

Answer: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
141
Q

A developer is wring a Visualforce page to display a list of all of the checkbox fields found on a custom object. What is the recommended mechanism the developer should use to accomplish this?

A . Schema Class
B . Apex API
C . Schema Builder

D . Metadata API

A

Answer: A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
142
Q

A developer receives a LimitExcepon: Too many query rows: 50001 error when running code.

What debugging approach using the Developer Console provides the fastest and most accurate mechanism to idenfy a specific component that may be returning an unexpected number of rows?

A . Count the number of Row Limit warning messages in the Debug Logs
B . Add System.debug(System.getQueryRows()) to the code to track SOQL usage
C . Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query D . Use the Execuon Overview to see the number of rows returned by each Executed Unit

A

Answer: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
143
Q

A developer has built a mul-page wizard using a single Custom Controller to query and update dat a. Users are complaining that the pages are loading slowly.
What will improve performance? (Choose three.)

A . Reducing the view state
B . Using aconRegion and rerender
C . Turning off the standard stylesheet
D . Seng the Apex Page aribute cache=true E . Using selecve queries

A

Answer: A, D, E

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
144
Q

A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.

How can this be accomplished? (Choose two.)

A . Use the (apex: informaon) tag to display the error message
B . Use the ApexPages.addMessage() method to add the error message

C . Use the tag to display the error message
D . Use the accountaddErrorQ method to add the error message

A

Answer: B, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
145
Q

Which statement is true regarding the use of user input as part of a dynamic SOQL query?

A . Free text input should not be allowed, to avoid SOQL injecon
B . The String.format() method should be used to prevent injecon
C . Quotes should be escaped to protect against SOQL injecon
D . The string should be URL encoded by the input form to prevent errors

A

Answer: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
146
Q

A developer encounters an error that states that the Apex heap size is exceeded. Which technique may reduce heap size?

A . Add the transient keyword to the variable definion
B . Move the variable definion inside the scope of the funcon

C . Use stac variables instead of instance variables
D . Use SOQL for loops instead of standard SOQL queries

A

Answer: D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
147
Q

A developer has a Debug method within a class, which is invoked hundreds of mes.
What is the opmal funconality in the Developer Console to count the number of calls made to the method?

A . The ‘Execuon Log’ Panel
B . The ‘Execuon Stack’ Panel
C . The ‘Executed Units’ tab under the Execuon Overview Panel

D . The ‘Execuon Tree’ tab under the Stack Tree Panel

A

Answer: C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
148
Q

A developer needs to design a custom object that will be integrated into a back-end system.

What should the developer do to ensure good data quality and to ensure that data imports, integraons, and searches perform well? (Choose two.)

A . Configure a custom field as unique
B . Configure a custom field as indexed
C . Configure a custom field as external ID
D . Configure a custom field as Salesforce ID

A

Answer: A, C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
149
Q

What is a consideraon when tesng batch Apex? (Choose two.)

A . Test methods must execute the batch with a scope size of less than 200 records B . Test methods must call the batch execute() method once
C . Test methods must use the @isTest (SeeAIIData=true) annotaon
D . Test methods must run the batch between TeststartTestQ and Test.stopTestQ

A

Answer: A, D

150
Q

A developer needs to create a Lightning page for entering Order Informaon. An error message should be displayed if the zip code entered as part of the Order’s shipping address is not numeric.

What is a recommended way for the error message be displayed to the end user?

A . Use the apex:message tag to display errors
B . Use the aura:component tag to display errors
C . Use the uhoutputText tag to display errors
D . Use the uhinputDefaultError tag to display errors

A

Answer: D

151
Q

A developer is building a Visualforce page that interacts with external services.
Which interface should the developer implement to test this functionality? (Choose two.)

A . HTTPCalloutMock
B . HTTPRequestMock
C . HTTPResponseMock
D . StacResourceCalloutMock

A

Answer: A, D

152
Q

A developer needs to create a service that will process an email sent to it and create an account and contact using the contents of the email as data for the records.

How might a developer accomplish this requirement?

A . Use the Apex Inbound Email Handler
B . Use the Fuel API with Email Data Extensions

C . Use Heroku Data Clips to Process Email
D . Use Auto-launched Flow and Process Builder

A

Answer: A

153
Q

During the order of execuon of a Visualforce page GET request, what happens aer this step?

A . Evaluate constructors and expressions on custom components

B . Create view state if exists
C . Send the HTML response to the browser
D . Evaluate expressions, acon aributes, and method calls

A

Answer: A

154
Q

A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculaons. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits.

What are three recommendaons to opmize page performance? (Choose three.)

A . Segregate calculaon funconality from input funconality
B . Specify the list of sales forecasts as transient
C . Implement paginaon and reduce records per page
D . Create formula fields to compute pivoted forecast calculaons E . Use JavaScript Remong instead of controller acons

A

Answer: A, C, E

155
Q

An integraon user makes a successful login() call via the SOAP API.
What can be used in the SOAP header to provide server authorizaon for subsequent API requests?

A . Named Credenals

B . Session ID
C . OAuth access token

D . Security token

A

Answer: B

156
Q

How can Apex be used with Visual Workflow?

A . To set the version of a Flow being run

B . To start a Flow automacally
C . To add custom styling to a Flow
D . To control access to a Flow

A

Answer: B

157
Q

A developer is creang unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup.

What are three acons to enable this funconality? (Choose three.)

A . Surround the callout with TeststartTest(), Test.stopTest()
B . Surround the data inseron with Test.startTest(), Test.stopTest() C . Implement the WebServiceMock interface
D . Update code to call Test.setMock()
E . Implement the HpCalloutMock interface

A

Answer: A, C, D

158
Q

A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authencaon.

What code should the developer use to authencate?

A . Hp.setHeader (‘Authorizaon’ , ‘Basic QthZGprjpchVulHNchFtZQ!)
B . stub.inputHpHeaders_x.put(‘Authorizaon’ , ‘Basic QthZGprJpchVulHNchFtZQ’) C . Hp.setAuthencaon(‘Basic QthZGprjpchVulHNchFtZQ’)
D . stub.authencaon.put (‘Authorizaon’,’Basic QthZGprjpchVulHNchFtZQ’)

A

Answer: B

159
Q

Which of the follow be used together in DML operaons (transacon)? (Choose two.)

A . Account - AccountShare

B . Case - CaseComment
C . Opportunity - User
D . Account - Order

A

Answer: B, D

160
Q

What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

A.
B.
C.
D.

A

Answer: B, D

161
Q

A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records.

How should the developer handle the recursive trigger?

A . Deacvate the trigger and move the logic into a Process or Flow
B . Deactivate the workflow rule to prevent the field update from executing
C . Use a static variable to prevent the trigger from executing more than once

D . Use a global variable to prevent the trigger from executing more than once

A

Answer: C

162
Q

Which use case is an appropriate fit for the future asynchronous Apex method? (Choose two.)

A . A developer has jobs that need larger query results than regular transacons allow
B . A developer needs to segregate DML operaons and bypass the mixed save DML error
C . A developer has long-running jobs with large data volumes that need to be performed in batches D . A developer has long-running methods and needs to prevent delaying an Apex transacon

A

Answer: B, D

163
Q

A developer must create a custom paginaon soluon. While users navigate through pages, if the data is changed from elsewhere, users should sll see the cached results first accessed.

How can the developer meet these requirements?

A . Use @Cache annotaon
B . Use a StandardSetController
C . Use OFFSET in SOQL queries
D . Use OFFSET WITH CACHE in SOQL queries

A

Answer: B

164
Q

Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_ld_c.

How can a developer insert an Employee_c record linked to Company_c with a Company_ld_c of ‘999’?

A . Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = f999f insert emp;

B . Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_c = f999f insert emp;

C . Employee_c emp = new Employee_c(Name=fDeveloperT); emp. Company_c = new Company_c(Company_Id_c=f 999 T) insert emp;

D . Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = new Company _ r(Company Id c=f999f) insert emp;

A

Answer: D

165
Q

Which statement is true regarding both Flow and Lightning Process? (Choose two.)

A . Can use Apex methods with the @lnvocableMethod annotation

B . Are both server-side considerations in the Order of Execution
C . Can use Apex that implements the Process.Plugin interface
D . Are able to be embedded directly into Visualforce pages

A

Answer: A, C

166
Q

A company wants to create a dynamic survey that navigates users through a different series of quesons based on their previous responses.

What is the recommended soluon to meet this requirement?

A . Dynamic Record Choice
B . Lightning Process Builder
C . Visualforce and Apex
D . Custom Lightning Applicaon

A

A

167
Q

What is a valid request for the following REST method? (Choose two.)
@HpPost global stac void myPostMethod(String si, Integer il, Boolean bl, String 52)

A. my first string <11>123 <32>my second string32> false
B. “my first string” 123 “my second string”32> false
C. sl” : “my first string”, 11” : “123”, “b1” : “false”, “S2” : “my second string”
D. il” : 123, “S1” : “my first string”, “S2” : “my second string”, “bl” : false

A

Answer: B, D

168
Q

A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an asseron failing due to an incorrect number of results.

Why could the test be failing? (Choose two.)

A . The test does not call Test.startTest()
B . The test does not create product data
C . The test is not run by a System Administrator
D . The test does not set the current page reference

A

Answer: B, D

169
Q

What is the most efficient way in Visualforce to show informaon based on data filters defined by an end-user for a large volume of data?

A . Use the rendered condion in Visualforce to limit data based on data filters
B . Use filter condions in a SOQL query to limit data based on data filters
C . Use an Apex controller to refine raw data based on data filters and store the result in a transient variable

D . Use an Apex controller to refine raw data based on data filters and store the result in a stac variable

A

Answer: B

170
Q

What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)

A. {Icase.Name}
B. {Icase.Name}
C. (LIE{!case.Name}
D. {Icase.Name}

A

Answer: B, C

171
Q

Which of the following standard fields are indexed? (Choose three.)

A . Name
B . CreatedBy
C . SystemModStamp

D . LastModifedDdate

E . RecordType

A

Answer: A, B, C

172
Q

What tool in the Developer Console contains informaon on SOQL query Cardinality?

A . Checkpoints tab

B . Query Editor
C . Query Plan Tool

D . Log Inspector

E . View State Tab

A

Answer: D

173
Q

Which of the following variables are not transmied in the view state? (Choose two.)

A . Private
B . Transient

C . Public
D . Static

A

Answer: B, D

174
Q

How many Territories can an instance of salesforce have?

A . 400

B . 200

C . 1000

D . 100

E . 500

A

Answer: E

175
Q

Which of the following elements can be members of a public group? (Choose three.)

A . Territories

B . Case Teams

C . Users
D . Roles
E . Profiles

A

Answer: A, C, D

176
Q

Invokable methods accept sObjects as parameters.

A . True

B . False

A

B

177
Q

Which of the following annotaons is the right way jto invoke a single apex method?

A . @lnvokableMethod()

B . @lnvokableAcon()

C . @lnvokableApex()

A

A

178
Q

Choose the correct definion for .

A . Standard Salesforce formang, throws a specific message on a page
B . Standard Salesforce formang, shows all errors that occur on page. Can add more messages through the ‘ApexPages.addMessage’ funcon
C . A single message, without formang, that can be associated with a specific component on the page
D . No formang; displays all errors on a page

A

A

179
Q

How long is field history retained?

A . 18 Months

B . 12 Months

C . 24 Months

D . 6 Months

E . 36 Months

A

A

180
Q

The maximum view state size of a visualforce page is______________.

A . 1mb

B . 256kb

C . 165kb

D . 65kb

E . 135kb

A

Answer: E

181
Q

What is the transacon limit for the number of records using QueryLocator?

A . 50,000
B . 50,000,000

C . 100,000
D . 5,000,000

E . There is no limit Explanaon Explanaon/Reference:

A

B

Explanation:
‘Scope’ parameter in ‘executeBatch’ can be set up to 2,000 records

182
Q

Choose the correct definion for .

A . Standard Salesforce formang, throws a specific message on a page
B . Standard Salesforce formang, shows all errors that occur on page. Can add more messages through the ‘ApexPages.addMessage’ funcon
C . A single message, without formang, that can be associated with a specific component on the page
D . No formang; displays all errors on a page

A

A

183
Q

Choose the correct definion for .

A . Allows for controller methods to be called directly from Javascript. Must be| encapsulated in tags. Unlike aconSupport, these funcons can be called directly from Javascript code
B Sends an AJAX request according to the me interval you specify. If this ever gets re-rendered, it resets
C . Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)

D . Can be associated with an AJAX request (aconFuncon/aconSupport/aconPoller) and shows content condionally depending on the status of the request (in progress/complete). Use the ‘id’ field to specify name; use ‘status’ field on related components to connect them
E . Signifies which components should be processed by the server when an AJAX request is generated

A

Answer: D

184
Q

What is the transaction limit on the number of Apex jobs added to the queue?

A . 100
B . 150
C . 50
D . 200
E . There is no limit

A

C

185
Q

What is the transacon limit on the number of callouts?

A . 100
B . 150
C . 50
D . 200
E . There is no limit

A

C

186
Q

What is the transaction limit for the number of records per DML statement?

A . 5,000
B . 20,000
C . 50,000
D . 10,000
E . There is no limit

A

D

187
Q

What is the transaction limit for the number of DML statements allowed?

A . 20
B . 2,000
C . 100 (synchronous), 200 (async)

D . 200 (synchronous), 100 (async)

E . 150

A

Answer: E

188
Q

What is the transaction limit for the number of records for SOSL?

A . 20
B . 2,000
C . 100 (synchronous), 200 (async)

D . 200 (synchronous), 100 (async)

E . There is no limit

A

B

189
Q

What is the transacon limit for the number of SOSL queries?

A . 220
B . 2,000
C . 100 (synchronous), 200 (async)

D . 200 (synchronous), 100 (async)

E . There is no limit

A

A

190
Q

What is the transaction limit on the max timeout for all callouts?

A . 120 seconds

B . 60 seconds

C . 120 seconds (synchronous); 200 seconds (async)

D . 60 seconds (synchronous); 200 seconds (async
E . There is no limit

A

Answer: A

191
Q

What is the transaction limit on the max Salesforce CPU me?

A . 100 seconds
B . 60 seconds
C . 100 seconds (synchronous); 200 seconds (async)

D . 10 seconds (synchronous); 60 seconds (async)
E . There is no limit

A

D

192
Q

What is the transaction limit on the max Salesforce CPU me?

A . 100 seconds
B . 60 seconds
C . 100 seconds (synchronous); 200 seconds (async)

D . 10 seconds (synchronous); 60 seconds (async)
E . There is no limit

A

D

193
Q

What is the transaction limit on the recursive trigger depth?

A . 10
B . 17
C . 16
D.3
E . There is no limit

A

C

194
Q

Which of the following object types can be used with a Web Service?

A . Maps
B . Sets
C . Pattern objects
D . Matcher objects E . Lists
F . Exception objects

A

E

195
Q

The SOAP API_________.

A . Is based on REST principles and is opmized for loading or deleng large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by subming batches
B . Provides a powerful, convenient, and simple REST-based web services interface for interacng with Salesforce. Its advantages include ease of integraon and development, and it’s an excellent choice of technology for use with mobile applicaons and web projects

C . Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
D . Is used to retrieve, deploy, create, update, or delete customizaons for your org. The most common use is to migrate changes from a sandbox or tesng org to your producon environment

A

C

196
Q

REST uses___________.

A . The HTTP class
B . The HTTPRequest class

C . The HTTPResponse class

D . All of the above

A

D

197
Q

What is the transaction limit on the max execution me?

A . 5 minutes
B . 10 minutes
C . 15 minutes
D . 20 minutes
E . There is no limit

A

B

198
Q

The REST API___________.

A . Is based on REST principles and is opmized for loading or deleng large sets of data. You can use it
to query, queryAII, insert, update, upsert, or delete many records asynchronously by subming batches
B . Provides a powerful, convenient, and simple REST-based web services interface for interacng with Salesforce. Its advantages include ease of integraon and development, and it’s an excellent choice of technology for use with mobile applicaons and web projects
C . Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
D . Is used to retrieve, deploy, create, update, or delete customizaons for your org. The most common use is to migrate changes from a sandbox or tesng org to your producon environment

A

B

199
Q

The Metadata API___________.

A . Is based on REST principles and is opmized for loading or deleng large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by subming batches
B . Provides a powerful, convenient, and simple REST-based web services interface for interacng with Salesforce. Its advantages include ease of integraon and development, and it’s an excellent choice of technology for use with mobile applicaons and web projects

C . Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
D . Is used to retrieve, deploy, create, update, or delete customizaons for your org. The most common use is to migrate changes from a sandbox or tesng org to your producon environment

A

D

200
Q

The Bulk API__________.

A . Is based on REST principles and is opmized for loading or deleng large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by subming batches
B . Provides a powerful, convenient, and simple REST-based web services interface for interacng with Salesforce. Its advantages include ease of integraon and development, and it’s an excellent choice of technology for use with mobile applicaons and web projects

C . Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
D . Is used to retrieve, deploy, create, update, or delete customizaons for your org. The most common use is to migrate changes from a sandbox or tesng org to your producon environment

A

A

201
Q

How would you test a web service?

A . Use the @future annotation on the method
B . Call the WebService interface
C . Web Services do not need to be tested
D . Create a class that implements the WebServiceMock interface
A

D

202
Q

Code must have X% overall code coverage.

A . X= 100

B . X = 75

C . X = 65

D . X = 50

A

B

203
Q

Which of the following about Dynamic Apex is incorrect?

A . You can retrieve the sObject type from an Id by calling .getSObjectTypeQ

B . getDescribe() can get you a variety of info on a particular object/field
C . Schema.getGlobalDescribeQ gives you a map of all sObject
D . In dynamic SOQL, you can use bind variables and bind variable fields

A

Answer: D

Explanation:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c)
Use escapeSingleQuotes to prevent SOQL injecon

204
Q

Which of the following exceptions cannot be caught and will force an error? (Choose three.)

A . LimitExcepon
B . AssertExcepon
C . SObjectExcepons D . DMLExcepon
E . License exceptions
F . ListExcepon

A

Answer: A, B, E

205
Q

What is the best way to display field-level error messages in Lightning?

A . ukinputDefaultError

B . ukoutputText
C . auraxomponent
D . apex:message

A

A

206
Q

When testing batch classes, what must a developer do? (Choose two.)

A . Use seeAIIData=true
B . Encapsulate code in Test.startTestQ and Test.stopTestQ

C . Call the class* ‘execute’ method
D . Limit the amount of records you test to < 200

A

Answer: B, D

207
Q

What is the transaction limit for SOQL queries?

A . 20 (synchronous), 200 (async)

B . 150 (synchronous), 20 (async)

C . 150 (synchronous), 200 (async)

D . 100 (synchronous), 200 (async)

E . 200 (synchronous), 100 (async)

A

D

208
Q

Where in a query can you use Geolocation and Distance? (Choose two.)

A . Select clause
B . Filter clause
C . Order By clause

D . Group By clause

A

B,C

209
Q

If a developer wanted to display error messages with the standard Salesforce Ul styling, what would they use?

A .

B .
C .
D .

A

A

210
Q

If you wanted to create a record following the update of another (with data from the source object), what is the most customizable approach?

A . Workflow Rule
B . Process Builder
C . Aer update Trigger

D . Flow

A

B

211
Q

What are the ways a developer can create test data of Contacts? (Choose two.)

A . Test.createTestData ()
B . myDataFactory.createContacts(10)
C . Test.loadData(Contact.sObjectType, ‘stacResource’)
D . Test.loadTestRecords(Contact.sObjectType, ‘stacResource’)

A

B,C

212
Q

What Salesforce tool lets you deploy/retrieve metadata, check the status of apex jobs, and check responses of REST calls?

A . Force.com Migration Tool

B . Developer Console
C . Workbench
D . Streaming API

A

C

213
Q

Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

A . Standard Controller
B . Standard List/Set Controller

C . Controller Extensions
D . Custom Controller

A

C

214
Q

What is the benefit of JavaScript removing over Visualforce Remote Objects?

A . Supports complex server-side application logic

B . Does not require any JavaScript code
C . Does not require any Apex code
D . Allows for specified re-render targets

A

A

215
Q

Which type of controller is best suited when you want all of the basic DML functions from an object’s normal new/edit page and want to include multiple records?

A . Standard Controller
B . Standard List/Set Controller

C . Controller Extensions
D . Custom Controller

A

B

216
Q

Which type of controller is best suited when you want all of the basic DML functions from an object’s normal new/edit page?

A . Standard Controller
B . Standard List/Set Controller

C . Controller Extensions
D . Custom Controller

A

A

217
Q

Within the System.Limit class, what would you call to get the total limit you can call in a single transacon?

A . get[typeOfLimit] —> (Ex. getDMLStatements())
B . getLimit [typeOfLirr.it] —> (Ex. getLin~.it DY.LSt aterr.ents () )

A

B

218
Q

Within the System.Limit class, what would you call to get the number of calls made in your transacon?

A . get [typeOfLimit] —> (Ex. getDXLStaterr.ents () )
B . getLimit [typeOf Limit] —> (Ex. getLirr.it DXLSt at err.ents () )

A

A

219
Q

A company has the Lightning Component above that allows users to dick a buon to save their changes and redirects them to a different page. Currently, when the user hits the Save buon the records are geng saved, but they are not redirected.

Which three techniques can a developer use to debug the JavaScript? Choose 3 answers

A . Use Developer Console to view checkpoints.
B . Use Developer Console to view the debug log.
C . Use consde.log() messages in the JavaScript.
D . Enable Debug Mode for Lightning components for the user. E . Use the browser’s dev tools to debug the JavaScript.

A

C,D,E

220
Q

An org has a custom object, Registeraon_c that has a lookup relationship to the Opportunity object.

What should a developer use to create a stand-alone Vlsualforce page that displays the Registraon__c records related to an Opportunity?

A . A standard controller with a controller extension

B . A controler extension
C . A custom controller
D . A standard controller

A

D

221
Q

A Visualforce page needs to make a callout to get biding information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same me 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 . A Connuaon for both the billing callout and the tax callout
B . An HTTP REST call out for both the billing callout and the tax callout
C . An HTTP REST callout for the billing callout and a Connuaon for the tax callout

D . A Connuaon for the billing callout and an HTTP REST callout for the tax callout

A

A

222
Q

Universal Containers implements a private sharing model for the Convenon_Aendence_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 Aer Insert trigger on the Convention Aendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
B . Create a Before Insert trigger on the Convention Aendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

C . Create a criteria-based sharing rule on the Convention Aendee custom object to share the records the a group of Event Reviewers.
D . Create criteria-based sharing rules on the Convention Aendee custom object to share the records with the Event Reviewers.

A

B

223
Q

What is the best pracce to inialize a Visualforce page in a test class?

A . Use Test.setCurrentpage,MyTestPage;
B . Use Test.currentpage, getParameter, put (MyTestPage);

C . Use Test, setCurrentPage(Page.MyTestPage);
D . Use controller,currentPage, setPage (MyTestPage

A

C

224
Q

This sales team needs a custom Visualforce page to enter sales orders. When a product is selected on the Visualforce page, a web service is invoked to determine if the product is in stock, and the result is displayed on the page.

How can a developer write this page to display the result of the web service and ensure governor limits for concurrent usage are not exceeded?

A . Use Connuaon that is invoked when a Submit button is clicked.

B . Use visualforce Remong to handle the web service callout.
C . Use the Salesforce Metadata API in the web service callout.
D . Use an Apex trigger with callout=true annotation.

A

A

225
Q

In an organizaon that has mul-currency enabled, a developer is tasked with building a Lighng Component that displays the top ten Opportunies most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user’s locale.

What is the most effecve approach to ensure values displayed respect the users locale sengs?

A . Use the FOR VIEW clause in the SOQL Query.
B . Use REGEX expressions to format the values retrieved via SOQL. C . Use the FORMAT() funcon in the SOQL query.
D . Use a wrapper class to format the values retrieved via SOQL.
A

A

226
Q

A developer created three Rollup Summary fields: Total_mesheets_c, Total_Approved_mesheet_c and Total_project_Timesheet_c in the custom object, project _c

Now, the developer is tasked with creating a new field to show the ratio between and approved

Pick 2

A . No test methods will be executed during deployment.
B . A test class that validates the formula field is needed for deployment.
C . Using a formula field reduces maintenance overhead.
D . A formula field will calculate the value retroacvely for exisng records.

A

C,D

227
Q

A developer Is asked to develop a new AppExthange applicaon. 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 mes. Addionally, the out-of-the-box AppExchange app needs to come with a set of best pracce sengs that apply to most customers.

What should the developer use to store and package the custom configuration sengs for the app?

A . Custom Settings

B . Custom Metadata

C . Custom Objects
D . Process Builder

A

B

228
Q

Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?

A . The callout needs to be asynchronous.
B . The callout needs to be invoked from a Workflow Rule.

C . The Target system uses a REST API.
D . The Target system uses a SOAP API.

A

C

229
Q

A company uses Opportunism to track sales to their customers and their org has millions of Opportunies. They want to begging to track revenue over me through a related Revenue object.

As part of their inial implementaon, they want to perform a one-me seeding of their data by automacally creang and populang Revenue records for Opportunies, based on complex logic. They esmate that roughly 100,000 Opportunies will have revenue records and populated.

What is the opmal way to automate this?

A . Use System.enqueueJob>() to Invoke a Queueable class.
B . Use System.scheduleJob() to schedule a Database.Scheduleable class.

C . Use Database.executeBatch() to invoke a Queueable dass.
D . Use Database.txtcuteBatch() to invoke a Database.Batchable class.

A

B

230
Q

A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?

A . Declare a static final Contact at the top of the controller.
B . Change the seers signature to return a Contact.
C . Use a condition in the getter to return a new Contact if it is null.

D . Change the getter’s signature to be static Contact.

A

C

231
Q

Aer a Plaorm Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers

A . internal Apps can use Outbound Messages
B . Internal Apps can use Process Builder.
C . External Apps require a custom Apex web service.

D . External Apps can use the standard Streaming API.

A

A,B

232
Q

Universal Containers has a Visualforce page that displays a table every Container_ c being rented by a gives Account.. failing because some of the customers rent over 100,000 containers.

What should a developer change about the Visualforce page to help with the page load errors?

A . Implement paginaon with an OffsetController.
B . Implement paginaon with a StandardSetController.

C . Use lazy loading and a transient List variable.

D . Use JavaScript remong with SOQL Offset.

A

B

233
Q

A developer creates an application event that has triggered an infinite loop. What may have caused this problem?

A . The event has multiple handlers registered in the project.

B . The event handler calls a trigger.
C . An event is fired ontouchend’ and is unhandled.
D . The event Is fired from a custom renderer.

A

D

234
Q

A developer receives the exception ‘SOQL query not selective enough’ when performing a query on an object with a large amount of data

a. Which step should be taken to resolve the issue?

A . Use an ID in the WHERE clause of the SOQL query.
B . Perform the SOQL query as part of a FOR loop.
C . Perform the SOQL query via a call to the REST API.
D . Move the SOQL query to within an asynchronous process.

A

A

235
Q

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 dosed. 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 has not re-queried the Account record are updating the Opportunity.
C . The test class has not implemented seeAIIData-truth the test method.
D . The test class is not using System.runAs() to run tests as a Salesforce administrator.
A

B

236
Q

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 tag to the component.
B . Use the Database method with allOrNone set to false.

C . Add a Try/Catch block surrounding the DML statement.

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

A

D

237
Q

A managed package uses a list of country ISO codes and country names as references data in many different places.. managed package Apex code.

What is the optimal way to store and retrieve the list?

A . Store the information in Custom Metadata and query it with SOQL.
B . Store the information in Custom Metadata and access it with the getAll() method.
C . Store the information in a List Custom Seng and query it with SOQL.
D . Store the information in a list Custom Seng and access it with the getAll() method

A

C

238
Q

How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?

A . Insert the Account in the test class, instanate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account ID.
B . Instanate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
C . Insert the Account into Salesforce, instanate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID.
D . Instanate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordld().get() to set the Account ID.

A

C

239
Q

Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include so-deleted records; that is, deleted records that are sll in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Number__c and ERP_Key__c.

Which two queries are opmized for large data volumes? Choose 2 answers

A . SELECT Id FROM Account WHERE Id IN : aListVariable
B . SELECT Id FROM Account WHERE Name != ‘ ‘ AND IsDeleted = false
C . SELECT Id FROM Account WHERE Name != NULL
D . SELECT Id FROM Account WHERE Name != ‘ ‘ AND Customer Number c = ‘ValueA’

A

A,D

240
Q

A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created.

Which consideration should be checked to resolve the issue?

A . Ensure the Apex Classes are on the same API version.
B . Ensure Process Builder processes are inactive.
C . Ensure the sandbox is on the same release as production.

D . Ensure Workflow Rules are inactive.

A

C

241
Q

A developer wants to use an Aura Component with a Custom Acon. What should be considered in order to do this?

A . A default value must be provided for each component attribute marked as required.
B . The component must implement the force:lightningQuickAconBuon interface.
C . The component’s JavaScript controller must handle a method on inializaon.
D . The class ‘slds-modal__container’ must be added to the top-level element of the component.

A

B

242
Q

A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution.

How should the developer implement error exception handling in their code to handle this?

A . Use Database methods to obtain lists of Database.SaveResults.
B . Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement. C . Use a Try/Catch and use sObject.addError() on any failures.
D . Use a Try/Catch statement and handle DML cleanup in the catch statement.

A

B

243
Q

Universal Containers needs to integrate with a Heroku service that resizes product images submied by users.

What are two alternaves to implement the integraon and protect against malicious calls to Heroku app’s endpoint? Choose 2 answers

A . Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre- shared secret key. so that the Heroku app can authencate requests and store the resized images in Salesforce. B . Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automacally reply back to the callout with the resized images in Salesforce.

C . Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.
D . Create a Workflow Rule with an Outbound Message allowing the Heroku app to automacally store the resized images in Salesforce.

A

C,D

244
Q

A developer must perform a complex SOQL query that joins two objects in a Lightning component. how can the Lightning component execute the query?

A . Use the SaJesforce Streaming API to perform the SOQL query.
B . Create a Process Builder to execute the query and invoke from the Lightning component.
C . Invoke an Apex dass with the method annotated as AiraEnabled to perform the query.
D . Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

A

D

245
Q

As part of a custom development, a developer creates a Lightning Component to show how a parcular opportunity progresses over me. The component must display the date stamp when any of the following fields change:

* Amount Probability, Stage, or Close Date
What is the most efficient way to Query such informaon?

A . [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld = :oppId];
B . [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
C . [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN D . (‘StageName’, Probability’,Amount /CloseDate’)];

E . [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];

A

C

246
Q

A company has reference data stored in multiple Custom Metadata records that represent default information for certain.

When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information.

What is the optimal way to automate this?

A . Process Builder

B . Apex Trigger
C . Workflow Rule

D . Visual Flow

A

A

247
Q

How should a developer assert that a trigger with an asynchronous process has successfully run?

A . Create at test data in the test class, use System.runAs() to invoke the trigger, then perform asserons.
B . Insert records into Salesforce, use seeAllData-true, then perform asserons.
C . Create all test data, use @future In the test class, then perform asserons.
D . Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform asserons,

A

D

248
Q

A company needs to automacally delete sensive informaon aer 7 years. This could delete almost a million records every day.

How can this be achieved?

A . Schedule a future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them.
B . Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.

How should a developer assert that a trigger with an asynchronous process has successfully run?

C . Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects. D . Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years.

A

D

249
Q

A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build an applicaon that can create, retrieve, and update common object records in all of the different orgs.

Which method of integration should the application use?

A . Apex REST Web Service
B . SOAP API with the partner WSDL
C . SOAP API with the Enterprise WSDL

D . Metadata API

A

A

250
Q

A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-me when an Account is Inserted without error.

How should a developer achieve this?

A . Use a before insert trigger and an @future method.
B . Use a before insert trigger and a Queueable class.
C . Use a Process Builder that calls an @InvocableMethod method.

D . Use a Workflow rule that calls an @InvocableMethod method.

A

A

251
Q

A developer is integrated with a legacy on-premises SQL database.
What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?

A . External Object

B . Lookup field
C . Formula field
D . External id field

A

Answer: D

252
Q

An environment has two Apex Triggers: an aer-update trigger on Account and an aer-update trigger on Contact. The Account aer-update trigger fires whenever an Account’s address is updated, and it updates every associated Contact with that address. The Contact aer-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 1 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 . There will be no error, since each trigger fires within its own context and each trigger does not exceed the limit of the number of records processed by DML| statements.

C . There will be no error, since the limit on the number of records processed by DML statements is 50,000.
D . The mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements.

A

B

253
Q

Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by clicking a buon on a Lightning Record page?

A . Force: lightningQuickAcon

B . Lightning:editAcon
C . Fightning:quickAcon
D . Force:lightningEditAcon

A

A

254
Q

Which use case can only be performed by using asynchronous Apex?

A . Scheduling a batch process to complete in the future

B . Processing high volumes of records
C . Updang a record aer the compleon of an insert

D . Calling a web service from an Apex trigger

A

D

255
Q

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

A . Database.insert(records, false)

B . Database.insert(records, true)

C . insert records
D . insert (records, false)

A

A

256
Q

Which method should be used to convert a Date to a String in the current user’s locale?

A . Date.format
B . Date.parse
C . String.format

D . String. valueOf

A

A

257
Q

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

A . Perform a callout to the Metadata API.

B . Use the Schema namespace.

C . Perform a SOQL Query.
D . Use a static resource.

A

B

258
Q

A developer is wring 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. However, the users want to pick the five fields to use as filter fields when they run the page.

Which feature of Apex code is required to facilitate this soluon?

A . REST API
B . Dynamic Schema binding

C . describeSObjects()
D . SOSL queries

A

C

259
Q

ABC Company has an Apex process that makes mulple extensive database operaon and web service callouts. The database processes and web services can take a length me to run and must be run sequenally.

How should the developer write this Apex code without running into governor limits and system limitaons?

A . Use Limits class to stop enre process once governor limits are reached.

B . Use mulple @future methods for each process and callout.
C . Use Queueable Apex to chain the jobs to run sequenally.
D . Use Apex Scheduler to scheduled each process.

A

A

260
Q

A company has a custom object Sales_Help_Request__c that has a Lookup relaonship to Opportunity. The Sales_Help_Request__c has a number field, Number_of_Hours__c, that represents the amount of me spent on the Sales_Help_Request__c.

A developer is tasked with creang a field, Total_Hours__c, on Opportunity that should be the sum of all of the Number_of_Hours__c values for the Sales_Help_Request__c records related to that Opportunity.

What should the developer use to implement this?

A . A workflow rule on the Sales_Help_Request__c object

B . A roll-up summary field on the Opportunity object
C . A trigger on the Opportunity object
D . A trigger on Sales_Help_Request__c

A

D

261
Q

When calling a RESTful web service, a developer receives a JSON payload that has a data hierarchy that is nested three levels deep. How can the developer describe the external data?

A . Deserialize the data untyped and then process it.
B . Declare a class with three levels and deserialize the JSON typed with this class. C . Use the ANT migration tool, the custom metadata API, or the Dataloader.
D . Use middleware to flatten the JSON and consume it as a new custom object.
A

A

262
Q

A developer wants to write a generic Apex method that will compare the Salesforce Name filed 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.

How should the developer do this?

A . Use a String.replace( ) method to parse the contents of each Name field.
B . Invoke a Schema,describe() funcon to compare the values of each Name field.
C . Cast each object into an sObject and use sObject.get(Name’) to compare the Name fields.
D . Use the salesforce metadata API to extract the value of each object and compare the name fields

A

C

263
Q

Which technique can run logic when an Aura Component is loaded?

A . Use an aura:handler ‘init’’ event to call a funcon.
B . Use the connectedCallback(0 method.
C . Use the standard doinit funcon in the controller.
D . Call $A. enqueueAcon passing in the method to call.

A

A

264
Q

An org has a requirement that addresses on Contacts and Accounts should be normalized to a company standard by Apex code any me that they are saved.

What is the opmal way to implement this?

A . Apex trigger on Account that calls the Contact trigger to normalize the address
B . Apex trigger on Contact that calls the Account trigger to normalize the address
C . Apex trigger on Account that and Account that normalized the address
D . Apex trigger on Account and Account that call a helper class to normalize the address

A

D

265
Q

Universal Containers stores user preferences in a Hierarchy Custom Seng, User_prefs_c, with a Checkbox field, show_Help_c, Company-Level defaults are stored at the organizaonal level, but may be overridden at the user level, If a user has not overridden preferences, then the defaults should be used.

How should the Show_Help_c preference be retrieved for the current user?

A . Boolean show = User_Prefs_c, genstance( ), Show_Help _c;
B . Boolean show = User_Prefs_c, getValues ( ). Show _Help_c;
C . Boolean show = User_Prefs_c, getvaluesUserInfo.getUserid()).Show_Help_c;

D . Boolean show = User prefs_c, Show_Help_c;

A

A

266
Q

A developer has a requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account.

Which opon is the preferred opmized method to achieve this for the Account named ‘Ozene Electronics’?

A . Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;)
list 1contacts = (SELECT firstname, lastname from Contacts where accound=: a -ID0;
B . A. Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account, Contacts) from Account where name; Ozone Electronic’ Limit 1 );
C . List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form Contact where contact account , name ‘ozone electronics));
D . List 1Contacts = new list ( );
for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from Contact where Account: Name=’ electronics’)) ( iContacts.add(c);)

A

B

267
Q

A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment.

A salesforce admin with a custom profile aempts to deploy this trigger via a change set into the producon environment, but the test class fails with an insufficient privileges error.

What should a developer do to fix the problem?

A . Add system.runAd ( ) to the best class to execute the trigger as a user with the correct object permissions. B . Configure the producon environment to enable ''Run All tests as Admin User.''
C . Verify that Test, statement ( ) is not inside a For loop in the test class.
D . Add seeAllData=true to the test class to work within the sharing model for the producon environment.
A

A

268
Q

In a VisualForce page with a VisualForce component that has rendered set to false when the page loads, how can a developer ensure it will show on a re-render?

A . Set the re-render attribute of the component to true.
B . Perform a full page refresh since rendered elements cannot be re-rendered without refreshing.

C . Set the rendered attribute of the component to true and re-render the component.
D . Set the rendered attribute of the component to true and re-render a parent component.

A

D

269
Q

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 . Connected Apps
C . Remote Site Settings

D . Named Credentials

A

D

270
Q

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?

A . Custom Metadata

B . Custom Object
C . Custom Seng
D . Custom Variable

A

A

271
Q

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.

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 standard Visualforce controller.

C . Make a callout to the web service from an aer insert trigger.
D . Make a callout to the web service from a before insert trigger.

A

D

272
Q

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 soluon?

A . Rewrite the business logic and test classes with TestVisible set on the callout.
B . Set seeAIIData to ‘true’ at the top of the test class, since the code does not fail in practice.

C . Call support for help with the target endpoint, as it is likely an external code error.
D . Use test.IsRunningTest() before making the callout to bypass it in test execution.

A

D

273
Q

A company decides that every me an Opportunity is created, they want to create a follow-up task and assign it to the Opportunity Owner.

What should a developer use to implement the requirements?

A . A Process Builder on Opportunity

B . A trigger on Task
C . A trigger on Opportunity
D . A Process Builder on Task

A

A

274
Q

A company manages informaon 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 CurrencylsoCode Text field that contains the currency code they should use. If a Catalog’s CurrencylsoCode changes, all of its Catalog Items’ CurrencylsoCodes should be changed as well.

What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog’s CurrencylsoCode changes^5

A . An aer insert trigger on Catalog that updates the Catalog Items if the Catalog’s CurrencylsoCode is different
B . An aer insert trigger on Catalog Item that updates the Catalog Items if the Catalog’s CurrencylsoCode is different
C . A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different

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

A

C

275
Q

Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to funcon for their German- and Spanish-speaking customers also. UC heard that it’s easy to create an internaonal community using Salesforce, and hired a developer to build out the site.

What should the developer use to ensure the site is mullingual?

A . Use Custom Sengs to ensure custom messages are translated properly.

B . Use Custom Labels to ensure custom messages are translated property.

C . Use Custom Metadata to translate custom picklist values.
D . Use Custom Objects to translate custom picklist values.

A

B

276
Q

Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox suddenly le the company. The users had fully tested all of the changes in the sandbox and signed off on them.

Unfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment.

What should the developer do to identify the configuration changes that need to be moved into production?

A . 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.
B . Use the Metadata API and a supported development IDE to push all of the configurations from the sandbox into production to ensure no changes are lost.
C . Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata.

D . In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set.

A

A

277
Q

A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail. What is the opmal way for a developer to fix the issue?

A . Add the required field to the data setup for all of the unit tests.
B . Add a before insert trigger on Account to set the value of the required field.
C . Create a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.
D . Change the required field to be a validaon rule that excludes the System Administrator profile.

A

C

278
Q

A developer has a test class that creates test data before making a mock call-out, but now receives a you have uncommitted work pending. Please commit or callout before calling out error.

What step should be taken to resolve the error?

A . Ensure both the inseron and mock callout occur aer the Test.stopTest().
B . Ensure the records are inserted before the Test.startTest() statement and the mock callout occurs within a method annotated with StestSetup.
C . Ensure both the inseron and mock callout occur aer the Test.startTest().
D . Ensure the records are inserted before the Test.startTest() statement and the mock callout aer the Test.startTest().

A

D

279
Q

For compliance purposes, a company is required to track long-term product usage in their org. The informaon that they need to log will be collected from more than one object and. over me, they predict they will have

hundreds of millions of records.
What should a developer use to implement this?

A . Field Audit Trail
B . Setup Audit Trail
C . Field History Tracking

D . Big objects

A

D

280
Q

How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomenUS, in a Lightning Component?

A . Implement the libraries in separate helper files.

B . Use CONs with script attributes
C . Use JavaScript removing and script tags.
D . Join multiple assets from a static resource.

A

D

281
Q

The use of the transient keyword In Visualforce Page Controllers helps with which common performance issued?

A . Reduces View State
B . Improves Query Performance

C . Improves Page Transfers
D . Reduces Load Times

A

A

282
Q

A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order’s status and tracking number if it is already shipped.

Which two methods can make this ERP order data visible in Salesforce? Choose 2 answers

A . Ensure real-me order data is in Salesforce using the Streaming API.
B . Write a cron job In Salesforce to poll the ERP system for order updates.

C . Have the ERP system push the data into Salesforce using the SOAP API. D . Use Salesforce Connect to view real-me Order data in the ERP system.

A

C,D

283
Q

Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the locaon of the container.

In addion to this, the page should have a secon that shows the locaon of each container on a map. Universal Containers wants the map to re-render whenever the locaon of a container is changed.

What can a developer use to accomplish this task?

A . Two Lightning Components leveraging Applicaon Events
B . Two Visualforce Page Components leveraging Applicaon Events

C . A single visualforce Page leveraging Plaorm Events
D . Two Lightning Components leveraging Plaorm Events

A

A

284
Q

What are two benefits of using External IDs? Choose 2 answers

A . An External ID is indexed and can improve the performance of SOQL queries.
B . An External ID field can be used to reference a unique ID from another, external system.
C . An External ID can be a formula field to help create a unique key from two fields in Salesforce.

D . An External ID can be used with Salesforce Mobile to make external data visible.

A

A,B

285
Q

A company has a Request__c object that has a lookup to the Opportunity object and a custom field. Status__c, with values of Open,’ Closed,

and Invalid.’ An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value

of Open or ‘Closed.’

what is the optimal way to enforce the requirement to prevent deletion?

A . A Process on Request__c
B . A Process on Opportunity
C . An Apex Trigger on Opportunity

D . An Apex Trigger on Request__c

A

C

286
Q

The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updang, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem.

What should the developer specify in the debug log to see the values of the workflow rule condions and debug the problem?

A . INFO level for the Database log category
B . ERROR level for the Workflow log category

C . ERROR level for the Database log category

D . INFO level for the Workflow log category

A

A

287
Q

Which statement is considered a best pracce for wring bulk safe Apex Triggers?

A . Perform all DML operaons from within a Future Method.
B . Instead of DML statements, use the Database methods with allOrNone set to False.

C . Add records to collecons and perform DML operaons against these collecons.

D . Add LIMIT 50000 to every SOQL statement

A

C

288
Q

There are user complaints about slow render mes of a custom data table within a visualforce page that loads thousands of Account records at once.

What can a developer do to help alleviate such issues?

A . Use the standard Account List controller and implement paginaon.
B . Use JavaScript remong to query the accounts.
C . Use the transient keyword in the Apex code when querying the Account records.

D . Upload a third-party data table library as a stac resource.

A

A

289
Q

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers’ sales representaves 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.profllels() to test as an administrator and a community user,

B . Use System.profilels() to test as a sales rep and a community user.
C . Use System.runAs() to test as a sales rep and a community user.
D . Use System.runAs() to test as an administrator and a community user.

A

C

290
Q

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 blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of

maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page. What is the opmal way to implement this?

A . Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.
B . Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.

C . Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
D . Implement the logic in a Validaon Rule on the Contact and a validaon Rule on the Survey\_Response\_\_c object.
A

C

291
Q

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

A . @RemoteAcon

B . @RestRtsoorct

C . @AuraEnaWed

D . @HpInvocabte

A

B

292
Q

A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realme callouts from the billing system using the SOAP API. Unfortunately, the developer is geng a lot of errors when inserng the invoice line data because the invoice header record doesn’t exist yet.

What will help ensure ne transaconal Integrity of the integraon?

A . Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
B . Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
C . Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same me.

D . Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.

A

A

293
Q

A developer receives an error when trying to call a global server-side method using the @remoteAcon decorator. How can the developer resolve the error?

A . Add static to the server-side method signature.
B . Decorate the server-side method with (stac=true).

C . Change the function signature to be private static.

D . Decorate the server-side method with (stac=false)

A

A

294
Q

An org contains two custom objects; Building__c and Office__c. Office__c has a Lookup field to Building__c.

A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c

records anytime an Office__c record s created or deleted. The developer cannot modify the field types. Which solution meets the requirements?

A . Flow
B . Workflow
C . Apex Trigger
D . Process Builder

A

C

295
Q

What is a benefit of using a WSDL with Apex?

A . Allows for web services to be tested and achieve code coverage
B . Allows for classes to be imported into Salesforce
C . Reduces the number of callouts to third-party web services
D . Enables the user to not pass a Session ID where it is not necessary

A

B

296
Q

A developer i$ tasked Dy Unversai Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, starng when a customer reports an issue and ending when the container is returned to the customer.

Which solution meets these business requirements while following best practices?

A . Use Flow Builder|.to develop a Sites page for customers to submit repair requests and track the status of their request.
B . involve a Salesforce administrator and build out a declarative solution that works in Salesforce desktop and mobile.

C . Build an automated Lightning Application using Application Events to ensure data integrity.
D . Use Platform Events with Workflow Rules and RFID integration to ensure proper tracking of the containers.

A

A

297
Q

The Salesforce instance at Universal Containers currently integrates with a third-party company to validate mailing addresses via REST services. The third-party address verificaon system recently changed endpoint URLs for all their set vices from hps://th-addreaa-service.3pc.com to hps://plc1-mailsarvice.3pc.com. Everything else remained the same. The developer updated code to reflect this endpoint change, but the mailing address validaon service stopped working aer the change.

What else should be done to complete this web service end point change?

A . Test the callout property using HpCalloutMock.
B . Add web service IP Addresses to Trusted IP Ranges m the Network Access security controls sengs.

C . Use a Custom Seng with the new endpoint Instead of hard coding the URL.
D . Create a new Remote Site for the new endpoint URL.

A

D

298
Q

A custom Aura component, AddressValidaon,cmp,exists in the system. The Salesforce admin for the organization is unable to find and select the component while creating a quick action for the Account sObject.

What should the developer do to ensure that AddressValidaon,cmp can be selected when creating a quick action?

A . Ensure the component implements the lightning:actionOverride interface.

B . Ensure the component implements the force:lighningQuickAcon.interface.

C . Ensure the access attribute of the aura:component tag is st t Global.
D . Ensure the component implements the force:hasRecordedId interface.

A

B

299
Q

A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunies() method to provide data.

Which modification to the method is necessary?

A . A The method must be decorated with AuraEnabled.
B . The method must return a JSON Object.
C . The method must be decorated with (cacheable=true).
D . The method must return a String of a serialized JSON Array.

A

A

300
Q

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 . Stac variables are not reverted during a rollback.
D . Reference to savepoints can cross trigger invocations.

A

B

301
Q

Universal Containers has an exisng automaon where a custom record called Account Plan is created upon an Account being marked as a Customer. Recently, a Workflow Rule was added so that whenever an Account is marked as a Customer, a ‘Customer Since’ date field is updated with today’s date.

Now, since the addion of the Workflow Rule, two Account Plan records are created whenever the Account is marked as a Customer.

What might cause this to happen?

A . The Apex Trigger responsible for the record creation is not bulk sate and calls insert inside of a for loop.
B . The Apex Trigger responsible for the record creation does not use a static variable to ensure It only fires once.

C . The Workflow Rule responsible for the record creation fires twice because the ‘Customer Since’ field Update Is marked as ‘Re-evaluate Workflow Rules Aer Field Change
D . The Process Builder responsible for the record creation fires before and after the Workflow rule.

A

C

302
Q

A developer created a Lightning web component that uses a Lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.

Which best practice should the developer use to perform the validation, and allow more than one error message to be displayed simultaneously?

A . Client-side validation
B . Process Builder
C . Apex REST
D . Custom validation rules

A

D

303
Q

Customer billing data must be added and updated into Salesforce from a remote system on a weekly basis. Addionally, customer acvity informaon must be extracted from Salesforce and put it into an on-premises data warehouse on a weekly basis.

Which approach should be used to import data into Salesforce and export data out of Salesforce, taking into consideration that these imports and exports can interfere with end-user operations during business hours and involve large amounts of data?

A . Call-in directly from each remote system to Salesforce APIs to push and pull the data
B . Salesforce Connect to push data to and pull data from the remote systems
C . Batch Apex, where Salesforce pushes data to and pulls data from the remote systems

D . Replication via third-party ETL to push data into Salesforce and pull data out in batches

A

D

304
Q

An Apex trigger creates a Contract record every me an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquision) historical Opportunity records need to be loaded into the Salesforce instance.

When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.

What is the most extendable way to update the Apex trigger to accomplish this?

A . Use a List Custom Setting to disable the trigger for the user who loads the data.
B . Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
C . Use a Hierarchy Custom Seng to skip executing the logic inside the trigger for the user who loads the data. D . Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.

A

C

305
Q

Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded?

Choose 3 answers

A . Reference the stac resource in a tag.
B . Import the static resource.
C . Import a method from the plaormesourceLoader,

D . Call load script.
E . Append the static resource to the DOM.

A

B,C,D

306
Q

As part of their quoting and ordering process, a company needs to send PDFs to their document storage system’s REST endpoint that supports OAuth 2.0. Each Salesforce user must be individually authenticated with the document storage system to send the PDF.

What is the optimal way for a developer to implement the authentication to the REST endpoint?

A . Named Credential with an OAuth Authencaon Provider

B . Hierarchy Custom Seng with a password custom field
C . Named Credential with Password Authencaon

D . Hierarchy Custom Seng with an OAuth token custom field

A

A

307
Q

A lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelecon. changes its value.

What should the developer use to the test that the component re-renders successfully when the property changes?

A . Promise. resolve ( )
B . dispatchEvent (new CustomEvent (‘ bypassSelecon’))

C . Windows, Senterval ( )
D . Windows, set State ( )

A

C

308
Q

The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app, In addition to search, users of the app should be able to refer a friend, apply for a position, and review the status of their current submissions. The app should be made available in Salesforce Mobile, but offline access is not required.

Given these requirements, what is the recommended approach to developer the app?

A . Visualforce
B . Lightning Web Components

C . Lightning Experience Builder

D . Salesforce SDK

A

D

309
Q

A developer 15 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 arm two approaches a developer can take to build the application and support the business requirements ^

Choose 2 answers

A . Create the application using Aura Components wrapped in Lightning Web Components.

B . Create the application using Lightning web Components wrapped in Aura Components.

C . Create an application using Aura Components.
D . Create the application using Lightning Experience Builder.

A

B,C

310
Q

Which tag should a developer use to display different text while an is execung versus not execung?

A .
B .

C .
D .

A

A

311
Q

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 . Use the transient keyword in the Apex controller for variables that do not maintain state.

B . Use the final keyword In the controller for variables that will not change.
C . Refine any SQQL queries to return only data relevant to the page.
D . Use the private keyword in the controller for variables

E . Use filters and paginaon to reduce the amount of data.

A

A,C,E

312
Q

A developer has a Visual force page that automatically assigns ownership of an Account to a queue save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.

What can cause this problem?

A . The test class does not use the Bulk API for loading test data.
B . The test class does not retrieve the updated value from the database.
C . The test class does not use the seeAllData=true annotation,
D . The test class does not implement the Queueabfe interface.
A

B

313
Q

Which code statement includes an Apex method named updateAccount in the class AccountController for use in a Lightning web component?

A . Import updateAccounts from AccountController’;
B . Import updateAccounts from @salesforceapexAccountControllerupdateAccounts’;

C . Import updateAccounts from @salesforceapex AccountController’;
D . Import updateAccounts from AccountControllerupdateAccount’;

A

C

314
Q

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 rollback to SP3 to continue with the 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 has too many DML statements between the savepoints.

D . The developer used too many savepoints in one trigger session.

A

B

315
Q

A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity 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 . Edit the code to use the without sharing keyword in the Apex class.

B . Use the Cacheable=True attribute in the Apex method.
C . Ensure the OWD for the Opportunity object is public.
D . Use the Connuaon=true attribute in the Apex method.

A

B

316
Q
A

A

317
Q
A

B

318
Q
A

B

319
Q
A

C

320
Q
A

B,C,D

321
Q

Salesforce users consistently receive a ‘Maximum trigger depth exceeded’ error when saving m Account. How can a developer fix this error?

A . Split the trigger logic into two separate triggers.
B . Modify the trigger to use the isMulThread=true annotation.
C . Convert trigger to use the future annotation, and chain any subsequent trigger invocations to the Account object.
D . Use a helper class to set a Boolean to TRUE the first me a trigger is fired, and then; modify the trigger to only fire when modify the trigger to only fire when the Boolean is FALSE.
A

D

322
Q
A

A

323
Q
A

B

324
Q
A

C

325
Q
A

C

326
Q
A

C,D,E

327
Q
A

C

328
Q
A

D

329
Q
A

B,D

330
Q

Which three Visualforce components can be used to iniate Ajax behavior to perform paral page updates? Choose 3 answers

A . Two Lightning Components leveraging Applicaon Events
B . Two Visualforce Page Components leveraging Applicaon Events

C . A single visualforce Page leveraging Plaorm Events
D . Two Lightning Components leveraging Plaorm Events

A

Answer: B, C,?

331
Q
A

C

332
Q
A

C

333
Q
A

D

334
Q

A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:

A . Set the sObject type as a component attribute.
B . Add force:hasSobjectName to the implements.
C . Use the getSObjectTypeQ method in an Apex class.
D . Create a design attribute and configure via App builder.

A

B

335
Q
A

A,E

336
Q
A

A

337
Q

A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress,’ or Fulfilled and a

lookup field, Contact_c, to Contact.
Which SOQL query will return a unique list of all the Contact records that have no Fulfilled Orders?

A . SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled’)
B . SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled’)
C . SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled’
D . SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c = fulfilled’)

A

D

338
Q
A

B

339
Q
A

D

340
Q
A

A

341
Q
A

A

342
Q
A

A,D

343
Q

When should you use the ‘transient’ property on variables?

A . Variables that you want transmitted as part of the view state. Stac variables also don’t get transmitted
B . Variables that you don’t want transmitted as part of the view state. Stac variables also don’t get transmitted

C . Stac variables that you want transmitted as part of the view state to save space
D . Large variables in order to save space

A

B

344
Q

if the ‘PageReference.setRedirect’ Apex function is set to False, what type of request is made?

A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

A

C

345
Q

If the ‘PageReference.setRedirect’ Apex funcon is set to True, what type of request is made?

A . Get request
B . Postback request
C . If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

A

A

346
Q

The ‘action’ atribute on is ONLY evaluated on which type of request?

A . Get request
B . Postback request

A

A

347
Q

What is the correct order of execuon for Visualforce Page ‘postback’ requests (when user interacon requires a page update)?

A . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components
3) Upon successful compleon, Evaluate the acon that triggered the postback
4) Upon successful compleon, Update data and redirect user/update view state
5) HTML sent to browser
B . 1) Evaluate expressions and method calls for the main page and custom components 2) Decode View State
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser
C . 1) Decode View State
2) Evaluate expressions and method calls for the main page and custom components
3) Upon successful compleon, Update data and redirect user/update view state
4) Upon successful compleon, Evaluate the acon that triggered the postback
5) HTML sent to browser

A

A

348
Q

If you have a method ‘doStuff(List records)’, which is a valid call?

A . doStuff([Select Id From Account]);

B . doStuff(List records);
C . doStuff(Account acct);
D . doStuff(sObject obj);

A

A

349
Q

During the Visualforce Page execuon, what step follows immediately aer ‘Evaluate constructors on controller and extensions’?

A . Create the view state
B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present

C . Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
D . Send HTML to Browser

A

B

350
Q

The ‘Webservice’ keyword___________.

A . Method must be stac, and class must be global

B . Can be used on all classes
C . Used for any member variables included
D . All of the above

A

D

351
Q

What is the transaction limit on the number of ‘sendEmail’ method calls?

A . 20
B . 10
C . 50
D . 100
E . There is no limit

A

B

352
Q

What is the correct order of execuon for Visualforce Page ‘get’ requests (inial page visit)?

A . Evaluate constructors on controller and extensions
2) If there’s a element, create the view state
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) Evaluate constructors, extensions, and expression on aribute definions on any custom components present 5) Send HTML to Browser
B . Evaluate constructors, extensions, and expression on aribute definions on any custom components present 2) Evaluate constructors on controller and extensions
3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) If there’s a element, create the view state
5) Send HTML to Browser
C . Evaluate constructors on controller and extensions
2) Evaluate constructors, extensions, and expression on aribute definions on any custom components present 3) Evaluate expressions, aribute acons, and other method calls (geers/seers) on main page
4) If there’s a element, create the view state
5) Send HTML to Browser

A

C

353
Q
A

B,C

354
Q
A

D

355
Q
A

C

356
Q

A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of ‘1’ for a: Exec__Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every me an account record is created or updated. The following trigger is defined on the account:

trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){

for (Account accountlnstance: Trigger.New){

if (Trigger . isBefore){ accountlnstance Exec_Count_c += 1; } System, debug (accountlnstance.Exec_Count_c); } }

A . 1,2,3,3

B . 1,2,3,4

C . 2, 2, 4, 4

D . 2,2,3,3

A

C

357
Q

A developer has written the following method: static void processList(List input){
Which code block can be used to call the method?

A . processList (ace)
B . processList ([FIND ‘Acme’ ‘RETURNING Account])
C . processList([SELECT Id, Name FROM sObject WHERE Type = ‘Account’])

D . for Account ace : [SELECT Id, Name FROM Account])

A

C

358
Q
A

D

359
Q
A

D

360
Q
A

D

361
Q
A

A

362
Q

A developer has been asked to create code that will meet the following requirements: Receives input of: Map
Performs a potentially long-running callout to an outside web service
Provides a way to confirm that the process executed successfully

Which asynchronous feature should be used?

A . future (callout=true)
B . Database.AllowCallouts interface

C . Schedulable interface
D . Queueable interface

A

D

363
Q
A

A

364
Q
A

C

365
Q

A user receives the generic ‘An internal server error has occurred’ while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?

A . Use an AuraHandledExcepon in a try/catch block.

B . Use ProcessBuilder to catch the error.
C . Add an onerror event handler to the tag.
D . Add an error-view component to the markup.

A

A

366
Q
A

D

367
Q
A

D

368
Q

Line 1 public class AributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List getStringArray() { Line 7 Strings+ arrayItems = new String*+, ‘red’, ‘green’, ‘blue’ -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?

A . Line 1: class must be global
B . Lines 1 and 6: class and method must be global
C . Line 6: method must be static
D . Line 8: method must first serialize the list to JSON before returning
A

C

369
Q
A

C

370
Q

@isTest stac void testAccountUpdate() { Account acct = new Account({Name = ‘Test’); acct.Integraon Updated_c = false; insert acct; CalloutUl.sendAccountUpdate (acct.Id); Account acctAer = [SELECT Id, Integraon Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAer.Integraon_Updated_c); } The test method above calls a web service that updates an external system with Account informaon and sets the Account’s Integraon_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: ‘Methods defined as TestMethod do not support Web service callouts.’ What is the opmal way to fix this?

A . Add if (!Test.isRunningTest()) around CalloutUl.sendAccountUpdate.
B . Add Test.startTest() before and Test.stopTest() aer CalloutUl.sendAccountUpdate.
C . Add Test.startTest() before and Test.setMock and Test.stopTest() aer CalloutUl.sendAccountUpdate.

D . Add Test.startTest() and Test.setMock before and Test.stopTest() aer CalloutUl.sendAccountUpdate.

A

B

371
Q
A

B

372
Q
A

D