A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve consolidated information from many different objects in a JSON format. Which is the optimal 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 developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired. What is the optimal way to accomplish this?
A. Use a Workflow Email Alert.
B. Usea MassEmailMessage() with an Apex Trigger.
C. Use a SingleEmailMessage() with an Apex Trigger.
D. Use an Email Alert with Process Builder.
A developer is creating 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 actions to enable this functionality? (Choose three.)
A. Surround the callout with TeststartTest(), Test.stopTest()
B. Surround the data insertion with Test.startTest(), Test.stopTest()
C. Implement the WebServiceMock interface
D. Update code to call Test.setMock()
E. Implement the HttpCalloutMock interface
The SOAP API_________.
A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
B. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications 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 customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
Code must have X% overall code coverage.
A. X= 100
B. X = 75
C. X = 65
D. X = 50
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 such information?
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 developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.
Which two lines must change in the above ode to make the Apex method able to be wired? Choose 2 answers
A. Add AuraEnanled(cacheabletrue) to the line 08
B. Remove private from line 09.
C. Add @AuraEnabled (cacheabletrue) to line 03.
D. Add public to line 04.
Universal Containers uses Salesforce to manage its product offerings to customers.
A developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce. What should the developer use to get the product information from Salesforce?
A. SOAP API
B. User Interface API
C. Streaming API
D. REST APT
A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data?
A. Static resources
B. Custom settings
C. Custom metadata
D. System.Cookie class
A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a parent record and a child record.
A validation rule blocks child records from being created. The method uses a try/catch block to handle the DML exception.
What should the developer do to ensure the parent always has a child record?
A. Use Database.insert () and set the allorNone parameter to true.
B. Use addError () on the parent record if an error occurs on the child record.
C. Set a database savepoint to rollback if there are errors.
D. Delete the parent record in the catch statement when an error occurs on the child record DML operation.