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 162 discussion

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

A developer must create an Apex class, ContactController, that a Lightning component can use to search for Contact records. Users of the Lightning component should only be able to search for Contact records to which they have access.
Which two will restrict the records correctly? (Choose two.)

  • A. public class ContactController
  • B. public with sharing class ContactController
  • C. public without sharing class ContactController
  • D. public inherited sharing class ContactController
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
SS1121
4 months, 3 weeks ago
Selected Answer: BD
BD is correct
upvoted 2 times
...
SanjeevOnForce
1 year ago
Selected Answer: AB
By default the class used the with sharing. So it's A,B
upvoted 1 times
...
thneeb
1 year, 10 months ago
B + D is correct https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm
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 ...