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

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 69 discussion

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

A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records.
Which two actions should a developer take to accomplish this task? (Choose two.)

  • A. Create a trigger on the Rating object that updates a fields on the Employee object.
  • B. Create a lookup relationship between the Rating and Employee object.
  • C. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
  • D. Create a master-detail relationship between the Rating and Employee objects.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
golhgh
Highly Voted 2 years, 11 months ago
Selected Answer: AB
Roll-Up summary doesn't have avg . Master detail gives access to both master and detail which is not desired here.
upvoted 15 times
...
Brauliongon
Highly Voted 3 years, 2 months ago
A. Create a trigger on the Rating object that updates a fields on the Employee object. B. Create a lookup relationship between the Rating and Employee object. Roll up summary doesn't have avg
upvoted 13 times
...
PrivateUser
Most Recent 1 month ago
Selected Answer: AD
A & D makes more sense. You can't have a rating without an employee. Tested in a Dev Sandbox when creating a master detail on a custom object to Employee object: "Sharing Setting - Select the minimum access level required on the Master record to create, edit, or delete related Detail records: Read Only: Allows users with at least Read access to the Master record to create, edit, or delete related Detail records. Read/Write: Allows users with at least Read/Write access to the Master record to create, edit, or delete related Detail records."
upvoted 1 times
...
irina_735
1 year ago
Selected Answer: AD
I think B is not best option because Rating object has no sense without Employee object. In MD only read access to the parent is obligatory for detail object. Create/Edit/Delete permissions can be separate for master and detail record.
upvoted 2 times
...
edogaldo
1 year, 1 month ago
Selected Answer: AD
I I would vote for A & D: A because as already explained by others there is no AVG function in roll-up summary fields. D because you just need read access to the parent to be able to create child records and, to me, it wouldn't make sense a rating record without an associated employee; of course you can enforce requirement for a lookup relationship but it could also be optional and in B it's not stated that the lookup relationship should be marked as required..
upvoted 3 times
MaxGoiabinha
6 months, 2 weeks ago
If you only had "read" access to the Master object, you would only have read access to the child as well, which would not allow you to create a child record.
upvoted 1 times
...
...
ApexMike
2 years, 1 month ago
Selected Answer: AB
C cannot be correct since there is not AVE formula for roll-up field
upvoted 4 times
...
PeterRuivo
3 years ago
There is no AVG in Roll-Up summary In a Master-Detail de detail inherit definitions access from Master.
upvoted 2 times
...
Max641
3 years, 2 months ago
And... if a Master-Detail relationship is used, and employees can create Ratings, then they'd also be able to create Employees.
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 ...