ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 114 - Certified Data Architect discussion

Report
Export

Cloud Kicks currently has a Public Read/Write sharing model for the company's Contacts. Cloud Kicks management team requests that only the owner of a contact record be allowed to delete that contact.

What should an Architect do to meet these requirements?

A.
Set the profile of the users to remove delete permission from the Contact object.
Answers
A.
Set the profile of the users to remove delete permission from the Contact object.
B.
Check if the current user is NOT the owner by creating a 'before delete' trigger.
Answers
B.
Check if the current user is NOT the owner by creating a 'before delete' trigger.
C.
Set the Sharing settings as Public Read Only for the Contact object.
Answers
C.
Set the Sharing settings as Public Read Only for the Contact object.
D.
Check if the current user is NOT the owner by creating a validation rule on the Contact object.
Answers
D.
Check if the current user is NOT the owner by creating a validation rule on the Contact object.
Suggested answer: B

Explanation:

Checking if the current user is NOT the owner by creating a ''before delete'' trigger can meet the requirement of allowing only the owner of a contact record to delete that contact. A trigger is a piece of Apex code that can execute before or after a record is inserted, updated, deleted, or undeleted. A ''before delete'' trigger can prevent the deletion of a record by using theaddError()method.

asked 23/09/2024
Daniel Hernandez Villar
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first