exam questions

Exam Certified Platform App Builder All Questions

View all questions & answers for the Certified Platform App Builder exam

Exam Certified Platform App Builder topic 1 question 103 discussion

Actual exam question from Salesforce's Certified Platform App Builder
Question #: 103
Topic #: 1
[All Certified Platform App Builder Questions]

Universal Containers has a requirement that an Opportunity should have a field showing the value of its associated account's billing state. This value should not change after the Opportunity has been created.
What is the recommended solution to configure this automation behavior?

  • A. Formula field
  • B. Apex
  • C. Roll-up summary field
  • D. Workflow
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
FBurg
Highly Voted 3 years, 6 months ago
Should be Formula Field
upvoted 8 times
adhi_ind
2 years ago
No, Formula field is dynamic in nature.
upvoted 3 times
...
andreapi
3 years, 5 months ago
Formula field will have always the current value
upvoted 7 times
...
...
kaiRoMa
Highly Voted 2 years, 1 month ago
Selected Answer: D
Answer D - Workflow Rule: only triggers on Opportunity Creation, criteria Account.BillingState != null Action: Field Update - Use formula to update field, Account_Billing_State__c = Account.BillingState (Do not re-evaluate workflow rules after field change, in case of any potential recursion storm.) Apex Trigger, after insert could also work here but the question clearly states, no code. It is absolutely not A - A formula field acheives the first part but not the caveat, as any Billing State change will reflect after update in the opportunity as well.
upvoted 7 times
...
mauro_b
Most Recent 11 months ago
Selected Answer: D
First I thought of A but since Formula fields can change over time then it should be D. You can set the workflow rule so you cannot change the fields later.
upvoted 2 times
...
Narend
1 year, 8 months ago
If use Formula Field, the value can be change if the associated account has been changed.But if you use a WF that with criteria 'created record' and read only field that value will be not be change at all time.
upvoted 3 times
...
Freddy04
1 year, 9 months ago
The reason why A is incorrect: IF(ISNEW(), Account.BillingState , PRIORVALUE(Account.BillingState)) this would be true only if formula field supported ISNEW and PRIORVALUE functions. Correct answer is D. Workflow rule can be created on opportunity that will fire only when record is created.
upvoted 3 times
...
Mims22
2 years ago
Tested with workflow - also works. Maybe this question should have 2 correct answers.
upvoted 1 times
Mims22
2 years ago
Disregard this - formula fields are read only, which means no change is possible, while with workflow, the user is able to update the state after the workflow has finished.
upvoted 2 times
...
...
Mims22
2 years ago
Tested with Formula field - it works. It is A
upvoted 1 times
Mims22
2 years ago
Moreover, it is cross-object formula and formula fields are always read only.
upvoted 2 times
...
...
SpiritualBeing
2 years, 3 months ago
"Workflow" is incorrect because it is totally irrelevant. We are not updating any field here. Our end goal is to display other object's fields on our record. "Apex" is incorrect because when we can accomplish it with the Formula field we should not use Apex for it. "Roll-up summary field" is incorrect because it is totally irrelevant. The roll-up summary field summarizes data from all the related records and displays them on a specific field. The correct Answer is A
upvoted 1 times
nibbio
1 year, 11 months ago
Workflow is not irrilevant because you can have the rule to run it when a new record is created
upvoted 2 times
...
...
Almundo
2 years, 5 months ago
Workflow can be set up to run upon creation only, therefore the field will never change after its been created. A formula field will work in real-time with the associated Account's billing state, updating repeatedly. The correct answer is workflow, D.
upvoted 2 times
Bunny12233
2 years, 5 months ago
Correct Answer is A
upvoted 1 times
...
...
Ma21
2 years, 7 months ago
I am going with Formula - A
upvoted 3 times
...
StartR
3 years, 1 month ago
isNEW() function is only available for workflow not for validation rule. so Workflow is the right answer
upvoted 3 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 ...