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

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

A developer is trying to access org data from within a test class.
Which sObject type requires the test class to have the (seeAllData=true) annotation?

  • A. Report
  • B. User
  • C. Profile
  • D. RecordType
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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, 10 months ago
A is correct. https://salesforce.stackexchange.com/questions/149110/when-is-it-appropriate-to-use-seealldata-true
upvoted 22 times
CraigJ
3 years, 6 months ago
Agree. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_data_access.htm
upvoted 3 times
...
...
amerbearat
Highly Voted 3 years, 3 months ago
Answer: A BCD are accesible from DB by default.
upvoted 6 times
...
SassyRock
Most Recent 7 months, 3 weeks ago
Selected Answer: A
https://salesforce.stackexchange.com/questions/149110/when-is-it-appropriate-to-use-seealldata-true
upvoted 1 times
...
aroraraj16
9 months ago
Selected Answer: A
We can not see Report without SeeAllData=true. So A is correct
upvoted 1 times
...
thneeb
1 year, 9 months ago
Selected Answer: A
BCD is accessible anyway, only for accessing reports the annotation is needed
upvoted 1 times
...
sf2022
1 year, 11 months ago
Selected Answer: A
A Report, since it is not visible by default
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 ...