Authentic Best resources for PDII Test Engine Practice Exam
[2022] PDII PDF Questions - Perfect Prospect To Go With ITPassLeader Practice Exam
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.
How to book the PDII Exam
These are following steps for registering the PDII Exam. Step 1: Visit to Webassessor Exam Registration Step 2: Signup/Login to Webassessor Step 3: Select the onsite proctored or online proctored delivery method of Certification Exam Step 4: Select Date, time and confirm with a payment method
For more information, please click here.
NEW QUESTION 18
What is the transaction limit on the number of "sendEmail" method calls?
- A. 0
- B. 1
- C. 2
- D. 3
- E. There is no limit
Answer: C
Explanation:
Explanation
Explanation/Reference:
The reserveEmailCapacity methods let you declare how many emails you want to send prior to actually sending, allowing you to handle limit errors prematurely
NEW QUESTION 19
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors.
Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
- A. Remove the Apex Class from the Integration User's Profile.
- B. Use the Database method with allOrNone set to False.
- C. Deactivate the Trigger before the Integration runs.
- D. Use a Try/Catch block after the insert statement.
Answer: B
NEW QUESTION 20
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex trigger to accomplish this?
- A. Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.
- B. Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
- C. Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.
- D. Use a List Custom Setting to disable the trigger for the user who loads the data.
Answer: C
NEW QUESTION 21
<lightning:layout multipleRows="true">
<lightning:layoutItem size="12">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12">{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
Refer to the component code above. The information displays as expected (in three rows) on a mobile device.
However, the information is not displaying as desired (in a single row) on a desktop or tablet.
Which option has the correct component changes to display correctly on desktops and tablets?
<lightning:layout multipleRows="true">
- A. <lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout> - B. <lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" largeDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true"> - C. <lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true"> - D. <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true">
Answer: A
NEW QUESTION 22
What is the transaction limit on the number of callouts?
- A. 0
- B. 1
- C. 2
- D. 3
- E. There is no limit
Answer: A
NEW QUESTION 23
Which is a valid Apex REST Annotation? (Choose two.)
- A. @HttpUpsert
- B. @HttpDelete
- C. @HttpAction
- D. @HttpPatch
Answer: B,D
NEW QUESTION 24
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?
- A. Will the screen be accessed via a mobile app?
- B. Will the screen make use of a JavaScript framework?
- C. Does the screen need to be accessible from the Lightning Experience UI?
- D. Does the screen need to be rendered as a PDF?
Answer: C
NEW QUESTION 25
What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?
- A. <apex:customMessage>
- B. <apex:pageMessage>
- C. <apex:error>
- D. <apex:message>
Answer: B
NEW QUESTION 26
During the order of execution of a Visualforce page GET request, what happens after this step: Evaluate constructors on controllers and extensions?
- A. Evaluate constructors and expressions on custom components.
- B. Create view state if < apex: form> exists.
- C. Send the HTML response to the browser.
- D. Evaluate expressions, action attributes, and method calls.
Answer: A
NEW QUESTION 27
The REST API...
- A. Is used to to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to 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, queryAll, 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 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: C
NEW QUESTION 28
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)
- A. Database.createTestRecords (10)
- B. myDataFactory.createTestRecords (10)
- C. List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
- D. List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
Answer: B,C
NEW QUESTION 29
A developer has written the following method: static void processList(List<sobject> input){ Which code block can be used to call the method?
- A. ProcessList (acc)
- B. ProcessList ( [FIND 'Acme" ' RETURNING Account] )
- C. ProcessList([SELECT Id, Name FROM sObject WHERE Type = 'Account'
- D. For Account acc : [SELECT Id, Name FROM Account]
Answer: C
NEW QUESTION 30
A developer is tasked by Universal Containers to build out a system to track the container repair process.
Containers should be tracked as they move through the repair process, starting when a customer reports an issue and ending when the container is returned to the customer.
Which solution meets these business requirements while following best practices?
- A. Build a customized Lightning Application using Application Events to ensure data integrity.
- B. Develop a new system with automated notification to move the containers through the repair process while notifying the customer that reported the issue.
- C. Involve a Salesforce administrator and build out a declarative solution that will be easy to maintain and likely cost less than customized development.
- D. Build a mobile application using Platform Events and RFID integration to ensure proper tracking of the containers and keep the customer informed.
Answer: B
NEW QUESTION 31
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 32
Which two relationship queries use the proper syntax? (Choose two.)
- A. SELECT Id, Name, Account__r.Name FROM Contact WHERE Account__r.Industry
- B. SELECT Name, (SELECT LastName FROM Contacts) FROM Account
- C. SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Media'
- D. 'Media'
SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
Answer: B,C
NEW QUESTION 33
A company has 20,000 rows in the Account object and 2 million rows in the Sales_Data_c object that is related to Account. All of the records in the Sales_Data_c object have a field that contains the string 'Le.' Which statement will throw a "Too many query rows" exception? Choose 2 answers
- A. List< List< sObject>> result= [FIND 'Le' IN ALL FIELDS RETURNING Sales_Data_c(Id)];
- B. List< sObject> result = Database.query('SELECT Id FROM Sales_Data_c LIMIT 50000');
- C. List< Account> result = [SELECT Id, (SELECT Id FROM Sales_Data_r) FROM Account]
- D. List< AggregateResult> result = [SELECT count(Id) total FROM Sales_Data_c];
Answer: A,C
NEW QUESTION 34
Which statement is true regarding both Flow and Lightning Process? (Choose two.)
- A. Can use Apex that implements the Process.Plugin interface
- B. Are able to be embedded directly into Visualforce pages
- C. Are both server-side considerations in the Order of Execution
- D. Can use Apex methods with the @lnvocableMethod annotation
Answer: A,D
NEW QUESTION 35
A company has a custom object Sales_Help_Request__c that has a Lookup relationship to Opportunity. The Sales_Help_Request__c has a number field, Number_of_Hours__c, that represents the amount of time spent on the Sales_Help_Request__c.
A developer is tasked with creating a field, Total_Hours__c, on Opportunity that should be the sum of all of the Number_of_Hours__c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?
- A. A trigger on Sales_Help_Request__c
- B. A roll-up summary field on the Opportunity object
- C. A trigger on the Opportunity object
- D. A workflow rule on the Sales_Help_Request__c object
Answer: C
NEW QUESTION 36
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.
The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?
- A. Change the CalloutUtil.makeRestCallout to an @future method
- B. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.
- C. Remove the Database.setSavepoint and Database.rollback.
- D. Move the CalloutUtil.makeRestCallout method call below the catch block.
Answer: A
NEW QUESTION 37
Within the System.Limit class, what would you call to get the total limit you can call in a single transaction?
- A. getLimit [typeOfLirr.it] -> (Ex. getLin~.it DY.LSt aterr.ents () )
- B. get[typeOfLimit] -> (Ex. getDMLStatements())
Answer: A
NEW QUESTION 38
What is a potential design issue with the following code?
- A. The code will result in a System.LimitException: Apex CPU time limit exceeded error
- B. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity
- C. The code will result in a System.DmException:Entity_is_Deleted error
- D. The code will result in a System.LimitException : Too many script statements error
Answer: A
NEW QUESTION 39
An Apex test method is testing a Visualforce page's controller, which queries for all Opportunities in Salesforce with StageName = 'Closed'. There are 10,000 existing records that match the criteria. What is the best practice for accessing data in the test method?
- A. Query existing data in the test method and use seeAllData=true.
- B. Create test data in the test method and use seeAllData=false.
- C. Use @testVisible on the relevant property of the controller
- D. Create test data in the test method and use seeAllData=true.
Answer: B
NEW QUESTION 40
.A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active,' and Accounts with the type set to 'Prospect' should have a status of 'Pending.' No other changes to data should be made. Which code block will accurately meet the business requirements?
A)
B)
C)
D)
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: D
NEW QUESTION 41
A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity's Probability is greater than 50%.
What is the optimal way to automate this?
- A. Build a Flow on Opportunity.
- B. Create a Workflow on Opportunity.
- C. Use an Apex Trigger on Opportunity.
- D. Build a Process on Opportunity.
Answer: C
Explanation:
Explanation/Reference:
NEW QUESTION 42
trigger AssignOwnerByRegion on Account ( before insert, before update )
{
List<Account> accountList = new List<Account>();
for( Account anAccount : trigger.new )
{
Region__c theRegion = [
SELECT Id, Name, Region_Manager__c
FROM Region__c
WHERE Name = :anAccount.Region_Name__c
];
anAccount.OwnerId = theRegion.Region_Manager__c;
accountList.add( anAccount );
}
update accountList;
}
Consider the above trigger intended to assign the Account to the manager of the Account's region.
Which two changes should a developer make in this trigger to adhere to best practices? (Choose two.)
- A. Use a Map accountMap instead of List accountList.
- B. Move the Region__c query to outside the loop.
- C. Use a Map to cache the results of the Region__c query by Id.
- D. Remove the last line updating accountList as it is not needed.
Answer: A,C
NEW QUESTION 43
......
For more info visit:
Salesforce Certified Platform Developer II (PDII) Exam Reference
Best updated resource for PDII Online Practice Exam: https://www.itpassleader.com/Salesforce/PDII-dumps-pass-exam.html
Realistic Practice PDII Salesforce Certified Platform Developer II (PDII) Exam Braindumps: https://drive.google.com/open?id=105sTyxZPJ3g_xelgbifRq9ikEOBlj8AX