Free Certified Platform Developer II Exam Braindumps (page: 51)

Page 51 of 90

After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? (Choose two.)

  1. Internal Apps can use Outbound Messages
  2. External Apps can use the standard Streaming API
  3. Internal Apps can use Process Builder
  4. External Apps require a custom Apex web service

Answer(s): C,D



A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a “Maximum view state size limit” error message under certain conditions.

According to Visualforce best practice, which three actions should the developer take to reduce the view state? (Choose three.)

  1. Use the transient keyword in the Apex controller for variables that do not maintain state
  2. Use the final keyword in the controller for variables that will not change
  3. Use the private keyword in the controller for variables
  4. Refine any SOQL queries to return only data relevant to the page
  5. Use filters and pagination to reduce the amount of data

Answer(s): A,D,E



Which statement is considered a best practice for writing bulk safe Apex Triggers?

  1. Add records to collections and perform DML operations against these collections
  2. Instead of DML statements, use the Database methods with allOrNone set to False
  3. Add LIMIT 50000 to every SOQL statement
  4. Perform all DML operations from within a Future Method

Answer(s): A





Consider the code above.
When a user clicks on the Link of a Contact’s name, what happens?

  1. Nothing happens; the commandLink is missing an action attribute
  2. The current page refreshes, showing the Contact’s details
  3. The outputPanel refreshes, showing the Contact’s details
  4. A new page opens, showing the Contact’s details

Answer(s): C



Page 51 of 90



Post your Comments and Discuss Salesforce Certified Platform Developer II exam with other Community members:

Jenil Gandhi commented on November 14, 2024
Hi everyone could sone share the certification voucher for PD2.
INDIA
upvote

Aniq commented on December 02, 2023
Hi every one Could some share the certification voucher for PD2
Anonymous
upvote

Rasheed commented on June 07, 2023
Worth the price. I got 50% off when I selected 2 exams.
PAKISTAN
upvote

Lisha commented on September 21, 2022
Thank you!
Anonymous
upvote