How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?
A. Create a Sharing Rule comparing the custom object owner to the account owner.
B. Create a validation rule on the custom object comparing the record owners on both records.
C. Include the sharing related list on the custom object page layout.
D. Ensure that the relationship between the objects is Master-Detail.
Which three process automations can immediately send an email notification to the owner of an Opportunity when its Amount is changed to be greater than $10,000? Choose 3 answers
A. Workflow Rule (Missed)
B. Flow Builder
C. Approval Process (Missed)
D. Escalation Rule
E. Process Builder (Missed)
Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?
A. The transaction will fail due to exceeding the governor limit.
B. The try/catch block will handle any DML exceptions thrown.
C. The transaction will succeed and changes will be committed.
D. The try/catch block will handle exceptions thrown by governor limits.
A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?
A. In a Standard Extension.
B. In a Standard Controller.
C. In a Custom Controller.
D. In a Controller Extension.
A developer considers the following snippet of code:
Boolean isOK; integer x; String theString = 'Hello'; if (isOK == false andand theString == 'Hello') { x = 1; } else if (isOK == true andand theString =='Hello') { x = 2; } else if (isOK != null andand theString == 'Hello') { x = 3; } else { x = 4; } Based on this code, what is the value of x?
A. 2
B. 1
C. 3
D. 4
How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers
A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.
C. By using the ApexPages.Page() method with a Visualforce page name.
D. By using the PageReference.Page() method with a partial or full URL.
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');
How many accounts are in the org after this code is run?
A. 101
B. 100
C. 102
D. 252
Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able todo so. What is apossible reason that this change was not permitted?
A. The Account records contain Vendor roll-up summary fields.
B. The Vendor object must use a Master-Detail field for reporting.
C. The Vendor records have existing values in the Account object.
D. The Account object is included on a workflow on the Vendor object.
To which primitive data type in Apex is a currency field atomically assigned?
A. Integer
B. Decimal
C. Double
D. Currency
How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
A. By querying the role hierarchy.
B. By calling the isShared() method for the record.
C. By querying CustomObject__Share.
D. By calling the profile settings of the current user.