SALESFORCE PLATFORM DEVELOPER II 2024
ACTUAL EXAM COMPLETE ACCURATE EXAM
QUESTIONS WITH DETAILED VERIFIED ANSWERS
(100% CORRECT ANSWERS) /ALREADY GRADED A+
What is sharing? - ANSWER Enables record-level access control for all custom objects,
as well as many standard objects
What are the 3 types of sharing? - ANSWER - Force.com Managed Sharing
- User Managed Sharing (Manual Sharing)
- Apex Managed Sharing
Define Force.com Managed Sharing. - ANSWER Involves sharing access granted by
Force.com based on record ownership, the role hierarchy, and sharing rules
Define User Managed Sharing. - ANSWER Allows the record owner or any user with
Full Access to a record to share the record with a user or group of users
Define Apex Managed Sharing. - ANSWER Provides developers with the ability to
support an application's particular sharing requirements programmatically through Apex
or the SOAP API
What field on a custom object specifies the type of sharing used for a record? -
ANSWER Reason
What is the "Reason" field (which specifies the type of sharing for a record) called in
Apex or the Force.com API? - ANSWER rowCause
What are the 4 access levels that share objects support and their API names? -
ANSWER - Private (None)
- Read Only (Read)
- Read / Write (Edit)
- Full Access (All)
Define PRIVATE sharing access. - ANSWER Only the record owner and users above
the record owner in the role hierarchy can view and edit the record. This access level
only applies to the AccountShare object.
Define READ ONLY sharing access. - ANSWER The specified user or group can view
the record only.
, Define READ/WRITE sharing access. - ANSWER The specified user or group can view
and edit the record.
Define FULL ACCESS sharing access. - ANSWER The specified user or group can
view, edit, transfer, share, and delete the record. Can only be granted with managed
sharing.
How does one access sharing programmatically? - ANSWER By using the share object
associated with the standard or custom object for which you want to share.
What is an example of a standard share object? - ANSWER AccountShare
What is an example of custom share object? - ANSWER MyCustomObject__Share
Do objects on the details side of a master-detail relationship have an associated sharing
object? - ANSWER No
Are org-wide defaults tracked within an object's share object? - ANSWER No
What 4 properties do all share objects have? - ANSWER - objectNameAccessLevel
(level of access that the specified user or group has been granted for a share sObject)
- ParentId (The ID of the object)
- RowCause (reason why the user or group is being granted access)
- UserOrGroupId (user or group IDs to which you are granting access)
What is the format for sharing reasons? - ANSWER MyReasonName__c
How can sharing reasons be referenced programmatically? - ANSWER
Schema.CustomObject__Share.rowCause.SharingReason__c
How does one recalculate apex managed sharing? - ANSWER You must write an apex
class that implements the Database.Batchable interface.
What is the naming convention for standard object field history log tables? - ANSWER
<ObjectName>History
What is the naming convention for custom object field history log tables? - ANSWER
My_Object_History
What fields does each history log table contain? - ANSWER - ParentId (Id of record field
modification happened on)
- Field (API name of the modified field)
- OldValue (Field value prior to the modification)
- NewValue (Field value after modification)
- CreatedById (Id of the User who made the modification)
ACTUAL EXAM COMPLETE ACCURATE EXAM
QUESTIONS WITH DETAILED VERIFIED ANSWERS
(100% CORRECT ANSWERS) /ALREADY GRADED A+
What is sharing? - ANSWER Enables record-level access control for all custom objects,
as well as many standard objects
What are the 3 types of sharing? - ANSWER - Force.com Managed Sharing
- User Managed Sharing (Manual Sharing)
- Apex Managed Sharing
Define Force.com Managed Sharing. - ANSWER Involves sharing access granted by
Force.com based on record ownership, the role hierarchy, and sharing rules
Define User Managed Sharing. - ANSWER Allows the record owner or any user with
Full Access to a record to share the record with a user or group of users
Define Apex Managed Sharing. - ANSWER Provides developers with the ability to
support an application's particular sharing requirements programmatically through Apex
or the SOAP API
What field on a custom object specifies the type of sharing used for a record? -
ANSWER Reason
What is the "Reason" field (which specifies the type of sharing for a record) called in
Apex or the Force.com API? - ANSWER rowCause
What are the 4 access levels that share objects support and their API names? -
ANSWER - Private (None)
- Read Only (Read)
- Read / Write (Edit)
- Full Access (All)
Define PRIVATE sharing access. - ANSWER Only the record owner and users above
the record owner in the role hierarchy can view and edit the record. This access level
only applies to the AccountShare object.
Define READ ONLY sharing access. - ANSWER The specified user or group can view
the record only.
, Define READ/WRITE sharing access. - ANSWER The specified user or group can view
and edit the record.
Define FULL ACCESS sharing access. - ANSWER The specified user or group can
view, edit, transfer, share, and delete the record. Can only be granted with managed
sharing.
How does one access sharing programmatically? - ANSWER By using the share object
associated with the standard or custom object for which you want to share.
What is an example of a standard share object? - ANSWER AccountShare
What is an example of custom share object? - ANSWER MyCustomObject__Share
Do objects on the details side of a master-detail relationship have an associated sharing
object? - ANSWER No
Are org-wide defaults tracked within an object's share object? - ANSWER No
What 4 properties do all share objects have? - ANSWER - objectNameAccessLevel
(level of access that the specified user or group has been granted for a share sObject)
- ParentId (The ID of the object)
- RowCause (reason why the user or group is being granted access)
- UserOrGroupId (user or group IDs to which you are granting access)
What is the format for sharing reasons? - ANSWER MyReasonName__c
How can sharing reasons be referenced programmatically? - ANSWER
Schema.CustomObject__Share.rowCause.SharingReason__c
How does one recalculate apex managed sharing? - ANSWER You must write an apex
class that implements the Database.Batchable interface.
What is the naming convention for standard object field history log tables? - ANSWER
<ObjectName>History
What is the naming convention for custom object field history log tables? - ANSWER
My_Object_History
What fields does each history log table contain? - ANSWER - ParentId (Id of record field
modification happened on)
- Field (API name of the modified field)
- OldValue (Field value prior to the modification)
- NewValue (Field value after modification)
- CreatedById (Id of the User who made the modification)