Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 18


Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce.

The flow of data is as follows:

✑ The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds.

✑ If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds.

✑ If a match is not found, the integration will create a Lead and a Task for that newly created Lead.

What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?

Show Answer
Correct Answer: CD

Writing a custom Apex web service given an email address can perform all the necessary logic in Salesforce, including looking up Contact and Lead records and adding tasks or creating new leads as required. This approach centralizes the logic within Salesforce and can be optimized to minimize API calls. Additionally, custom Apex services can handle complex logic efficiently and help in staying within the API limits.

Discussion

8 comments
Sign in to comment
Soliton321Option: C
Jan 9, 2021

C is correct. InboundEmailHandler is used to add additional logic on all incoming email to salesforce. It has nothing to do with Integration in term of REST or SOAP webservice

LespamtorOption: C
Dec 28, 2020

Correct answer: C

Rob177Option: C
Jan 19, 2022

Correct is C

sf2022Option: C
Dec 6, 2022

C is correct

priyu7kanoiOption: D
Apr 21, 2022

D is the correct answer

santo_aj
Apr 30, 2023

why? I think that C is the correct answer.

Soliton321Option: D
Jan 9, 2021

D is correct. InboundEmailHandler is used to add additional logic on all incoming email to salesforce. It has nothing to do with Integration in term of REST or SOAP webservice

Soliton321
Jan 9, 2021

C is correct, pls delete this one. Since I cannot

au_Option: D
Aug 20, 2023

D is correct Answer. https://help.salesforce.com/s/articleView?id=sf.code_inbound_email.htm&type=5

xfreeOption: C
Jun 26, 2024

For D, does InboundEmailHandler require need send email by every email address to create task for?