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

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

Which two statements are true about Apex code executed in Anonymous Blocks? (Choose two.)

  • A. The code runs with the permissions of the user specified in the runAs() statement.
  • B. The code runs with the permissions of the logged in user.
  • C. The code runs in system mode having access to all objects and fields.
  • D. All DML operations are automatically rolled back.
  • E. Successful DML operations are automatically committed.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
BeatrizBernardo
Highly Voted 1 year, 5 months ago
Selected Answer: BE
Unlike classes and triggers, anonymous blocks execute as the current user and can fail to compile if the code violates the user's object- and field-level permissions.
upvoted 6 times
briccoli11
1 year, 4 months ago
Link to this sentence: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_anonymous_block.htm
upvoted 3 times
gsori
1 year, 4 months ago
Based on that link, answer is B, E
upvoted 1 times
...
...
...
ABHI0O07
Most Recent 8 months ago
B AND E ARE CORRECT ACCORDING TO APEX DOCUMENTATION
upvoted 1 times
...
XSOBYX
1 year, 6 months ago
C and E is the correct option
upvoted 1 times
chucksback
1 year, 3 months ago
No. You don't have system level access in annon apex.
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 ...