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

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 2 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 2
Topic #: 1
[All Certified Platform Developer II Questions]

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments.
Which solution solves these requirements?

  • A. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
  • B. A Custom List View on the junction object with filters that will show the proper records based on owner
  • C. A Custom Report Type and a report Lightning Component on the Community Home Page
  • D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Soliton321
Highly Voted 3 years, 9 months ago
Anwser should be D
upvoted 12 times
MMartin
2 years, 5 months ago
Agree. https://developer.salesforce.com/docs/atlas.en-us.200.0.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm
upvoted 2 times
...
...
Paruv
Most Recent 4 months, 2 weeks ago
Ans: D
upvoted 1 times
...
Debugs_Bunny
12 months ago
Selected Answer: D
C. A Custom Report Type and a report Lightning Component on the Community Home Page: This would provide a way for users to see data they have access to, but like Custom List Views, reporting respects the organization’s sharing model. Reports alone cannot grant additional access beyond what the user already has. D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships: This approach uses Apex Managed Sharing to programmatically share records with users based on complex sharing requirements that cannot be met with standard sharing functionality. Apex Managed Sharing is specifically designed to handle scenarios where sharing needs to go beyond the typical role hierarchy or sharing rules.
upvoted 1 times
...
Sapphire808
1 year ago
C was not an option, therefore D.
upvoted 1 times
...
moitam
1 year, 2 months ago
I'm unsure here... but option C can provide reporting capabilities but would not handle the requirement of dynamically sharing records based on Account hierarchy and junction object relationships. So I would say option D is the correct one.
upvoted 1 times
...
Mak66
1 year, 4 months ago
Selected Answer: C
C and D can be the suitable answers but SF recommend to use more point & click than code so C should be the correct one.
upvoted 1 times
...
levian
2 years, 1 month ago
Its C, altough its possible making with Apex Trigger, Salesforce Alwats recommend to use the standard tools before use code.
upvoted 2 times
...
Sappaul
3 years, 5 months ago
c is the right ans
upvoted 2 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 ...