[Feb-2022] Dumps Brief Outline Of The PDII Exam - Actual4dump [Q135-Q158]

Share

[Feb-2022] Dumps Brief Outline Of The PDII Exam - Actual4dump

PDII Training & Certification Get Latest Salesforce Developers


How to study the PDII Exam

There are two main types of resources for preparation of certification exams first there are the study guides and the books that are detailed and suitable for building knowledge from ground up then there are video tutorial and lectures that can somehow ease the pain of through study and are comparatively less boring for some candidates yet these demand time and concentration from the learner. Smart Candidates who want to build a solid foundation in all exam topics and related technologies usually combine video lectures with study guides to reap the benefits of both but there is one crucial preparation tool as often overlooked by most candidates the practice exams. Practice exams are built to make students comfortable with the real exam environment. Statistics have shown that most students fail not due to that preparation but due to exam anxiety the fear of the unknown. Actual4dump expert team recommends you to prepare some notes on these topics along with it don't forget to practice Salesforce PDII exam dumps which been written by our expert team, Both these will help you a lot to clear this exam with good marks.

 

NEW QUESTION 135
In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing?

  • A. You need to change record access to read/write for all users utilising a lightning component
  • B. Poor performance when using native sharing components
  • C. Every record created by sales users needs to be visible to their respective manager
  • D. Here is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
  • E. Team functionality is required on custom objects

Answer: B,D,E

 

NEW QUESTION 136
A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress," or Fulfilled and a lookup field, Contact_c, to Contact.
Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?

  • A. SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled')
  • B. SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled'
  • C. SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c
    = fulfilled')
  • D. SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled')

Answer: C

 

NEW QUESTION 137
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)

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

Answer: D

 

NEW QUESTION 138
Choose the correct definition for <apex:pageMessage>.

  • A. Standard Salesforce formatting, throws a specific message on a page
  • B. A single message, without formatting, that can be associated with a specific component on the page
  • C. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function
  • D. No formatting; displays all errors on a page

Answer: A

 

NEW QUESTION 139
Which two relationship queries use the proper syntax? (Choose two.)
SELECT Id, Name, Account__r.Name FROM Contact WHERE Account__r.Industry

  • A. SELECT Name, (SELECT LastName FROM Contacts) FROM Account
  • B. SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Media'
  • C. SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
  • D. 'Media'

Answer: A,B

 

NEW QUESTION 140
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

  • A. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.
  • B. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.
  • C. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.
  • D. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.

Answer: A,B

 

NEW QUESTION 141
A developer writes the following code:
public with sharing class OrderController() public PaqeReference sendOrder() Order_c order = new Order_c insert order; ExternalOrder externalOrder = new ExternalOrder(order); Http h = new Http(); HttpRequest req = new HttpRequest (); req.setEndpoint('https://www.example.org/v1/orders'); req.setMethod ('POST'); req.setBody(JSON.serialize(externalOrder)); HttpResponse res = h.send(req); order = (ExternalOrder)JSON.deserialize(res.getBody (),ExternalOrder.class); While testing the code, the developer receives the following error message:
System.CalloutException : You have uncommitted work pending
What should the developer do? (Choose two.)

  • A. Ensure all callouts are completed prior to executing DML statements
  • B. Use Database.insert (order, true) to immediately commit any database changes
  • C. Move the web service callout into an @future method
  • D. Use the asyncSend() method of the HTTP class to send the request in async context

Answer: A,C

 

NEW QUESTION 142
A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login() Call? (Choose two.)

  • A. Security Token
  • B. Organization Id
  • C. Username and Password
  • D. Session Id

Answer: B,C

 

NEW QUESTION 143
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger
. isBefore){ accountInstance Exec_Count_c += 1; } System. debug
(accountInstance.Exec_Count_c); } }

  • A. 1, 2, 3, 3
  • B. 2, 2, 3, 3
  • C. 1, 2, 3, 4
  • D. 2, 2, 4, 4

Answer: D

 

NEW QUESTION 144
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. Have the ERP system push the data into Salesforce using the SOAP API.
  • B. Ensure real-time order data is in Salesforce using the Streaming API.
  • C. Use Salesforce Connect to view real-time Order data in the ERP system.
  • D. Write a cron job In Salesforce to poll the ERP system for order updates.

Answer: B,C

 

NEW QUESTION 145
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.
What is the optimal way to implement these requirements?

  • A. Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
  • B. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
  • C. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
  • D. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.

Answer: B

Explanation:
Explanation/Reference:

 

NEW QUESTION 146
A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three actions to enable this functionality?

  • A. Surround the callout with Test.startTest(), Test.stopTest().
  • B. Implement the WebServiceMock interface.
  • C. Update code to call Test.setMock().
  • D. Implement the HttpCalloutMock interface.
  • E. Surround the data insertion with Test.startTest(), Test.stopTest().

