
Salesforce Platform Developer II
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Easy
Von Vibar
Used 14+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
