<< Prev Question Next Question >>

Question 38/113

A developer created an Apex class that makes outbound RESTful callout. The following was created to send a fake response in Apex test methods.

Which method can be called to return this fake response in the test methods?

Recent Comments (The most recent comments are at the top.)

Aditya Sharma - Jul 19, 2022

D) Ex: Test.setMock(HttpCalloutMock.class, new YourHttpCalloutMockImpl());

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (113q)
Question 1: Within the System.Limit class, what would you call to get th...
3 commentQuestion 2: Universal Containers has an existing automation where a cust...
2 commentQuestion 3: Which tag should a developer use to display different text w...
Question 4: A company exposes a REST web service and wants to establish ...
Question 5: A company wants to create a dynamic survey that navigates us...
3 commentQuestion 6: A Lightning web component exists in the system and displays ...
Question 7: A developer Is asked to develop a new AppExthange applicatio...
Question 8: A developer wrote a test class that successfully asserts a t...
Question 9: Which statement is considered a best practice for writing bu...
Question 10: What is the correct order of execution for Visualforce Page ...
Question 11: messages are rendering on the page. Which component should b...
Question 12: The progress of an apex job queued is using the System.enque...
Question 13: A company needs to automatically delete sensitive informatio...
Question 14: Line 1 public class AttributeTypes Line 2 { Line 3 private f...
Question 15: What is a best practice when unit testing a controller? (Cho...
Question 16: Given the following containment hierarchy: (Exhibit) What is...
1 commentQuestion 17: Recently a Salesforce org's integration failed because it ex...
1 commentQuestion 18: Which annotation exposes an Apex class as a RESTful neb serv...
Question 19: A company wants to run different logic based on an Opportuni...
2 commentQuestion 20: A developer is trying to access org data from within a test ...
Question 21: An org has a requirement that an Account must always have on...
Question 22: What is the transaction limit on the max Salesforce CPU time...
1 commentQuestion 23: Employee_c is a Child object of Company_c. The Company_c obj...
2 commentQuestion 24: A company uses Opportunism to track sales to their customers...
Question 25: A Lightning Component has a section that displays some infor...
1 commentQuestion 26: Within the System.Limit class, what would you call to get th...
Question 27: Which statement is true regarding the use of user input as p...
1 commentQuestion 28: Which statement is true about using ConnectApi namespace (al...
3 commentQuestion 29: Which statement is true regarding both Flow and Lightning Pr...
Question 30: A developer i$ tasked Dy Unversai Containers to build out a ...
2 commentQuestion 31: In an organization that has multi-currency enabled, a develo...
Question 32: What Visualforce tag can be used to display custom messages ...
2 commentQuestion 33: How many Territories can an instance of salesforce have?...
Question 34: A company represents their customers as Accounts in Salesfor...
Question 35: Consider the following code snippet, depicting an Azure comp...
Question 36: The "Webservice" keyword___________....
Question 37: A company decides that every time an Opportunity is created,...
1 commentQuestion 38: A developer created an Apex class that makes outbound RESTfu...
Question 39: A developer has been asked to create code that will meet the...
Question 40: 1 Contact con = new Contact ( LastName =fSmith', Department ...
Question 41: Universal Containers wants to be able to bring up an Account...
Question 42: A developer receives the exception 'SOQL query not selective...
Question 43: A developer writes the following code: (Exhibit) While testi...
1 commentQuestion 44: Which of the following exceptions cannot be caught and will ...
1 commentQuestion 45: A developer writes the following Apex trigger so that when a...
Question 46: A custom field Exec_Count_c of type Number is created on an ...
Question 47: If you have a method "doStuff(List&lt;sObject&gt; records)",...
Question 48: Which scenario requires a developer to use an Apex callout i...
Question 49: A developer is building a Lightning web component to get dat...
Question 50: What is a benefit of JavaScript remoting over Visualforce Re...
Question 51: A developer Is tasked with ensuring that email addresses ent...
1 commentQuestion 52: A lead developer is creating tests for a Lightning web compo...
Question 53: What is a consideration when testing batch Apex? (Choose two...
Question 54: A developer is using a third-party JavaScript library to cre...
Question 55: There are user complaints about slow render times of a custo...
Question 56: What should be added to the setup, in the location indicated...
1 commentQuestion 57: A company manages information about their product offerings ...
Question 58: A developer must create a way for external partners to submi...
Question 59: A developer needs to design a custom object that will be int...
1 commentQuestion 60: &lt;lightning: layout multipleRows="true"&gt; &lt;lightning:...
Question 61: What is the transaction limit for the number of SOSL queries...
Question 62: Which type of controller is best suited when you want all of...
Question 63: Just prior to a new deployment, the Salesforce Administrator...
1 commentQuestion 64: A company wants to implement a new call center process for h...
Question 65: What is a benefit of using a WSDL with Apex?...
Question 66: Universal Containers wants to use a Customer Community with ...
Question 67: A customer requires that when the billing address field on a...
Question 68: A developer wants to write a generic Apex method that will c...
4 commentQuestion 69: Which two queries are selective SOQL queries and can be used...
Question 70: An Apex Trigger creates a Contract record every time an Oppo...
Question 71: A developer wants to retrieve and deploy metadata, perform s...
Question 72: Code must have X% overall code coverage....
Question 73: A developer wrote a trigger on Opportunity that will update ...
1 commentQuestion 74: An environment has two Apex Triggers: an after-update trigge...
Question 75: A developer needs to create a Lightning page for entering Or...
Question 76: A developer must create a custom pagination solution. While ...
Question 77: A developer is developing a reusable Aura component that wil...
Question 78: Consider the following queries. For these queries, assume th...
Question 79: What is the transaction limit on the number of "sendEmail" m...
1 commentQuestion 80: Universal Containers stores user preferences in a Hierarchy ...
Question 81: The test method above tests an Apex trigger that the develop...
Question 82: The use of the transient keyword In Visualforce Page Control...
1 commentQuestion 83: Which technique can run logic when an Aura Component is load...
Question 84: A large company uses Salesforce across several departments. ...
1 commentQuestion 85: Universal Containers needs to integrate with a Heroku servic...
2 commentQuestion 86: How can the DISTANCE and GEOLOCATION functions be used i|n S...
Question 87: A customer has a single Visualforce page that allows each us...
Question 88: When testing batch classes, what must a developer do? (Choos...
1 commentQuestion 89: What are three benefits of using declarative customizations ...
Question 90: What is a potential design issue with the following code? (E...
Question 91: Given a list of Opportunity records named opportunityList, w...
1 commentQuestion 92: A company's support process dictates that any time a Case is...
Question 93: An org contains two custom objects; Building__c and Office__...
Question 94: During the Visualforce Page execution, what step follows imm...
Question 95: A company has a custom object Sales_Help_Request__c that has...
1 commentQuestion 96: The maximum view state size of a visualforce page is________...
Question 97: As part of their quoting and ordering process, a company nee...
Question 98: What are two benefits of using External IDs? Choose 2 answer...
Question 99: A Visualforce page needs to make a callout to get biding inf...
Question 100: When developing a Lightning web component, which setting dis...
Question 101: What Salesforce tool lets you deploy/retrieve metadata, chec...
1 commentQuestion 102: What can be done to improve the performance of the insert tr...
Question 103: A developer has a page with two extensions overriding the St...
Question 104: A developer created a custom component to display an HTML ta...
Question 105: Refer to re code segment above. (Exhibit) When following bes...
Question 106: If a developer wanted to display error messages with the sta...
1 commentQuestion 107: An org has a requirement that addresses on Contacts and Acco...
Question 108: A developer is debugging an Apex-based order creation proces...
2 commentQuestion 109: Consider the code above. (Exhibit) When a user dicks on the ...
1 commentQuestion 110: if the "PageReference.setRedirect" Apex function is set to F...
Question 111: The Salesforce instance at Universal Containers currently in...
1 commentQuestion 112: A company processes Orders within their Salesforce instance....
1 commentQuestion 113: A Visualforce page contains an industry select list and disp...