Education logo

Salesforce PDI Dumps "2"

Part '2' of Latest PDI dumps {Salesforce Developers}

By Randy AlanPublished 11 months ago 7 min read
1
{PDI DUMP'S}

Hello Salesforce Geeks,

  • If you don't visit the Part-1 of the PDI dumps, {No Worries}

👉👉Please do visit here ;- https://vocal.media/education/salesforce-pdi-exam-braindumps

62. Which tag should a developer include when styling from external CSS is required in a Visualforce page?

(a) Apex : includeStyle

(b) Apex : require

(c) Apex : includeScript

(d) Apex : stylesheet

Answer(s): D

63. Manage package can be created in which type of org?

(a) Partial copy sandbox

(b) Unlimited edition

(c) Developer Edition

(d) Developer sandbox

Answer(s): C

64. A developer needs to create a custom visualforce button for the opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apx:page> tag of the visualforce page to enable this functionality?

(a) Standardcontroller

(b) Extensions

(c) AcTion

(d) Readonly

(e) Renderas

Answer(s): A,B,C

65. How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?

(a) Reference the Set in the LIMIT clause of the query

(b) Pass the query results as an argument in a reference to the Set.containsAll() method.

(c) Pass the Set as an argument in a reference to the Database.query() method

(d) Reference the Set in the WHERE clause of the query

Answer(s): D

66. A platform developer needs to write an apex method that will only perform an action if a record is assigned to a specific record type. Which two options allow the developer to dynamically determine the ID of the required record type by its name? Choose 2 answers

(a) Use the getrecordtypeinfosbydevelopername() method in the describesobjectresult class

(b) Make an outbound web services call to the SOAP API

(c) Execute a SOQL query on the recordtype object

(d) Hardcore the ID as a constant in an apex class

Answer(s): A,C

67.To which primitive data type in Apex is a currency field atomically assigned?

(a) Integer

(b) Decimal

(c) Double

(d) Currency

Answer(s): B

68. Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?

(a) Data Import Wizard

(b) Salesforce-to-Salesforce

(c) Sandbox template

(d) Data Loader

Answer(s): A

69. Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex?

(a) For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ` has ' + cons.size() + `Contacts'; }

(b) For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts'); }

(c) For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts'); }

(d) For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts' }

Answer(s): A

70. How many levels of child records can be returned in a single SOQL query from one parent object?

(a) 1

(b) 3

(c) 5

(d) 7

Answer(s): A

71. What is a benefit of using a trigger framework?

(a) Simplifies addition of context-specific logic

(b) Increases trigger governor limits

(c) Allows functional code to be tested b

(d) Reduces trigger execution time

Answer(s): D

72. When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)

(a) Match an auto-generated Number field to a column in the imported file.

(b) Match an external Id Text field to a column in the imported file.

(c) Match the Name field to a column in the imported file.

(d) Match the Id field to a column in the imported file.

Answer(s): B,D

73. Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?

(a) IND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)

(b) SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'

(c) FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)

(d) SELECT Lead.id, Lead. Name, Account.id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'

Answer(s): A

74. A visualforce page uses the contact standard controller. How can a developer display the name from the parent account record on the page?

(a) Use SOQL syntax to find the related accounts name field

(b) Use the {!contact.account.name} merge field syntax

(c) Use an additional standard controller for accounts

(d) Use additional apex logic within the controller to query for the name field

Answer(s): B

75. Which two number expression evaluate correctly? Choose 2 answers

(a) Integer I = 3.14159;

(b) Decimal D = 3.14159;

(c) Long I = 3.14159;

(d) Double D =3.14159;

Answer(s): B,D

76. How can a developer get all of the available record types for the current user on the case object?

(a) Use SOQL to get all cases

(b) Use describesobjectresult of the case object

(c) Use case.getrecordtypes()

(d) Use describefieldresult of the case.recordtype field

Answer(s): D

77. What is the easiest way to verify a user before showing them sensitive content?

(a) Sending the user a SMS message with a passcode.

(b) Calling the generateVerificationUrl method in apex.

