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 Plat-Dev-210 Exam - Topic 2 Question 12 Discussion

A developer needs to configure a calculation procedure to calculate the sum of the entire base price.What is the most efficient way for the developer to meet this requirement?
B) Add an Aggregation Step as SUM (BasePrice)
A) Create a Postprocessor apex class to calculate the sum.
C) Add A Calculation Step as SUM (BasePrice).
D) Create a Preprocessor class to calculate the sum

Salesforce Plat-Dev-210 Exam - Topic 2 Question 12 Discussion

Actual exam question for Salesforce's Plat-Dev-210 exam
Question #: 12
Topic #: 2
[All Plat-Dev-210 Questions]

A developer needs to configure a calculation procedure to calculate the sum of the entire base price.

What is the most efficient way for the developer to meet this requirement?

Show Suggested Answer Hide Answer
Suggested Answer: B

he Aggregation Step in a calculation procedure allows the developer to perform aggregate functions such as SUM, COUNT, MIN, MAX, and AVG on the output of a previous step.The developer can use this step to calculate the sum of the entire base price by specifying the field name and the aggregation function


Contribute your Thoughts:

0/2000 characters
Deja
1 month ago
Option A seems good too, but it might be overkill for this task.
upvoted 0 times
...
Monroe
2 months ago
I prefer option C. Calculation steps are straightforward.
upvoted 0 times
...
Freeman
2 months ago
I think option B is the best. Aggregation steps are efficient.
upvoted 0 times
...
Louvenia
2 months ago
Wait, can you really use a Preprocessor for this?
upvoted 0 times
...
Michel
2 months ago
D? Really? That seems unnecessary.
upvoted 0 times
...
Lai
2 months ago
C sounds right, but I’m not sure about the efficiency.
upvoted 0 times
...
Susy
4 months ago
I think A might be overkill for this task.
upvoted 0 times
...
Donette
4 months ago
B is the simplest option for this.
upvoted 0 times
...
Xochitl
5 months ago
I lean towards option B, but I wonder if there are performance implications I haven't considered. It seems like the simplest approach.
upvoted 0 times
...
Gwen
5 months ago
I'm a bit confused about the difference between a Preprocessor and a Postprocessor. I feel like creating a Postprocessor class might be overkill for just summing prices.
upvoted 0 times
...
Brett
5 months ago
I remember practicing a similar question where we had to choose between a calculation step and a postprocessor. I think the calculation step could be the right choice here.
upvoted 0 times
...
Ruthann
5 months ago
I think adding an Aggregation Step as SUM (BasePrice) might be the most straightforward option, but I'm not entirely sure if it's the most efficient.
upvoted 0 times
...

Save Cancel