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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam CRT-450 topic 1 question 11 discussion

Actual exam question from Salesforce's CRT-450
Question #: 11
Topic #: 1
[All CRT-450 Questions]

A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-
Detail relationship to a timecard.
Which approach should the developer use to accomplish this declaratively?

  • A. A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
  • B. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
  • C. A Process Builder process that updates a field on the timecard when a timecard entry is created
  • D. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
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
SS1121
1 month ago
Selected Answer: B
B is correct, as option A is not declarative.
upvoted 1 times
...
PriyankN
4 months, 3 weeks ago
B is correct
upvoted 2 times
...
HRVMMRVH
10 months, 3 weeks ago
Certainly not A, since a declarative solution is needed. It should be B. Hours can be stored as number field on Timesheet entry records.
upvoted 3 times
...
CSYU
1 year, 1 month ago
Selected Answer: A
The answer is def A Although it's a Master-detail relationship, we can't use a roll-up summary field on date/time field when using SUM type. It's available only when using MAX/MIN as described in the Help page. When the developer wants to know total hours, he can use an Apex code and as the total hours doesn't have to be saved in DB in this case, so the answer is A. https://help.salesforce.com/s/articleView?id=sf.fields_about_roll_up_summary_fields.htm&type=5
upvoted 1 times
CSYU
1 year, 1 month ago
When it comes to the field type is Number, the answer can be B. The question is too abstract...
upvoted 2 times
...
mariamarlenepereira9
6 months, 2 weeks ago
Total (number of) hours = SUM, so this can be achieved using a roll up summary field
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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in