- (Exam Topic 1)
1 Contact con = new Contact ( LastName =fSmith', Department = fAdminT)
2 insert con;
3 Contact insertedContact=[select Name from Contact where id=icon.Id];
4 Savepoint sp_admin = Database.setSavepoint();
5 con.Department = fHRf;
6 update con;
7 Database.rollback(sp_admin);
8 System.debug(Limits.getDmlStatements 0);
Given the following code, what value will be output in the logs by line #8?
Correct Answer:
C
- (Exam Topic 1)
When should you use the "transient" property on variables?
Correct Answer:
B
- (Exam Topic 3)
A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two settings should the developer configure within the xml resource file? Choose 2 answers
Correct Answer:
AC
- (Exam Topic 1)
Universal Containers implements a private sharing model for the Convention_Attendence_c custom object. As part of a new quality assurance effort, the company created an Event Reviewer___c user lookup field on the object. Management wants the event reviewer to automatically
gain Read/write access to every record they are assigned to.
What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?
Correct Answer:
B
- (Exam Topic 3)
Consider the following code snippet:
A developer created the following test class to provide the proper code coverage for the snippet above: However, when the test runs, no data is returned and the assertion fails.
However, when the test runs, no data is returned and the assertion fails.
Which edit should the developer make to ensure the test class runs successfully?
Correct Answer:
D