Salesforce Platform Developer 1 Set 3
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.
Change Set deployment to production fails with the test coverage warning! "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required."
What should the developer do to successfully deploy the new Apex trigger and helper class?
Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on an ad-hoc basis when the user presses a custom button on the Opportunity detail page. Example values are as follows:
• Name
• Amount
• Account
Which two methods should the developer implement to fulfill the business requirement?
Choose 2 answers
A developer created these three Rollup Summary fields in the custom object, Project_c!
- Total Timesheets__c
- Total Approved Timesheets_ c
- Total Rejected_Timesheet_c
The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.
Which should the developer use to implement the business requirement in order to minimize maintenance overhead?
An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.
How can this be achieved?
The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage.
production, assuming no other code exist?
What should be used to ensure that a user populates the Lead Source field prior to converting a Lead?
What is the correct implementation?
Which approach can efficiently generate the required data for each unit test?
Universal Containers decides to use purely declarative development to build out a new Salesforce application.
Which two options can be used to build out the business logic layer for this application?
Choose Two:
What should the developer use to override the Contact's Edit button and provide this fun
Refer to the following Apex code:
Integer x=0;
do{
x=1;
x++;
}
while (x < 1);
System.debug(x)
What is the value of x when it is written to the debug log?
Choose 3 answers
Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers
Choose 2 answers
A developer is debugging the following code to determine why Accounts are not being created.
List<Account> aceta = getAccounts ();
Database.insert(acota, false);
How should the code be altered to help debug the issue?

Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component?
Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.
Which consideration should the developer be aware of when deciding between SOQL and SOSL?
Choose 2 answers
A developer has to identify a method in en Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a SOQL statement to save the changes to the database.
Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits?
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing Orderltem records to a new Order record?
Choose 2 answers

Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers
}
public void pay(Decimal amount);
}
C. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount);
}
D. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount) {}
}

Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.
n the first step of collecting information, UC's ERP system must be checked via a REST endpoint to see if the customer exists. If the customer exists, the data must be presented to the sales rep in Salesforce.
Which two (2) should a developer implement to satisfy the requirements?