Answer: B,C

 

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

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

Answer: C

 

NEW QUESTION 148
A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day.
How can this be achieved?

  • A. Schedule an future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them.
  • B. Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years.
  • C. Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects.
  • D. Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.

Answer: B

 

NEW QUESTION 149
Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers

  • A. A single visualforce Page leveraging Platform Events
  • B. Two Lightning Components leveraging Platform Events
  • C. Two Lightning Components leveraging Application Events
  • D. Two Visualforce Page Components leveraging Application Events

Answer: A,D

 

NEW QUESTION 150
messages are rendering on the page. Which component should be added to the Visualforce page to display the message?

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

Answer: D

 

NEW QUESTION 151
Choose the correct definition for <apex:pageMessages>

  • A. No formatting; displays all errors on a page B: Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" function
  • B. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the
    "ApexPages.addMessage" function
  • C. A single message, without formatting, that can be associated with a specific component on the page
  • D. Standard Salesforce formatting, throws a specific message on a page

Answer: B

 

NEW QUESTION 152
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer.
What modification is necessary on the Salesforce side? (Choose two.)

  • A. Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
  • B. Create an entry for the certificate in Certificate and Key Management
  • C. Update the code to use HttpRequest.setClientCertificateName()
  • D. Configure two-factor authentication with the provided certificate

Answer: B,C

 

NEW QUESTION 153
The Salesforce instance at Universal Containers currently integrates with a third-party company to validate mailing addresses via REST services. The third-party address verification system recently changed endpoint URLs for all their set vices from https://th-addreaa-service.3pc.com to https://plc1-mailsarvice.3pc.com.
Everything else remained the same. The developer updated code to reflect this endpoint change, but the mailing address validation service stopped working after the change.
What else should be done to complete this web service end point change?

  • A. Use a Custom Setting with the new endpoint Instead of hard coding the URL.
  • B. Create a new Remote Site for the new endpoint URL.
  • C. Add web service IP Addresses to Trusted IP Ranges m the Network Access security controls settings.
  • D. Test the callout property using HttpCalloutMock.

Answer: B

 

NEW QUESTION 154
A company requires that a child custom record is created when an Order record is inserted. The company's administrator must be able to make changes to the solution. What is the recommended solution for implementing this requirement?

  • A. Create an Apex Trigger to create the custom child record when the Order is inserted.
  • B. Create a Force.com Workflow Rule to create the custom child record when the Order is inserted.
  • C. Create a Visual Workflow that will create the custom child record when the Order is inserted.
  • D. Create a Lightning Process to create the custom child record when the Order is inserted.

Answer: D

 

NEW QUESTION 155
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 displ... data efficiently while preserving security?
Choose 3 answers

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

Answer: B,C,D

 

NEW QUESTION 156
Code must have X% overall code coverage.

  • A. X = 75
  • B. X = 50
  • C. X = 100
  • D. X = 65

Answer: A

Explanation:
All triggers must have at least 1% code coverage

 

NEW QUESTION 157
A developer needs to compile a list of 105 for all Accounts and Opportunities that have the word "Acme" in their name' and are created today. Which statement provides the developer with the 105?

  • A. SELECT Id, AccountId FROM Opportunity WHERE CreatedDate = TODAY AND ( Name LIKE
    '%Acme'a' Account.Name LIKE '%Acme%'
  • B. FIND "Acme" IN NAME FIELDS RETURNING Account (Id), Opportunity (Id) WHERE CreatedDate TODAY
  • C. FIND "Acme"IN NAME FIELDS RETURNING Account (Id WHERE CreatedDate = TODAY), Opportunity (Id WHERE CreatedDate = TODAY)
  • D. SELECT Id, ( SELECT Id FROM Opportunities WHERE CreatedDate = TODAY ) FROM Account WHERE " CreatedDate = TODAY AND Name LIKE '%Acme%'

Answer: C

 

NEW QUESTION 158
......


Who should take the PDII exam

Salesforce Certified Platform Developer II Exam certification is an internationally-recognized validation that identifies persons who earn it as possessing skilled as a Salesforce Certified Platform Developer II. If a candidate wants significant improvement in career growth needs enhanced knowledge, skills, and talents. The Salesforce PDII Exam provides proof of this advanced knowledge and skill. If a candidate has knowledge of associated technologies and skills that are required to pass the Salesforce PDII Exam then he should take this exam.

 

Certification Training for PDII Exam Dumps Test Engine: https://www.actual4dump.com/Salesforce/PDII-actualtests-dumps.html

Salesforce Developers PDII Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=1vSwEVsrmUjgeaF5L0TdL7oy1__5JBAQY