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 5 Question 90 Discussion

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

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called survey Response c do not belong to a list of blocked domains.

The list of blocked domains is stored in a custom object for ease of maintenance by users. The survey Response c object is populated via a custom Visualforce page.

What is the optimal way to implement this?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Kate
2 months ago
Option B is definitely the way to go. Keeping the logic centralized in a helper class is the most maintainable approach.
upvoted 0 times
Filiberto
14 days ago
Plus, it helps with reusability in case the logic needs to be used in other parts of the system.
upvoted 0 times
...
Benton
28 days ago
Definitely, it's important to keep things organized and easy to maintain.
upvoted 0 times
...
Jettie
29 days ago
I agree, having a centralized helper class makes it easier to manage and update the logic.
upvoted 0 times
...
Moira
1 months ago
B) Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller.
upvoted 0 times
...
Karan
1 months ago
User 2: Agreed, having the logic in a helper class keeps things organized.
upvoted 0 times
...
Amos
1 months ago
User 1: I think option B is the best choice.
upvoted 0 times
...
...
Leota
2 months ago
But option A allows for easier maintenance by users.
upvoted 0 times
...
Kimbery
2 months ago
Ha! 'Burvey Response_c'? That's a new one. I'm going to have to remember that for my next Salesforce trivia night.
upvoted 0 times
Shawna
1 months ago
D: Plus, it would make it easier to ensure the blocked domains are checked consistently.
upvoted 0 times
...
Viola
2 months ago
C: Agreed, it would keep the logic organized and easy to maintain.
upvoted 0 times
...
Oliva
2 months ago
B: Yeah, using a helper class with an Apex trigger sounds like a good solution.
upvoted 0 times
...
Ciara
2 months ago
A: I think option B is the way to go.
upvoted 0 times
...
...
Mendy
2 months ago
I'm a little confused about the wording of the question. Does 'Burvey Response_c' mean 'Survey Response_c'? If so, I'd go with Option B as well.
upvoted 0 times
...
Melissa
2 months ago
I disagree, I believe option B is more efficient.
upvoted 0 times
...
Carin
2 months ago
Option B seems like the most efficient approach. Keeping the logic in a helper class allows for easy maintenance and reuse across different objects.
upvoted 0 times
...
Leota
2 months ago
I think option A is the best choice.
upvoted 0 times
...

Save Cancel