Updated PDII Salesforce Certified Platform Developer II Exam Questions (V16.02) – Best Dumps to Prepare Well

There are online resources available to help you prepare for the exam, and one of the best resources is DumpsBase. DumpsBase provides updated PDII dumps (V16.02) that can significantly benefit IT aspirants. By using DumpsBase’s updated Salesforce PDII exam questions, you can validate and expand your skills by practicing with real exam questions and answers. This will help you identify your strengths and weaknesses and focus your study efforts on the areas that need improvement. So, get registered for the updated PDII dumps and start your preparation today for complete and quick exam dumps preparation.

Read PDII Free Dumps for Checking the Updated Salesforce Certified Platform Developer II Exam Questions

1. A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler.

Which two changes should the developer make so the Apex method functions correctly? Choose 2 answers

2. A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library.

Which statement properly loads the static resource within the LWC?

3. Refer to the following code snippets:

MyOpportunities.js

OpportunityController.cIs

A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user

When the component Is rendered, the following message Is displayed: "Error retrieving data".

Which modification should be implemented to the Apex class to overcome the issue7

4. Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs.

What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

5. Refer to the test method below:

An external system with Account information and sets the Account's Integration-Updated___ c checkbox to True when it completes.

The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts."

What is the optimal way to fix this?

6. Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().

What is wrong?

7. A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time.

What is the optimal way to implement this?

8. Which use case can only be performed by using asynchronous Apex?

9. What should a developer use to query all Account fields for the Acme account in their sandbox?

10. Given the following information regarding Universal Containers (UC):

• UC represents their customers as Accounts in Salesforce

• All customer has a unique Customer-Number- c, that is unique across all of UC's systems.

• UC also has a custom Invoice_ c object, with a Lookup to Account, to represent invokes that are sent out from their external system

UC wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer pays their bills on time.

What is the optimal way to implement this?

A)

B)

C)

D)

11. A developer is writing a Jest for a Lightning web component that conditionally displays child components based on a user’s checkbox selections.

What should the developer do to property test that the correct components display and hide for each scenario?

12. When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales orders, phone cats, or Cases. The date range for recent interactions will be recent for every customer record type.

How can this be accomplished?

13. The Contact object in an org is configured with workflow rules that trigger field updates.

The fields are not updating, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem.

What should the developer specify in the debug log to see the values of the workflow rule conditions and debug the problem?

14. A developer wants to write a generic Apex method that will compare the Salesforce Name filed between any two object records, for example to compare the Name field of an Account and an Opportunity; or the name of an Account and a Contact.

How should the developer do this?

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.

What is a possible solution?

16. Universal Containers (UC) has custom Order and Order Line objects that represent orders placed by its customers.

A developer has a new requirement that UC's external enterprise resource planning (CRP) system placed by its customers. integrate with Salesforce to create orders for existing customers in Salesforce whenever an ERP system.

What should the developer use to create the orders in Salesforce?

17. As part of point-to-point integration, a developer must call an external web service which, due to high demand, takes a long time to provide a response. As part of the request, the developer must collect key inputs from the end user before making the callout.

Which two elements should the developer use to implement these business requirements? Choose 2 answers

18. Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answers

19. Refer to the code snippet below:

As part of an Integration development effort, a developer is tasked to create an Apex method mat solely relies on the use of foreign identifiers In order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of this field is Legacy_Id_c.

What Is the most efficient way to instantiate the parentAccount: variable on line 02 to ensure the newly created contact is properly related to the Account?

A)

B)

C)

D)

20. Assuming the CreateOneAccount class creates one account and implements the Queuetable interface, which syntax tests the Apex code?

A)

B)

C)

D)

21. A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours.

Which two steps should a developer take to accomplish this? Choose 2 answers

22. What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?

A)

B)

C)

D)

23. A developer 15 tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabs and interact with the Salesforce Console APIs.

What arm two approaches a developer can take to build the application and support the business requirements? Choose 2 answers

24. A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.

Which two lines must change in the above ode to make the Apex method able to be wired? Choose 2 answers

25. A developer wrote the following method to find all the test accounts in the org:

What should be used to fix this falling test?

26. Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox suddenly left the company. The users had fully tested all of the changes in the sandbox and signed off on them.

Unfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment.

What should the developer do to identify the configuration changes that need to be moved into production?

27. A developer creates a Lightning web component to allow a Contact to be quickly entered-However, error messages are not displayed.

Which component should the developer add to the form to display error messages?

28. A developer is asked to create a Lightning web component that will be invoked via button on a record page. The component must be displayed in a model dialog.