(c) Sending the user an Email message with a passcode.

(d) Calling the Session.forcedLoginUrl method in apex.

Answer(s): B

78. A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?

(a) @BeforeTest

(b) @isTest(SeeAllData=True)

(c) @TestSetup

(d) @PreTest

Answer(s): C

79. A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?

(a) In a Standard Extension.

(b) In a Standard Controller.

(c) In a Custom Controller.

(d) In a Controller Extension.

Answer(s): D

80. A company has a custom object named Region. Each account in salesforce can only be related to one region at a time, but this relationship is optional. Which type of relantionship should a developer use to relate an account to a region?

(a) Parent-child

(b) Master-detail

(c) Hierarchical

(d) Lookup

Answer(s): B

81. Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?

(a) Formula field

(b) Workflow rule

(c) Process Builder

(d) Scheduled Apex Class

Answer(s): A

82. Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers

(a) [find 'acme*' in any fields returning account,opportunity]

(b) [find 'acme*'returning account,opportunity]

(c) [find 'acme*'in all fields returning account,opportunity]

(d) [find 'acme*' in text fields returning account,opportunity]

Answer(s): C

83. A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?

(a) Public void doWork(Record theRecord)

(b) Public void doWork(sObject theRecord)

(c) Public void doWork(Account Contact)

(d) Public void doWork(Account || Contatc)

Answer(s): B

84. A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)

(a) ANT Migration Tool

(b) Workbench Metadata Retrieval

(c) Salesforce UI Apex Test Execution

(d) Developer Console

Answer(s): C,D

85. What is the result of the following code block ?

(a) Integer x = 1;Integer Y = 0;While(x < 10){Y++;}

(b) An error occurs

(c) Y = 9

(d) Y = 10

(e) X = 0

Answer(s): A

86. A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

(a) No changes are made to the data.

(b) Both the Apex Trigger and Workflow Rule are fired only once.

(c) The Workflow Rule is fired more than once.

(d) The Apex Trigger is fired more than once.

Answer(s): D

87. Which feature allows a developer to create test records for use in test classes?

(a) Static resources

(b) Documents

(c) Httpcalloutmocks

(d) Webservicetests

Answer(s): D

88. Which type of code represents the Model in the MVC architecture on the Force.com platform?

(a) A Controller Extension method that uses SOQL to query for a list of Account records

(b) Custom JavaScript that processes a list of Account records.

(c) A list of Account records returned from a Controller Extension method

(d) A Controller Extension method that saves a list of Account records

Answer(s): C

89. A developer needs to apply the look and feel of lightning experience to a number of applications built using a custom third-party javascript framework and rendered in visualforce pages which option achieves this?

(a) Set the attribute enablelightning to "true" in the definition

(b) Replace the third-party javascript library with native visualforce tags

(c) Configure the user interface options in the setup menu to enable legacy mode for visualforce

(d) Incorporate salesforce lightning design system css style sheets into the javascript applications

Answer(s): D

90.A sales manager wants to make sure that whenever an opportunity stage is changed to 'Closed Won', a new case will be of created for the support team to collect necessary information from the customer. How should a developer accomplish this?

(a) Create a Process Builder to create the new case.

(b) Set up a validation rule on the Opportunity Stage.

(c) Create a lookup field to the Case object on the opportunity object.

(d) Create a workflow rule to create the new case.

Answer(s): A

Thank You...!

"Please do Subscribe for more"

Please do visit for the part '1' of the dumps :-

https://vocal.media/education/salesforce-pdi-exam-braindumps

studentinterview
1

About the Creator

Randy Alan

Hello Everyone, here I talk about Education, Health and Love

Reader insights

Be the first to share your insights about this piece.

How does it work?

Add your insights

Comments (1)

Sign in to comment
  • Ja ens11 months ago

    Hi Randy , can you share the latest SP23 pd1 dumps in pdf format

Find us on social media

Miscellaneous links

  • Explore
  • Contact
  • Privacy Policy
  • Terms of Use
  • Support

© 2024 Creatd, Inc. All Rights Reserved.