New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 5 Question 90 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 90
Topic #: 5
[All Salesforce Certified Platform Developer II (Plat-Dev-301) 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:

0/2000 characters
Nan
3 months ago
A is too limiting, we need something more flexible like B.
upvoted 0 times
...
Magnolia
3 months ago
D sounds a bit convoluted, not sure it’s optimal.
upvoted 0 times
...
Ilene
3 months ago
Surprised that validation rules aren't mentioned more. They could simplify things!
upvoted 0 times
...
Glynda
4 months ago
I disagree, C seems more straightforward with triggers.
upvoted 0 times
...
Shonda
4 months ago
I think option B is the best choice. Helper classes are great for reusability.
upvoted 0 times
...
Geraldo
4 months ago
I vaguely remember that triggers can be tricky with bulk operations, so maybe option D is better since it keeps the logic in the controller. But I'm not entirely sure.
upvoted 0 times
...
Brett
4 months ago
I'm a bit confused about whether to implement everything in the Visualforce controller or use triggers. I feel like both options could work, but I can't recall the pros and cons.
upvoted 0 times
...
Vallie
4 months ago
I think option B sounds familiar because it involves a helper class, which we practiced in class. It seems like a clean way to handle the logic.
upvoted 0 times
...
Virgina
5 months ago
I remember we discussed using validation rules for similar scenarios, but I'm not sure if that's the best approach here since we need to check against a custom object.
upvoted 0 times
...
Lavera
5 months ago
This seems like a straightforward problem, but I want to make sure I'm choosing the best approach. I'm leaning towards implementing the logic in an Apex trigger on Contact and also in the custom Visualforce page controller, just to be safe.
upvoted 0 times
...
Alpha
5 months ago
I think implementing the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller is the way to go. That way, I can centralize the logic and reuse it across both the Contact and Survey Response_c objects.
upvoted 0 times
...
Beckie
5 months ago
Hmm, I'm not sure which option is the best here. I'll need to think through the pros and cons of each approach before deciding. Maybe I'll start by looking at the custom Visualforce page and see how that's implemented.
upvoted 0 times
...
Helene
5 months ago
I'm a bit confused on the best way to approach this. Should I implement the logic in validation rules on the Contact and the Survey Response_c Objects, or is there a better way to do it?
upvoted 0 times
...
Son
5 months ago
This looks like a straightforward problem to solve. I think implementing the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller would be the optimal approach.
upvoted 0 times
...
Mary
5 months ago
This is a great question that really tests our understanding of AWS networking solutions. I'm feeling confident that I can analyze the requirements and select the most appropriate option.
upvoted 0 times
...
Kristel
5 months ago
I think the current ratio stays the same when you advance cash to the divisional office, but I'm not completely sure if it affects current assets.
upvoted 0 times
...
Ty
5 months ago
Hmm, I'm a bit confused about the differences between managed and unmanaged code. I'll need to think this through carefully.
upvoted 0 times
...
Kate
10 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
9 months ago
Plus, it helps with reusability in case the logic needs to be used in other parts of the system.
upvoted 0 times
...
Benton
9 months ago
Definitely, it's important to keep things organized and easy to maintain.
upvoted 0 times
...
Jettie
9 months ago
I agree, having a centralized helper class makes it easier to manage and update the logic.
upvoted 0 times
...
Moira
10 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
10 months ago
User 2: Agreed, having the logic in a helper class keeps things organized.
upvoted 0 times
...
Amos
10 months ago
User 1: I think option B is the best choice.
upvoted 0 times
...
...
Leota
11 months ago
But option A allows for easier maintenance by users.
upvoted 0 times
...
Kimbery
11 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
10 months ago
D: Plus, it would make it easier to ensure the blocked domains are checked consistently.
upvoted 0 times
...
Viola
10 months ago
C: Agreed, it would keep the logic organized and easy to maintain.
upvoted 0 times
...
Oliva
10 months ago
B: Yeah, using a helper class with an Apex trigger sounds like a good solution.
upvoted 0 times
...
Ciara
10 months ago
A: I think option B is the way to go.
upvoted 0 times
...
...
Mendy
11 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
11 months ago
I disagree, I believe option B is more efficient.
upvoted 0 times
...
Carin
11 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
11 months ago
I think option A is the best choice.
upvoted 0 times
...

Save Cancel