Which three steps should the developer take to achieve this? Choose 3 answers

29. There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.

What can a developer do to help alleviate such issues?

30. In a previous data audit, It was determined that close to 5 million Opportunity records are stored within the Salesforce environment. The organization-wide default for the object are set to Public Read-Only and most opportunities are related to an external case.

The method is called from a Lightning web component. Some end users do not provide a cased value and experience low performance while running the query.

Which two techniques should the developer implement to avoid low performance queries from executing? Choose 2 answers

31. Refer to the Lightning component below:

The Lightning Component allows users to click a button to save their changes and then redirects them to a different page. Currently when the user hits the Save button, the records are getting saved, but they are not redirected.

Which three techniques can a developer use to debug the JavaScript? Choose 3 answers

32. A developer is trying to access org data from within a test class.

Which sObject type requires the test class to have the (seeAllData=true) annotation?

33. A developer writes a lightning web component that displays a dropdown list of all custom objects in the org from which a user will select Apex method prepares and returns data to the component.

What should the developer do to determine which objects to include in the response?

34. How should a developer reference a third-party JavaScript library from a Lightning component?

35. Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity.

Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity’s stage is changed to Closed/Won, its commission should be calculated in real time.

What should a developer use so that different implementations of the commission calculation can be invoked on the stage change?

36. A developer creates an application event that has triggered an infinite loop.

What may have caused this problem?

37. A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.

What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously?

38. The Salesforce admin at cloud kicks created a custom object called Region_ c to store all postal zip codes in the United States and the Cloud Kicks sales region the Zip code belong to.

Object Name:

Fields:

Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code.

Which code segment is the most efficient way to fulfill this request?

A)

B)

C)

39. A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.

What should the developer use to store and package the custom configuration settings for the app?

40. Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.

What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers

41. Which two best practices should the developer Implement to optimize this code?

Choose 2 answers

42. 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?

43. A company has code to update a Request and Request Lines and make a callout to their external ERP system’s REST endpoint with the updated records.

What should be done to address the problem?

44. A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.

The test class is below:

What is causing the code coverage problem?

45. Which technique can run custom logic when a Lightning web component is loaded?

46. 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__c field.

What should be changed to most optimize the code’s effidency? Choose 2 answers

47. Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page.

What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

48. A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment.

A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error.

What should a developer do to fix the problem?

49. A developer created the code to perform an HTP GET request to an external system.

When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint

Which recommended approach should the developer implement to the callout exception?

50. As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles error* using toast messages. When the development is complete, all the components are added to the same Lightning page.

During acceptance testing, users complain about the long chain of toast messages that display when errors occur loading the component

Which two techniques should the developer Implement to improve the user experience? Choose 2 answers

51. As part of a new integration, a developer is asked to implement a new custom search functional that is capable of performing unrestricted Queries and can account for all values within a custom picklist field. Type_ c, on the Opportunity object. The search feature must also account for NULL values.

The organization-wide default for the Opportunity object is set to Public Read-Only, and a new custom index has been created for the type_ c, field. There are more than 5 million Opportunity records within the environment, and a considerable amount of the existing records have NULL values for the picklist.

Which technique should the developer implement to maximize performance when querying NULL values?

52. A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order's status and tracking number if it is already shipped.

Which two methods can make this ERP order data visible in Salesforce? Choose 2 answers

53. AWC wants the real-time inventory reduction for a product to be sent to many of its external systems, including some future systems the company is Currently planning.

What should a develops add to the code at the placeholder to meet these requirement!?

A)

B)

C)

D)

54. A developer created a Lightning web component that uses a lightning-record-edit-form t collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.

complain that they only see one error message at a time about their input when trying to save a Lead record.

What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously?

with minimal JavaScript intervention?

55. A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so.

Which two statements are true regarding these issues and resolution? Choose 2 answers

56. A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked.

What should the developer change to allow this?

57. A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list 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__c object is populated via a custom visualforce page.

What is the optimal way to implement this?

58. A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen.

Which functionality consideration impacts the final decision?

59. Global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a Visualforce search page.

Which code snippet will assert that the remote action returned the correct Account?

60. A business requires that every parent record must have a child record. A developer writes an Apex method with two DML statements to insert a 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?


 

 

Salesforce Data Cloud Consultant Exam Dumps - Real Dumps Questions with Correct Answers for Preparation
Using the Most Updated ARC-801 Dumps (V9.03) - Practice the Latest ARC-801 Questions and Answers to Achieve Success

Add a Comment

Your email address will not be published. Required fields are marked *