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 Certified Platform Developer II (Plat-Dev-301) Exam - Topic 3 Question 8 Discussion

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 blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease ofmaintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.What is the optimal way to implement this?
C) Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
A) Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.
B) Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.
D) Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 3 Question 8 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 8
Topic #: 3
[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 blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of

maintenance by users. Note that 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
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Micaela
7 months ago
C makes sense, but isn't it overkill for this task?
upvoted 0 times
...
Selma
7 months ago
Definitely going with B, keeps things organized!
upvoted 0 times
...
Jovita
8 months ago
Wait, can validation rules handle custom objects like that?
upvoted 0 times
...
Vanda
8 months ago
I disagree, D seems simpler with validation rules.
upvoted 0 times
...
Maurine
8 months ago
I think option C is the best way to go. Reusable logic is key!
upvoted 0 times
...
Roxane
8 months ago
I practiced a similar question, and I think option A might be too much work since it requires implementing logic in two different places.
upvoted 0 times
...
Reena
8 months ago
I feel like option B could work, but it seems like it might lead to some redundancy if we have to call the same method in two places.
upvoted 0 times
...
Laquanda
8 months ago
I'm not entirely sure, but I think using validation rules could be limiting since they might not allow for complex logic.
upvoted 0 times
...
Staci
8 months ago
I remember we discussed the importance of keeping logic centralized to avoid duplication, so maybe option C is the best choice?
upvoted 0 times
...
Azalee
9 months ago
Hmm, this seems straightforward. I think the key is understanding the limitations around writing back to Kafka.
upvoted 0 times
...
Billy
9 months ago
I feel pretty confident about this one. Based on the details provided, the deliverable management option seems like the most logical choice to automatically approve the invoices. I'll double-check the other options, but that's my initial thought.
upvoted 0 times
...
Elli
9 months ago
I'm pretty confident about this one. Flannel is a popular network plugin for Kubernetes, and it definitely supports Network Policies.
upvoted 0 times
...

Save Cancel