Exam Details

  • Exam Code
    :PDI
  • Exam Name
    :Salesforce Certification for Platform Developer I
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :719 Q&As
  • Last Updated
    :Apr 10, 2025

Salesforce Salesforce Certifications PDI Questions & Answers

  • Question 291:

    A developer wants to override a button using Visualforce on an object. What is the requirement?

    A. The controller or extension must have a PageReference method.

    B. The standardController attribute must be set to the object.

    C. The action attribute must be set to a controller method.

    D. The object record must be instantiated in a controller or extension.

  • Question 292:

    How should a developer avoid hitting the governor limits in test methods?

    A. Use @TestVisible on methods that create records.

    B. Use Test.loadData() to load data from a static resource.

    C. Use @IsTest (SeeAllData=true) to use existing data.

    D. Use Test.startTest() to reset governor limits.

  • Question 293:

    Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)

    A. Number maps to Decimal.

    B. Number maps to Integer.

    C. TextArea maps to List of type String.

    D. Date/Time maps to Dateline.

    E. Checkbox maps to Boolean.

  • Question 294:

    A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)

    A. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.

    B. Use mySObject.myObject.fields.getMap() to return a map of fields.

    C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.

    D. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.

  • Question 295:

    What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

    A. Account0.Phone=333-8781, Account1.Phone=333-8780

    B. Account0.Phone=888-1515, Account1.Phone=999-2525

    C. Account0.Phone=333-8780, Account1.Phone=333-8781

    D. Account0.Phone=888-1515, Account1.Phone=999-1515

  • Question 296:

    Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

    A. tag

    B. Inline CSS

    C. tag

    D. tag

    E. A static resource

  • Question 297:

    A developer executes the following query in Apex to retrieve a list of contacts for each account: List accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;

    Which two exceptions may occur when it executes? (Choose two.)

    A. CPU limit exception due to the complexity of the query.

    B. SOQL query row limit exception due to the number of contacts.

    C. SOQL query limit exception due to the number of contacts.

    D. SOQL query row limit exception due to the number of accounts.

  • Question 298:

    Which three tools can deploy metadata to production? (Choose three.)

    A. Change Set from Developer Org

    B. Force.com IDE

    C. Data Loader

    D. Change Set from Sandbox

    E. Metadata API

  • Question 299:

    Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

    A. Use collections to store all fields from a related object and not just minimally required fields.

    B. Use methods from the "Limits" class to monitor governor limits.

    C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.

    D. Use variables within Apex classes to store large amounts of data.

  • Question 300:

    Which set of roll-up types are available when creating a roll-up summary field?

    A. COUNT, SUM, MIN, MAX

    B. AVERAGE, SUM, MIN, MAX

    C. SUM, MIN, MAX

    D. AVRAGE, COUNT, SUM, MIN, MAX

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.