A developer is notified that a text field is being automatically populated with invalid values.however, this should be prevented by a custom validation rule that is in placewhat could be causing this?
A. The field is being populated by a workflow field update
B. A DML exception is occuring during the save order of execution
C. The field is being populated by a before trigger
D. The user belongs to a permission set that suppresses the validation rule
What is the order of operations when a record is saved in Salesforce?
A. Process flows, triggers, workflow, commit
B. Workflow, process flows, triggers, commit
C. Workflow, triggers, process flows, commit
D. Triggers, workflow, process flows, commit
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?
A. List
B. List> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
C. Map
D. List> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like '%ACME%');
A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to test independent requirements various types of Salesforce Cases.
Which approach can efficiently generate the required data for each unit test?
A. Add @IsTest(seeAllData=true) at the start of the unit test class
B. Create test data before test.startTest() in the test unit.
C. Use @TestSetup with a void method
D. Create a mock using Stub API
In the Lightning Component framework, where is client-side controller logic contained?
A. Apex
B. Visualforce
C. HTML
D. JavaScript
A developer has the following code block:
public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost *
XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?
A. SalesTax
B. PayTax.SalesTax
C. PaymentTax.SalesTax
D. OpportunityLineItemTngger.SalesTax
Given:
Map
A. for (ID accountID : accountMap.keySet()) {...}
B. for (Account accountRecord : accountMap.values()) {...}
C. for (Integer i=0; I < accountMap.size(); i++) {...}
D. for (ID accountID : accountMap) {...}
E. for (Account accountRecord : accountMap.keySet()) {...}
What is the result of the following code?
A. The record will not be created and a exception will be thrown.
B. The record will be created and a message will be in the debug log.
C. The record will not be created and no error will be reported.
D. The record will be created and no error will be reported.
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
1.
Rollup summary fields
2.
Custom validation rules
3.
Duplicate rules A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code? Choose 2 answers
A. Rollup summary fields can cause the parent record to go through Save.
B. The trigger may fire multiple times during a transaction.
C. Duplicate rules are executed once all DML operations commit to the database.
D. The validation rules will cause the trigger to fire again.
A software company uses the following objects and relationships:
1.
Case: to handle customer support issues
2.
Defect_c: a custom object to represent known issues with the company's software
3.
case_Defect_c: a junction object between Case and Defector to represent that a defect Is a customer issue
What should be done to share a specific Case-Defect_c record with a user?
A. Share the Case_Defect_c record.
B. Share the parent Case record.
C. Share the parent Defect_c record.
D. Share the parent Case and Defect_c records.