Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 249 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 249
Topic #: 1
[All Certified Platform Developer II Questions]

An org contains two custom objects: Building__c and Office__c. Office__c has a Lookup field to Building__c.
A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c records anytime an
Office__c record is created or deleted. The developer cannot modify the field types.
Which solutionmeets the requirements?

  • A. Flow
  • B. Workflow
  • C. Apex Trigger
  • D. Process Builder
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
suddeb
Highly Voted 2 years, 8 months ago
Flow is the correct answer as you can now trigger flow on record deletion as well.
upvoted 8 times
M4JK3LSON
11 months ago
But you still cannot run flow when records is undeleted, so Trigger seems to be a better option
upvoted 2 times
...
...
OmShantiVeg
Most Recent 2 years, 4 months ago
Ans i A
upvoted 2 times
...
AnhTH
3 years, 1 month ago
Apex trigger is correct answer. Can't trigger workflow, process builder and flow with delete record event.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...