[Apr 24, 2024] Free Salesforce Developers PDII Official Cert Guide PDF Download [Q55-Q74]

Share

[Apr 24, 2024] Free Salesforce Developers PDII Official Cert Guide PDF Download

Salesforce PDII Official Cert Guide PDF


To earn the PDII certification, candidates must have a solid understanding of the Salesforce platform and be able to develop custom solutions that meet the business requirements of their organization. Salesforce Certified Platform Developer II (PDII) certification exam consists of multiple-choice questions and performance-based scenarios that test the candidate's ability to design, develop, and implement solutions on the Salesforce platform. PDII exam is designed to assess the candidate's ability to apply their knowledge of Apex and Visualforce to real-world scenarios. The PDII certification is a valuable asset for developers who want to showcase their skills and knowledge to potential employers and advance their careers in the Salesforce ecosystem.

 

NEW QUESTION # 55
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?

  • A. Change the default for showContacrlnfo to "false".
  • B. Move the contents of <c: concacclnfo into the component.
  • C. Change the type of contactlnfo to "Map".
  • D. Add a change event handler for showContactinfo

Answer: A


NEW QUESTION # 56
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.
Which Apex code feature is required to facilitate this solution'

  • A. Dynamic SOQL
  • B. Dynamic variable binding
  • C. Report API
  • D. Streaming API

Answer: A


NEW QUESTION # 57
Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce.
The flow of data is as follows:
* The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds.
* If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds.
* If a match is not found, the integration will create a Lead and a Task for that newly created Lead.
What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?

  • A. Use the REST API as well as the SOAP API to effectively double the API calls allowed in a 24-hour period.
  • B. Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.
  • C. Write a custom Apex web service that, given an email address, does all of the logic the integration code was doing.
  • D. Create an Inbound Message that, using Flow, can do all of the logic the integration code was doing.

Answer: B


NEW QUESTION # 58
Universal Containers uses Salesforce to track orders in an order__c object.
The order = object has private organization-wide defaults. The order = object has a custom field, Quality_Controller_c, that is a Lookup to User and is used to indicate that the specified User is performing quality control on the order_ co.
What should be used to automatically give read only access to the User set in the Quality_Controller field?

  • A. Apex managed sharing
  • B. User managed sharing
  • C. Criteria-based sharing
  • D. Record ownership

Answer: A

Explanation:
Apex managed sharing provides a programmatic way to share records when the organization-wide default for an object is Private. The Quality_Controller__c field can be used within a trigger or class to share records with the specified user using Apex managed sharing.References: Apex Developer Guide - Sharing a Record Using Apex


NEW QUESTION # 59
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

  • A. Use SOSL instead of SOQL queries to perform text-based searches.
  • B. Ensure the user-provided input is not null before executing the SOQL query.
  • C. Implement the with sharing keyword on the Apex class.
  • D. Implement a LIMIT clause within the SOQL query to restrict the result set.

Answer: A,D


NEW QUESTION # 60
A developer is writing code that requires making callouts to an external web service.
Which scenario necessitates that the callout be made in an @future method?

  • A. The callouts will be made in an Apex Trigger.
  • B. Over 10 callouts will be made in a single transaction.
  • C. The callouts will be made in an Apex Test class.
  • D. The callout could take longer than 60 seconds to complete.

Answer: A


NEW QUESTION # 61
A developer is asked to find a way to store sacret data with an ability to specify which profiles and users can access which secrets.
What should be used to store this data?

  • A. Custom settings
  • B. system.Cookie class
  • C. Static resources
  • D. Custom metadata

Answer: A


NEW QUESTION # 62
Which interface needs to be implemented by an Aura component so that it may be displayed in modal dialog by clicking a button on a Lightning record page?

  • A. farce:lightningEditRAation
  • B. force:lightningQuickhction
  • C. lightning:editiction
  • D. lightning:quickAction

Answer: B


NEW QUESTION # 63
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

  • A. Ensure real-time order data is in Salesforce using the Streaming API.
  • B. Have the ERP system push the data into Salesforce using the SOAP API.
  • C. Write a cron job In Salesforce to poll the ERP system for order updates.
  • D. Use Salesforce Connect to view real-time Order data in the ERP system.

Answer: B,D


NEW QUESTION # 64
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?

  • A. Use the transient keyword in the Apex code when querying the Account records.
  • B. Upload a third-party data table library as a static resource.
  • C. Use JavaScript remoting to query the accounts.
  • D. Use the standard Account List controller and implement pagination.

Answer: D

Explanation:
Implementing pagination using the standard Account List controller in Visualforce is a proven method to improve performance when displaying large sets of data. Pagination allows only a subset of records to be fetched and displayed at a time, thereby reducing the load time of the page.References: Visualforce Developer Guide - Implementing Pagination


NEW QUESTION # 65
Refer to the markup below:
A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The developer receives complaints that the component performs slowly.
What can the developer do to improve the performance?

  • A.
  • B.
  • C.
  • D.

Answer: D


NEW QUESTION # 66
External Id fields

  • A. Configure a custom field as external ID.
  • B. Configure a custom field as unique.
  • C. Configure a custom field as indexed.
  • D. Configure a custom field as Salesforce ID.

Answer: A,B


