Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
57 views
Dumm
Uploaded by
David rodrig
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dumm For Later
Download
Save
Save dumm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
57 views
Dumm
Uploaded by
David rodrig
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save dumm For Later
Carousel Previous
Carousel Next
Save
Save dumm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 7
Search
Fullscreen
Exam : PDI Title : Salesforce Certified Platform Developer II https://www.passcert.com/PDII.htmlDownload the most updated PDI Gentncalion dumps for your best preparation, 1.A developer used custom settings to store some configuration data that changes occasionally. However, tests are now falling in some of the sandboxes that were recently refreshed. ‘What should be done to eliminate this issue going forward? ‘A. Set the setting type on the custom setting to List. B. Replace custom settings with custom metadata, C. Set the setting type on the custom setting to Hierarchy. D. Replace custom settings with static resources. Answer 2.Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are stil in the Recycle Bin, Note that there are two fields that are marked as External Id on the Account. These fields are ‘Customer_Number_cand ERP_Key_c. Which two queries are optimized for large data volumes? Choose 2 answers ‘A. SELECT Id FROM Account WHERE Id IN : alistVariable B. SELECT Id FROM Account WHERE Name != "AND IsDeleted. C. SELECT Id FROM Account WHERE Name != NULL. D. SELECT Id FROM Account WHERE Name != "AND Customer Number ¢ = "Value o false Answer: 3.A developer writes a lightning web component that displays a dropdown list of all custom objects in the ‘xg from which a user will select Apex method prepares and retums data to the component \What should the developer do to determine which objects to include in the response? ‘A. Check the isCustom () value on the sObject describe result B. Use the getCustomObject ( ) method from the Schema class. C. Import the list of all custom objects from @salesforce/schema. D. Check the getObjectType () value for Custom or ‘Standard’ on the sObject describe result Answer: 4,Get Cloudy Consulting (GCC) has a multitude of servers that host its customers’ websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a ‘Server Update platform event. ‘The developer is working on a Lightning web component to display the information. ‘What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event? ‘A. import { subscribe, unsubscribe, onError } from ‘lightning/MessageChannel B. import { subscribe, unsubscribe, onError } from lightninglempApr; CC. import { subscribe, unsubscribe, onEror } from ‘lightning/pubsub’ D. import { subscribe, unsubscribe, onError } from ‘ightning/ServerUpdate’ Answer 5.Which two best practices should the developer Implement to optimize this code? Choose 2 answers A. Use a collection for the DML statement. aTDownload the most updated PDI Gentncalion dumps for your best preparation, B. Query the Pricing_structure_c records outside of the loop. C. Change the trigger context to after update, after insert. D. Remove the DML statement. Answer: 8D 6.Globel with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter(} {) @RemoteAction global static Account getAccount (String ‘acecuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; }} Consider the Apex class above that defines a RemoteAction used on 1 Visualforce search page. Which code snippet will assert that the remote action returned the correct Account? ‘A. MyRemoter remote = new MyRemoter(); Account a = remote.getAccount ({TestAccount); ‘System_assertEquals, ‘TestAcccunt’, a Name -; B. Account a = MyRemoter.getAccount (‘TestAccount') ‘System assertEquals ‘TestAccount’, a. Name }: C, MyRemoter remote = new MyRemoter("TestAccount); Account a = remote.getAccount ();System.assertEquals(, "TestAccount’, e.Name ~ D. Account a = controller.getAccount("TestAccount’); ‘System.assertEquals(, “TestAccount’, a Name }: Answer 7.The Account object has a field, auais_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Ruditor_c, that is the assigned auditor. ‘When an Account is initially created, the user specifies the Audit_Code_c. Each User in the org has a Unique text field, Rudi. that is used to automatically assign the correct user to the Account's Auditor_ field, What should be changed to most optimize the code’s effidency? Choose 2 answers A. Build a Mep
> of audit code to accounts, B. Add an initial SOL query to get all distinct audit codes. C. Sulld eMepcid, List
of Account I¢ to aucit codes, a7Download the most updated PDI Gentncalion dumps for your best preparation, D. Add @ WHERE clause to the SOQL query to filter on audit codes. Answer: C,D 8.Consider the following cade snippet: ‘Adeveloper created the following test class to provide the proper code coverage for the snippet above However, when the test runs, no data is retumed and the assertion fails. Which edit should the developer make to ensure the test class runs successfully? A. Enclose the method call within Test. startTast () and Test , stop Test () B. Implement the seeAllData=true attribute in the @isTest annotation, . Implement the without sharing keyword in the searchfeature Apex class. D. Implement the setFixedSearchResults method in the test class. Answer: D 9.A company has a native iOS app for placing orders that needs to connect to Salesforce to retrieve ‘consolidated information from many different objects in a JSON format. Which is the optimal method to implement this in Salesforce? ‘A Apex SOAP Callout B. Apex REST Callout C. Apex SOAP Web Service D. Apex REST Web Service Answer: D 40.,A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert @ parent record and a child record. ‘A validation rule blocks child records from being created. The method uses a try/catch block to handle the DML exception. What should the developer do to ensure the parent always has a child record? ‘A. Use Database insert () and set the allorNone parameter to true. B. Use addError() on the parent record if an error occurs on the child record, ©. Set a database savepoint to rollback if there are errors. D. Delete the parent recordin the catch statement when an error occurs on the child record DML operation Answer: C 11,A developer created an Apex class that updates an Account based on input from a Lightning web ‘component that is used to register an Account. The update to the Account should only be made if it has not already been registered. ISELECT 16, I8_1 HERE Id = update account: a7Download the most updated PDI Gentncalion dumps for your best preparation, What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time? ‘A. Use CastiCase.update(account, false) B. Add a try/catch block around the update. CC. Use upsert instead of update. D. Use FOR UPDATE in a SOQL query. Answer 12.The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer. ‘The test method fails at the Line 20 because of too many SOQL queries What is the correct way to fix this? A. Add TesLstartTest() before and Test.stop Test) after both Line 7 of the code and Line 20 of the code. B. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced C. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code. D. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger. Answer 13.,A developer is asked to build a solution that will automatically send an email to the Customer when an. ‘Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fred. ‘What is the optimal way to accomplish this? a7Download the most updated PDI Gentncalion dumps for your best preparation, A. Use @ Workflow Email Alert. B. Usea MassEmailMessage() with an Apex Trigger. C. Use a SingleEmailMessage() with an Apex Trigger. D. Use an Email Alert with Process Builder. Answer 14.A comply his reference data stored m multiple custom metadata records that represent del auh information and delete behavior for certain geographic regions. ‘When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. Depending on company personnel resources, what are two ways to automate this? Choose 2 answers ‘A Apex mvocaWe method B. Remote action C, Flow Builder D. Apex trigger Answer: C,D 15.A developer has working business logic code, but sees the following error in the test class: You have uncommitted work pending. Please commit or rollback before calling out, Whats a possible solution? A. Rewrite the business logic and test classes with @TestVisible set on the callout. B. Set seeAllData to “true” at the top of the test class, since the code does not fail in practice. . Call support for help with the target endpoint, as itis likely an extemal code error. D. Use test.lsRunningTest() before making the callout to bypass it in test execution. Answei 16.A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencyisoCode Tex! field that contains the currency code they should use. Ha Catalog's CurrencylsoCode changes, all ofits Catalog Items’ CurrencylsoCodes should be changed as well ‘What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog's ‘CurrencylsoCode changes" A. Anafier insert trigger on Catalog that updates the Catalog Items if he Catalog’s CurrencylsoCode is different B. Anaffer insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencylsoCode is different C. A Database Schedulable and Database Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different D. ADatabase.Schedulable and Database Batchable class that queries the Catalog Item object and Updates the Catalog Items if the Catalog CurrencylsoCode is different Answer a7Download the most updated PDI Gentncalion dumps for your best preparation, 17-A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for ‘@ Custom Object called Survey Response _¢ do not belong to @ lst of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of maintenance by users. Note that the Survey_Response__¢ object is populated via @ custom visualforce page. What isthe optimal way to implement this? ‘A Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom Visuaiforce page controller B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact. . Implement the logic in @ helper class that is celled by an Apex trigger on Contact and fom the Custom Visualforce page controller. D. Implement the logic in a Validation Rule on the Contact and a validation Rule on the ‘Survey Response_c object. Answer: C 18.A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call soript Following best practices, what should a developer use to meet this requirement? A. Approvals B. Flow Builder C. Apex Trigger D. Process Builder Answer: 19.A developer is creating a page in App Builder that will be used in the Salesforce mobile app. Which two practices should the developer follow to ensure the page operates with optimal performance? Choose 2 answers ‘A. Limit five visible components on the page. B. Limit 25 fields on the record detail page. CC. Limit the number of Tabs and Accordion components. D. Analyze the page with Performance Analysis for App Builder. D Answer: 77
You might also like
App Builder Mock
PDF
0% (1)
App Builder Mock
13 pages
SU22 - PD1 - Set1
PDF
No ratings yet
SU22 - PD1 - Set1
66 pages
Salesforce CRT-450 v2023-10-06 q76
PDF
No ratings yet
Salesforce CRT-450 v2023-10-06 q76
24 pages
Salesforce PD1 Preparation
PDF
100% (1)
Salesforce PD1 Preparation
21 pages
PD 1
PDF
No ratings yet
PD 1
127 pages
PD1 Set1
PDF
100% (2)
PD1 Set1
15 pages
PD-1 Certification 144
PDF
No ratings yet
PD-1 Certification 144
8 pages
PDII Demo
PDF
No ratings yet
PDII Demo
10 pages
PDI Demo
PDF
No ratings yet
PDI Demo
6 pages
Platform Developer-2 SU18
PDF
No ratings yet
Platform Developer-2 SU18
42 pages
CRT 450 Demo
PDF
No ratings yet
CRT 450 Demo
8 pages
NO.1 A. B. C. D.: Answer
PDF
No ratings yet
NO.1 A. B. C. D.: Answer
7 pages
PD2
PDF
No ratings yet
PD2
62 pages
PDII
PDF
No ratings yet
PDII
4 pages
Salesforce Premium Certified-Platform-Developer-II by - VCEplus 100q-DEMO
PDF
No ratings yet
Salesforce Premium Certified-Platform-Developer-II by - VCEplus 100q-DEMO
50 pages
2
PDF
No ratings yet
2
16 pages
Salesforce Dumps pd1
PDF
No ratings yet
Salesforce Dumps pd1
83 pages
SFDC MCQ3 Ad
PDF
No ratings yet
SFDC MCQ3 Ad
198 pages
Set 5_83
PDF
No ratings yet
Set 5_83
36 pages
Salesforce Platform Developer I Dumps by Puckett 24 05 2024 12qa Vceexamstest
PDF
No ratings yet
Salesforce Platform Developer I Dumps by Puckett 24 05 2024 12qa Vceexamstest
16 pages
pd1 dumps2
PDF
No ratings yet
pd1 dumps2
18 pages
platform-developer-i_4
PDF
No ratings yet
platform-developer-i_4
11 pages
Set 4_ 86
PDF
No ratings yet
Set 4_ 86
40 pages
CRT-450-demo
PDF
No ratings yet
CRT-450-demo
7 pages
Salesforce PD-1 Questions Bank
PDF
No ratings yet
Salesforce PD-1 Questions Bank
41 pages
PD1 Set2
PDF
No ratings yet
PD1 Set2
9 pages
PDII Demo
PDF
No ratings yet
PDII Demo
9 pages
PD2 (4) Done
PDF
No ratings yet
PD2 (4) Done
39 pages
Platform Developer i 1
PDF
No ratings yet
Platform Developer i 1
13 pages
Dumpshq Salesforce Platform Developer I Exam Dumps by Trevino 05 09 2022 12qa
PDF
No ratings yet
Dumpshq Salesforce Platform Developer I Exam Dumps by Trevino 05 09 2022 12qa
13 pages
Salesforce Test-King CRT-450 v2018-12-02 by Tyler 31q
PDF
No ratings yet
Salesforce Test-King CRT-450 v2018-12-02 by Tyler 31q
15 pages
4
PDF
No ratings yet
4
15 pages
PD 1 - Spring - Questions
PDF
No ratings yet
PD 1 - Spring - Questions
101 pages
pd1
PDF
No ratings yet
pd1
29 pages
1
PDF
No ratings yet
1
15 pages
PD1 Set2 Su23
PDF
No ratings yet
PD1 Set2 Su23
30 pages
pd1 dumps
PDF
No ratings yet
pd1 dumps
21 pages
Important file 1-1
PDF
No ratings yet
Important file 1-1
44 pages
SET3
PDF
No ratings yet
SET3
62 pages
PD1 Set4 Su23
PDF
No ratings yet
PD1 Set4 Su23
21 pages
PD-1-v24.4.2_250_SP23-qj0cce
PDF
No ratings yet
PD-1-v24.4.2_250_SP23-qj0cce
140 pages
PD 1
PDF
No ratings yet
PD 1
2 pages
Summer PD-1 Final Set
PDF
No ratings yet
Summer PD-1 Final Set
47 pages
Set 7
PDF
No ratings yet
Set 7
36 pages
Screenshot 2022-05-12 at 11.50.27 AM
PDF
No ratings yet
Screenshot 2022-05-12 at 11.50.27 AM
28 pages
PD1 Original
PDF
No ratings yet
PD1 Original
41 pages
SET3
PDF
No ratings yet
SET3
62 pages
Salesforce Platform Developer I Dumps by Morin 24 05 2024 10qa Dumpssheet
PDF
No ratings yet
Salesforce Platform Developer I Dumps by Morin 24 05 2024 10qa Dumpssheet
12 pages
Salesforce PDI v2022-08-28 q103 PDF
PDF
No ratings yet
Salesforce PDI v2022-08-28 q103 PDF
31 pages
PD1 Set3
PDF
No ratings yet
PD1 Set3
76 pages
vcfddfdghbjnm
PDF
No ratings yet
vcfddfdghbjnm
24 pages
Salesforce Platform Developer 1
PDF
No ratings yet
Salesforce Platform Developer 1
15 pages
PD 1
PDF
No ratings yet
PD 1
8 pages
PD1 Dump 5
PDF
No ratings yet
PD1 Dump 5
10 pages
PD1 Set5 SU23
PDF
No ratings yet
PD1 Set5 SU23
26 pages
Dumps Personal
PDF
No ratings yet
Dumps Personal
13 pages
116
PDF
No ratings yet
116
20 pages
3
PDF
No ratings yet
3
15 pages
NA Program New
PDF
No ratings yet
NA Program New
8 pages
Project Setting MDT Import
PDF
No ratings yet
Project Setting MDT Import
6 pages
Master Thesis Report
PDF
No ratings yet
Master Thesis Report
80 pages
Apex Trigger Framework v2.1
PDF
No ratings yet
Apex Trigger Framework v2.1
21 pages
Chat 0111085246
PDF
No ratings yet
Chat 0111085246
3 pages
Salesforce Coding Best Practises v3.2
PDF
No ratings yet
Salesforce Coding Best Practises v3.2
44 pages
ADX201 Admin Essentials For New Admins in Lightning Exp ExerciseGuide
PDF
100% (1)
ADX201 Admin Essentials For New Admins in Lightning Exp ExerciseGuide
117 pages