Salesforce PDI Exam (page: 6)
Salesforce Certified Platform Developer I
Updated on: 28-Jul-2025

Viewing Page 6 of 77

A developer needs to create a Visualforce page that displays Case data. The page will be used by both support
reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

  1. Create one Visualforce Page for use by both profiles.
  2. Use a new Support Manager permission set.
  3. Create a separate Visualforce Page for each profile.
  4. Use a custom controller that has the with sharing keywords.

Answer(s): D



Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?

  1. Performance Tree tab under Stack Tree panel
  2. Execution Tree tab under Stack Tree panel
  3. Timeline tab under Execution Overview panel
  4. Save Order tab under Execution Overview panel

Answer(s): C



An org has a single account named `NoContacts' that has no related contacts. Given the query:
List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`NoContacts'];
What is the result of running this Apex?

  1. accounts[0].contacts is invalid Apex.
  2. accounts[0].contacts is an empty Apex.
  3. accounts[0].contacts is Null.
  4. A QueryException is thrown.

Answer(s): B



Which three options can be accomplished with formula fields? (Choose three.)

  1. Generate a link using the HYPERLINK function to a specific record.
  2. Display the previous value for a field using the PRIORVALUE function.
  3. Determine if a datetime field value has passed using the NOW function.
  4. Return and display a field value from another object using the VLOOKUP function.
  5. Determine which of three different images to display using the IF function.

Answer(s): A,C,E



A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;
Which two exceptions may occur when it executes? (Choose two.)

  1. CPU limit exception due to the complexity of the query.
  2. SOQL query row limit exception due to the number of contacts.
  3. SOQL query limit exception due to the number of contacts.
  4. SOQL query row limit exception due to the number of accounts.

Answer(s): C,D



Viewing Page 6 of 77



Share your comments for Salesforce PDI exam with other users:

TestPD1 8/10/2023 12:22:00 PM

question 18 : response isnt a ?
EUROPEAN UNION


TestPD1 8/10/2023 12:19:00 PM

question 17 : responses arent b and c ?
EUROPEAN UNION