Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 1 Question 109 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 109
Topic #: 1
[All Platform Developer II Questions]

Refer to the test method below''

The test method calls a web service that updates an external system with Account

information and sets the Accounts integration_Updated__c checkbox to True when it completes.

The test fails to execute and exits with an error: "Methods defined as TestMethod do

not support Web service callouts.''

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: C

The correct feature to use is C, Named Credentials. Named Credentials are a secure way of storing the endpoint and authentication details for callouts to external services. When URLs change frequently, using Named Credentials allows you to manage the endpoint URL in one place without changing the Apex code.


Named Credentials

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel