What is the optimal way to implement these requirements?

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the...

March 16, 2021 No Comments READ MORE +

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

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, instantiate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account IC . Instantiate the page reference...

March 16, 2021 2 Comments READ MORE +

What change should be applied to the component?

A Lightning Component functions 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...

March 16, 2021 No Comments READ MORE +

What code should the developer use to authenticate?

A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication. What code should the developer use to authenticate?A . Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)B . stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')C . Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')D . stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')View AnswerAnswer: B

March 16, 2021 No Comments READ MORE +

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

A company has the Lightning Component above that allows users to dick a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected. Which three techniques can a developer use...

March 16, 2021 No Comments READ MORE +

What is the transaction limit for the number of records for SOQL queries?

What is the transaction limit for the number of records for SOQL queries?A . 5,000B . 20,000C . 50,000D . 10,000E . There is no limitView AnswerAnswer: C

March 15, 2021 No Comments READ MORE +

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

What is the transaction limit for the number of SOSL queries?A . 20B . 2,000C . 100 (synchronous), 200 (async)D . 200 (synchronous), 100 (async)E . There is no limitView AnswerAnswer: A

March 15, 2021 No Comments READ MORE +

What is a valid request for the following REST method? (Choose two.)

What is a valid request for the following REST method? (Choose two.) @HttpPost global static void myPostMethod(String si, Integer il, Boolean bl, String 52)A . <request> <sl>my first string</sl> <ll>123</il> <32>my second string</32> <bl>false</bl> </request>B . <request> <sl>"my first string"</sl> <il>123</il> <sZ>!,my second string"</32> <bl>false</bl> </request>C . si" : "my...

March 15, 2021 No Comments READ MORE +

Which two changes should a developer make in this trigger to adhere to best practices?

Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answersA . Use a Map accountMap instead of List accountList.B . Use a Map to cache the...

March 14, 2021 No Comments READ MORE +

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

Which use case can only be performed by using asynchronous Apex?A . Scheduling a batch process to complete in the futureB . Processing high volumes of recordsC . Updating a record after the completion of an insertD . Calling a web service from an Apex triggerView AnswerAnswer: D

March 14, 2021 No Comments READ MORE +