What is the most efficient way to Query such information?

As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change: • Amount Probability, Stage, or Close Date What is the most efficient way to Query...

May 31, 2022 No Comments READ MORE +

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

An org has a custom object, Registeration_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 Registration__c records related to an Opportunity.A . A standard controller with a controller extensionB . A controler extensionC . A...

May 30, 2022 No Comments READ MORE +

What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint?

Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users. What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answersA . Create a trigger that uses an @future Apex HTTP callout passing JSON serialized...

May 30, 2022 No Comments READ MORE +

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

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, 'staticResource')D . Test.loadTestRecords(Contact.sObjectType, 'staticResource')View AnswerAnswer: B,C

May 30, 2022 No Comments READ MORE +

What should be done to address the problem?

A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records. The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error . What should be done...

May 30, 2022 No Comments READ MORE +

Which two statements are true regarding these issues and resolution?

A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that...

May 30, 2022 No Comments READ MORE +

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?

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

May 30, 2022 No Comments READ MORE +

What could be the cause of this issue?

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 multiple Survey_c records are being created per Case. What could be the cause of this issue?A . A user is creating the record...

May 30, 2022 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...

May 30, 2022 No Comments READ MORE +

How would you test a web service?

How would you test a web service?A . Use the @future annotation on the methodB . Call the WebService interfaceC . Web Services do not need to be testedD . Create a class that implements the WebServiceMock interfaceView AnswerAnswer: D

May 29, 2022 No Comments READ MORE +