Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 87


Which statement is true about using ConnectApi namespace (also called Chatter in Apex)? (Choose two.)

Show Answer
Correct Answer: ACD

Chatter in Apex methods honor the 'with sharing' and 'without sharing' keywords, meaning they respect the sharing settings of the context in which they are executed. Moreover, these methods do not run in system mode; they run in the context of the current user. This ensures that the current user's permissions and sharing rules are enforced during these operations.

Discussion

3 comments
Sign in to comment
Liquad
Aug 24, 2021

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connectapi_differences.htm

Dananth
Jun 30, 2022

Also refer this https://developer.salesforce.com/docs/atlas.en-us.210.0.apexcode.meta/apexcode/connectAPI_TestingApex.htm

AnjindalOptions: AC
May 22, 2024

correct ans is AC