NEW QUESTION # 67
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

  • A. Process Builder
  • B. 2 Apex method that returns a Continuation object
  • C. Lightning web component
  • D. Screen Flow

Answer: B,C

Explanation:
To implement the business requirements, the developer should use a Lightning web component and an Apex method that returns a Continuation object. A Lightning web component is a custom HTML element that can be used to create user interfaces for Salesforce apps. A Lightning web component can collect key inputs from the end user using various input components, such as lightning-input, lightning-combobox, or lightning-radio-group. A Lightning web component can also invoke an Apex method using the @wire decorator or the imperative Apex syntax. A Continuation object is a special Apex object that allows the developer to make a long-running request to an external web service and receive the response asynchronously. A Continuation object can specify the callback method, the timeout, and the request parameters for the callout. A Continuation object can also return a unique ID that can be used to reference the callout in the Lightning web component. To use a Continuation object, the developer should create and return a Continuation object in the Apex method that makes the callout, and annotate the method with @AuraEnabled(cacheable=true). The developer should also create and annotate another Apex method that acts as the callback method, and handles the response from the external web service. The developer should then invoke the Apex method that returns the Continuation object from the Lightning web component, and use the Continuation ID to track the status of the callout. The developer should also handle the callback event from the Apex method that acts as the callback method, and display the response data in the Lightning web component. Using a Screen Flow would not be effective, as a Screen Flow is a declarative tool that allows the developer to create guided, interactive processes for users, but it does not support making callouts to external web services. Using Process Builder would not be effective, as Process Builder is a declarative tool that allows the developer to automate business processes based on criteria and actions, but it does not support making callouts to external web services. Reference: [Lightning Web Components Basics], [Continuation Class]


NEW QUESTION # 68
Exhibit.

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information... about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?
Choose 3 answers

  • A. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
  • B. Implement the without sharing keyword in the class declaration.
  • C. Implement the with sharing keyword in the class declaration.
  • D. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
  • E. Annotate the Apex method with gAuraEnabled-

Answer: A,C,D


NEW QUESTION # 69
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 two.)

  • A. Have the ERP system push the data into Salesforce using the SOAP API
  • B. Use Salesforce Connect to view real-time Order data in the ERP system
  • C. Write a cron job in Salesforce to poll the ERP system for order updates
  • D. Ensure real-time order data is in Salesforce using the Streaming API

Answer: A,B


NEW QUESTION # 70
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 certain conditions are met.
What is the optimal way to accomplish this?

  • A. Use an Email Alert with Flow Builder.
  • B. Use SingleEmailMessage() with an Apex trigger.
  • C. Use a Workflow Email Alert.
  • D. Use MassEmailMEssage () With an Apex trigger.

Answer: A

Explanation:
Using an Email Alert with Flow Builder allows for scalable solutions that can handle large volumes of emails, and it offloads the processing from Apex to Salesforce's declarative automation tools. This approach is also bulk-safe, as it does not rely on Apex code that could hit governor limits.References: Flow Builder - Email Alerts


NEW QUESTION # 71
Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch gob runs.
What is the appropriate publish/subscribe logic to meet this requirement?

  • A. Have the external system subscribe to a standard Platform Event that gets fired.
  • B. Have the external system subscribe to a custom Platform Event that gets fired with addError().
  • C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish()
  • D. Have the external system subscribe to a standard Platform Event that gets fired with EventBus.publish().

Answer: C

Explanation:
According to 1, you can use Apex to publish event messages from a Salesforce app by calling the EventBus.publish method. For example, if you defined a custom platform event called Low Ink, reference this event type as Low_Ink__e. Next, create instances of this event, and then pass them to the Apex method.
According to 2 and 3, you can write an after insert Apex trigger on the event object to subscribe to incoming events. Triggers provide an autosubscription mechanism in Apex. Unlike triggers on standard or custom objects, triggers on platform events don't execute in the same Apex transaction as the one that published the event. The trigger runs asynchronously in its own process.
Therefore, using a custom Platform Event and EventBus.publish method seems to be the appropriate publish/subscribe logic to meet the requirement.


NEW QUESTION # 72
How can Apex be used with Visual Workflow?

  • A. To control access to a Flow
  • B. To set the version of a Flow being run.
  • C. To add custom styling to a Flow.
  • D. To start a Flow automatically.

Answer: D


NEW QUESTION # 73
The Metadata API___________.

  • A. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
  • B. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
  • C. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
  • D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment

Answer: D


NEW QUESTION # 74
......


To be eligible for the PDII exam, candidates must first pass the Salesforce Certified Platform Developer I exam. This ensures that candidates have a solid foundation in Salesforce development and are ready to tackle more advanced topics. The PDII exam is a challenging and comprehensive test that requires a deep understanding of the Salesforce platform and the ability to apply that knowledge to real-world scenarios.


Earning the PDII certification is a significant achievement for Salesforce developers, as it demonstrates your expertise in developing custom applications on one of the most popular CRM platforms in the world. PDII-certified developers are in high demand and can command higher salaries and better job opportunities. Additionally, the PDII certification is a prerequisite for other advanced certifications, such as Salesforce Certified Technical Architect (CTA).

 

Free PDII Exam Dumps to Improve Exam Score: https://freetorrent.itpass4sure.com/PDII-practice-exam.html