Font size
WorksheetsRepaso Dev
Total questions: 13
Worksheet time: 8mins
Why would a developer use Test. startTest( ) and Test.stopTest( ) ?
To avoid Apex code coverage requirements for the code between these lines
To start and stop anonymous block execution when executing anonymous
To indicate test code so that it does not Impact Apex line count governor limits.
To create an additional set of governor limits during the execution of a single test class.
A developer uses a before insert trigger on the Lead object to fetch the Territory__c object, where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block:Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode];Line-04: if(terrList.size() > 0)Line-05: l.Territory__c = terrList[0].Id;Line-06: }Line-07: }Which line of code is causing the code block to fail?
Line-03: A SOQL query is located inside of the for loop code.
Line-01: Trigger:new is not valid in a before insert Trigger.
Line-02: A NullPointer exception is thrown if PostalCode is null.
Line-05: The Lead in a before insert trigger cannot be updated.
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
Create a workflow rule with a field update.
Create a Lightning Component.
Create a Visualforce page.
Create a process with Process Builder.
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.Which kind of relationship would a developer use to relate the Account to the Warehouse?
One -to -Many
Lookup
Master -Detail
Parent -Child
What is true for a partial sandbox that is not true for a full sandbox? (Choose 2)
More frequent refreshes.
Only Includes necessary metadata.
Use of change sets.
Does not include all data
When loading data into an organization, what can a developer do to match records to update existing records?Choose 2 answers
Match an external Id Text field to a column in the imported file.
Match the Id field to a column in the Imported file.
Match the Name field to a column in the imported file.
Match an auto -generated Number field to a column in the imported file.
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each job posting in the schema for the organization?
Create a lookup relationship on both objects to a junction object called Job Posting Applications.
Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
Create a master-detail relationship in the Application custom object to the Job Postings custom object.
Create a lookup relationship in the Applications custom object to the Job Postings custom object.
What is a characteristic of the Lightning Component Framework?
Choose 2 answers:
It has an event-driven architecture.
It works with existing Visualforce pages.
It includes responsive components.
It uses XML as its data format.
Which resource can be included in a Lightning Component bundle?
Choose 2 answers
Apex class
Adobe Flash
JavaScript
Documentation
In the Lightning Component framework, which resource can be used to fire events?
Choose 2 answers
Visualforce controller options
Third-party web service code
Third-party Javascript code
Javascript controller actions
What is a capability of cross-object formula fields?
Choose 3 answers
Formula fields can reference fields from master-detail or lookup parent relationships.
Formula fields can expose data the user does not have access to in a record.
Formula fields can be used in three roll-up summaries per object.
Formula fields can reference fields in a collect of records from a child relationship.
Formula fields can reference fields from objects that are up to 10 relationships away.
Which data structure is returned to a developer when performing a SOSL search?
A list of lists of sObjects.
A map of sObject types to a list of sObjects
A map of sObject types to a list of lists of sobjects
A list of sObjects.
How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)
By using Maps to hold data from query results
By using the Database class to handle DML transactions
By performing DML transactions on a list of sObjects.
By using a helper class that can be invoked from multiple triggers
