
Salesforce Platform Developer II

Quiz
•
Other
•
Professional Development
•
Easy
Von Vibar
Used 14+ times
FREE Resource
145 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A company has a custm object, Order__c, that has a required, unique external ID field called Order_Number__c.
Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of Order__c records using the external ID field?
upsert orders Order_Number__c;
upsert orders;
merge orders;
merge orders Order_Number__c
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class.
How can the developer generate the code coverage?
Add $testVisible to the method in the class the developer is testing.
Verify the user has permissions passing a user into the System.runAs().
Call the Apex class method from a testMethod instead of the testSetup method.
Use system.assert() in testSetup to verify the values are being returned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method should be used to convert a Date to a String in the current user's locale?
Date.parse
Date.format
String.format
String.valueOf
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields.
Which two components should a developer use to implement the creation of the Case from the Lightning web component?
Choose 2 answers
lightning-record-edit-form
lightning-input
lightning-record-form
lightning-input-field
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ursa Major Solar has a custom object, ServiceJob__c, with an optional Lookup field to Account called Partner_Service_Provider__c.
The TotalJobs__c field on Account tracks the total number of ServiceJob__c records to which a partner service provider Account is related.
What is the most efficient way to ensure that the Total_Jobs__c field is kept up to date?
Create a record-triggered flow on Service_Job_c.
Change TotalJobs__c to a roll-up summary field.
Create a schedule-triggered flow on Service_Job__c.
Create an Apex trigger on ServiceJob__c.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What are three reason that a developer should write Jest tests for Lightning web component?
Choose 3 answers
To verify that events fire when expected
To test basic user interaction
To verify the DOM output of a component
To test how multiple components work together
To test a component's non-public properties
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
As part of a custom development, a developer creates a Lightning component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
- Amount, Probability, Stage, or Close Date
How should the developer access the data the must be displayed?
Create a custom date field on Opportunity for each field to track the previous date and execute a SOQL query for date field.
Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object.
Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component.
Subscribe to the Opportunity Change Data Capture event in the Lightning component
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade