exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 67 discussion

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

Which three statements are true regarding the @isTest annotation? (Choose three.)

  • A. A method annotated @isTest(SeeAllData=true) in a class annotated @isTest(SeeAllData=false) has access to all org data.
  • B. A method annotated @isTest(SeeAllData=false) in a class annotated @isTest(SeeAllData=true) has access to all org data.
  • C. A class containing test methods counts toward the Apex code limit regardless of any @isTest annotation.
  • D. Products and Pricebooks are visible in a test even if a class is annotated @isTest(SeeAllData=false).
  • E. Profiles are visible in a test even if a class is annotated @isTest(SeeAllData=false).
Show Suggested Answer Hide Answer
Suggested Answer: ABE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
golhgh
Highly Voted 1 year, 2 months ago
Selected Answer: ABE
Right answers are ABE.
upvoted 10 times
...
atul17
Highly Voted 1 year, 6 months ago
ABE is correct option c is wrong it doesn't count in apex limit.
upvoted 7 times
HR444
1 year, 6 months ago
how can A and B both be correct? don't they imply opposite things?
upvoted 4 times
Arentalon
1 year, 6 months ago
ABE is correct option. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_seealldata_using.htm I created a test class to check it and the AB are correct.
upvoted 5 times
...
...
...
ApexMike
Most Recent 4 months, 3 weeks ago
Selected Answer: ABE
ABE are correct
upvoted 2 times
...
ashwani012
1 year, 5 months ago
However, if the containing class has been annotated with @isTest(SeeAllData=true), annotating a method with @isTest(SeeAllData=false) is ignored for that method. In this case, that method still has access to all the data in the organization. Annotating a method with @isTest(SeeAllData=true) overrides, for that method, an @isTest(SeeAllData=false) annotation on the class. Classes defined with the @isTest annotation don't count against your organization limit of 6 MB for all Apex code. Answer - ABE
upvoted 6 times
...
Salesforte
1 year, 5 months ago
Hello, please review this question. Right answers are ABE. I tested it on my org!
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago