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 4 Question 10 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 10
Topic #: 4
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

A company has a Request__c object that has a lookup to the Opportunity object and a custom field. Status__c, with values of Open,' Closed,

and Invalid.' An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value

of Open or 'Closed.'

what is the optimal way to enforce the requirement to prevent deletion?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Harrison
4 months ago
I’m surprised this isn’t a built-in feature already!
upvoted 0 times
...
Denise
4 months ago
Definitely an Apex Trigger on Opportunity, no doubt!
upvoted 0 times
...
Lavonna
4 months ago
Wait, can you really delete an Opportunity with Open Requests?
upvoted 0 times
...
Lashawn
4 months ago
I disagree, a Process on Request__c could work too.
upvoted 0 times
...
Lashawn
4 months ago
I think an Apex Trigger on Opportunity is the best way to go.
upvoted 0 times
...
Pete
5 months ago
I wonder if a Process on Request__c could work too? It might be able to handle the logic, but I feel like it wouldn’t be as effective as an Apex Trigger on Opportunity.
upvoted 0 times
...
Nell
5 months ago
I practiced a similar question where we had to prevent deletion based on related records. I think an Apex Trigger on Opportunity would be the best choice, but I’m a bit uncertain about the specifics.
upvoted 0 times
...
Selene
5 months ago
I'm not entirely sure, but I remember something about using a Process Builder on Opportunity. It might be able to handle this, but I feel like it could be limited compared to Apex.
upvoted 0 times
...
Beatriz
5 months ago
I think we might need to use an Apex Trigger on Opportunity to check for related Request__c records before allowing deletion. That seems like the most direct way to enforce the rule.
upvoted 0 times
...
Keena
5 months ago
I'm pretty confident about this one. STP is designed to find a valid path, but not necessarily the optimal path, so the statement is true.
upvoted 0 times
...
Cordelia
5 months ago
I remember we discussed the role of secretaries in ensuring processes run smoothly, but I'm not sure which specific choice fits best here.
upvoted 0 times
...
Katie
5 months ago
This seems like a straightforward question about managing traffic spikes. I think the key is to identify the right AWS service for the job.
upvoted 0 times
...
Veronika
5 months ago
I think the purpose of these programs is to help MCOs, especially for small employers. I practiced similar questions, and option B feels right.
upvoted 0 times
...
Dominque
5 months ago
I remember a practice question where we discussed whether to use SQL Native authentication or Windows authentication, so I think that's a factor too.
upvoted 0 times
...

Save Cancel