A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? choose 2 answers
A. Create a master-detail relanstionship between the rating and employee object
B. Create a trigger on the rating object that updates a field on the employee object
C. Create a roll-up sumary field on the employee and use avg to calculate the average rating score
D. Create a lookup realntionship beteween the rating and employee object
What is the maximum number of SOQL queries used by the following code?
A. 5
B. 6
C. 1
D. 2
A developer needs to confirm that a Contact trigger works correctly without changing the organization's data What should the developer do to test the Contact trigger?
A. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
B. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement
C. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
D. Use the Test menu on the Developer Console to run all test classes for the Contact trigger
What are three ways for a developer to execute tests in an org? Choose 3.
A. Bulk API
B. ToolingAPI
C. Metadata API
D. Setup Menu
E. SalesforceDX
Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers
A. Create an Account Roll-up Summary field to count open Opportunities
B. Create an Opportunity Validation Rule to generate an error on insert
C. Create an Account Trigger to generate an error on Opportunity insert
D. Create an Opportunity Workflow Rule to auto-close the Opportunity
How can a developer use a Set
A. Reference the Set in the LIMIT clause of the query
B. Pass the query results as an argument in a reference to the Set.containsAll() method.
C. Pass the Set as an argument in a reference to the Database.query() method
D. Reference the Set in the WHERE clause of the query
A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?
A. @BeforeTest
B. @isTest(SeeAllData=True)
C. @TestSetup
D. @PreTest
What are two ways for a developer to execute tests in an org?
A. Tooling API
B. Developer console
C. Bulk API
D. Matadata API
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is `Technology' while also retrieving the contact's Job_Application__c records. Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts?
A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = `Technology'];
B. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Accounts.Industry = `Technology'];
C. [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = `Technology'];
D. [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = `Technology'];
Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?
A. Option A
B. Option B
C. Option C
D. Option D