How can the developer accomplish this?

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 action. How can the developer accomplish this?A . Use <apex:actionFunction> to create a JavaScript wrapper for...

March 18, 2021 No Comments READ MORE +

What should the developer ensure to correct these errors?

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?A . Ensure queries do not exceed governor limits.B . Ensure properties are marked as...

March 18, 2021 No Comments READ MORE +

Which sObject type requires the test class to have the (seeAllData=true) annotation?

A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?A . RecordTypeB . ProfileC . UserD . ReportView AnswerAnswer: A,B,C

March 17, 2021 No Comments READ MORE +

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?

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 recordsD . insert (records, false)View AnswerAnswer: A

March 16, 2021 No Comments READ MORE +

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 +