Official Bank 0/167

Salesforce Certified Platform Developer II (PDII) Exam (PDII) - SalesForce Actual Exam Questions

Last updated on May 01, 2026

97% Exam Compliance
167 Total Questions
1
Question

An Aura component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets. How should a developer change the component to be responsive for mobile and tablet devices?

Question image
Select 2
Options
A Question image
B

Option A

Question image
C Question image
D

Option B

Question image
E Question image
F

Option C

Question image
G Question image
H

Option D

Question image
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

What is the best practice to initialize a Vizualforce page in a test class?

Options
A

Use Test. setCurrentPage (Page. MyTeatPage);

B

Use Test. currantPage .getParamatars put (MyTaestPaga) ;

C

Use controller. currentPage. setPage (MyTastfage) ;

D

Use Test. setCurrentPage MyTestPags;

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity’s stage is changed, a workflow rule is fired to increase the value of a field by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5. A user changes the stage of an Opportunity and manually sets the count field to 4. The count field updates to 5, but the child record is not created. What is the reason this is happening?

Options
A

Trigger.old does not contain the updated value of the count field.

B

After triggers fire before workflow rules.

C

Trigger.new does not change after a field update.

D

After triggers are not fired after field updates.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature can be used to ensure that the variables are testable in both Production and all Sandboxes?

Options
A

Custom setting

B

Custom object

C

Custom variable

D

Custom metadata

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

A Lightning web component exists in the system and displays information about the record in context as a medal. Salesforce administrators need to use this component within the Lightning App Builder, Which two settings should the developer configure within the xml resource file? Choose 2 answers

Select 2
Options
A

Specify the target to be lightning_RecordPage

B

Set the IsExposed=d attribute to true.

C

Specify the target to be lightning_AppPage

D

Set the IsVisible attribute to true

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.