
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
150 questions
AZ Trest I

Quiz
•
Professional Development
141 questions
Master revision - recovery management

Quiz
•
Professional Development
150 questions
¿Conoces tu comarca? v2

Quiz
•
Professional Development
140 questions
SIMULASI SOAL

Quiz
•
Professional Development
150 questions
3534 - Tín dụng doanh nghiệp P2

Quiz
•
Professional Development
142 questions
Education Application

Quiz
•
Professional Development
140 questions
CompTIA A+ 1001 Exam Prep

Quiz
•
Professional Development
144 questions
LINDEBURG ESAS Terms Compilation PART 1 TO 12

Quiz
•
Professional Development
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade