U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
Susy
1 month ago
I think A might be overkill for this task.
upvoted 0 times
...
Donette
2 months ago
B is the simplest option for this.
upvoted 0 times
...
Xochitl
2 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
3 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
3 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
3 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