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

Exam Certified Sharing and Visibility Architect All Questions

View all questions & answers for the Certified Sharing and Visibility Architect exam

Exam Certified Sharing and Visibility Architect topic 1 question 41 discussion

Actual exam question from Salesforce's Certified Sharing and Visibility Architect
Question #: 41
Topic #: 1
[All Certified Sharing and Visibility Architect Questions]

After testing and deploying a new trigger that creates a related order when an opportunity is closed, the Architect begins receiving complaints of permission error messages appearing when closing an opportunity.
How did this error occur?

  • A. The trigger handlers class does not use any sharing keywords and the user does not have access to the orders related to the opportunity.
  • B. The trigger handler class is using “with sharing” and the user does not have access to the orders related to the opportunity.
  • C. The trigger should be using RunAs() when creating the order.
  • D. Trigger is using IsCreateable() Apex method and the user doe not have create permission on the Order object.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
roberto_ampl
Highly Voted 1 year, 3 months ago
Selected Answer: D
i think D is the answer, because A end B are equivalent, default sharing is "With Sharing", and old related order not impact the creation of new one.
upvoted 9 times
...
mariella_88
Highly Voted 1 year, 3 months ago
I think D is the right answer. A and B are not relevant for the use case, because to create a new order it is not necessary to have access to already existing orders. And C it is just for test classes
upvoted 5 times
...
6967185
Most Recent 3 months, 4 weeks ago
B. Since isCreateable() returns true if the field can be created by the current user, false otherwise. Unless I read this wrong, there is no mention of a "field" in this question.
upvoted 1 times
...
Rangya
8 months, 1 week ago
Selected Answer: B
If it's be D, User won't be getting a message.
upvoted 1 times
...
Nilesh_Nanda
10 months ago
I think B is correct Because IsCreateable() just checks user access
upvoted 2 times
...
LiberPolly
1 year ago
Selected Answer: B
Don't think it is D, because if the trigger was using IsCreateable() to check for permissions before trying to create the Order, there shouldn't be any permission errors
upvoted 2 times
...
syuan0321
1 year, 3 months ago
B might be right. With out sharing ignores sharing rules is the default model for Apex class
upvoted 4 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 ...