PDII Exam Questions - Online Test


PDII Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

certleader.com

Verified of PDII exam answers materials and exam answers for Salesforce certification for candidates, Real Success Guaranteed with Updated PDII pdf dumps vce Materials. 100% PASS Salesforce Certified Platform Developer II (PDII) exam Today!

Online PDII free questions and answers of New Version:

NEW QUESTION 1
A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.How can the developer meet these requirements? Choose 2 answers.

  • A. Use a StandardSetController.
  • B. Use CURSOR 50 in SOQL queries.
  • C. Use OFFSET in SOQL queries.
  • D. Use LIMIT 50 in SOQL queries.

Answer: CD

NEW QUESTION 2
A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication. What code should the developer use to authenticate?

  • A. Htt
  • B. setHeader ( 'Authorization' , 'Basic QthZGprjpchVuIHNchFtZQ==');
  • C. Stub . inputhth-Ieader3_x.put ('Authorization' , 'Basic QthZGprjpchVuIHIQchE‘tZQ:'
  • D. Htt
  • E. setAuthentication( 'Basic QthZGprjpchVuIHNchFtZQ:'
  • F. Stub.authentication.put ( 'Authorization' , 'Basic QthZGprjpchVuIHNchFtZQ=='

Answer: B

NEW QUESTION 3
A developer is writing unit tests for the following method: public static Boolean isFreezing(String celsiusTemp) { if(String.isNotBlank(celsiusTemp) && celsiusTemp.isNumeric()) return Decimal.valueof(celsiusTemp) <= 0;
return null; } Which assertion would be used in a negative test case?

  • A. System.assertEquals(true, isFreezing(null));
  • B. Syste
  • C. assertEquals (true, isFreezing( ' 0’);
  • D. System.assertEquals(null, isFreezing('asdf'));
  • E. System.assertEquals(true, isFreezing('lOO'));

Answer: C

NEW QUESTION 4
What is the <apex:actionSupport> tag used for in Visualforce pages?

  • A. To provide help and support content for buttons and links.
  • B. To trigger a second action when a button or link is clicked.
  • C. To trigger controller actions in response to DOM element events.
  • D. To create a Javascript function that can trigger a controller action

Answer: C

NEW QUESTION 5
How many Territories can an instance of salesforce have?

  • A. 100
  • B. 200
  • C. 400
  • D. 500
  • E. 1000

Answer: D

NEW QUESTION 6
What is a potential design issue with the following code? trigger accountTrigger on Account (before update) { Boolean processOpportunity = false; List<opportunity> opptysClosedLost = new List<opportunity>(); List<opportunity> lstAllOpp = [select StageName from Opportunity where accountId IN
:Trigger.newMap.keySet()]; if(!lstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity) { for(opportunity o : lstAllOpp) { if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; } } if(!opptysClosedLost.isEmpty() delete opptysClosedLost;

  • A. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity.
  • B. The code Will result in a System.LimitException : Too many script statements error.
  • C. The code will result in a System.DmlException:Entity_is_Deleted error.
  • D. The code will result in a System.LimitException: Apex CPU time limit exceeded error.

Answer: D

NEW QUESTION 7
Which of the following variables are not transmitted in the view state? Choose two answers

  • A. Private
  • B. Transient
  • C. Public
  • D. Static

Answer: BD

NEW QUESTION 8
What is the transaction limit on the max Salesforce CPU time?

  • A. 100 seconds
  • B. 60 seconds
  • C. 100 seconds (synchronous); 200 seconds (async)
  • D. 10 seconds (synchronous); 60 seconds (async)
  • E. There is no limit

Answer: D

NEW QUESTION 9
Which statement is true about scheduled Apex? Choose 3 answers

  • A. The schedule of an Active scheduled Apex class cannot be updated through the Salesforce User Interface.
  • B. Scheduled Apex is executed only when system resources are available.
  • C. Scheduled Apex only supports asynchronous callouts through the use of @future methods and Apex Batches.
  • D. Scheduled Apex classes can only be defined by extending the Schedule base class.
  • E. There is no limit on Scheduled Apex jobs because they are executed asynchronously

Answer: ABC

NEW QUESTION 10
What is the transaction limit on the number of @future invocations?

  • A. 100
  • B. 150
  • C. 50
  • D. 200
  • E. There is no limit

Answer: C

NEW QUESTION 11
What is the recommended approach to create test data when testing Apex that involves Pricebooks, PricebookEntries, and Products?

  • A. Insert a new standard Pricebook record within your Test Method so that it can be used with other test records.
  • B. Use the Test.getStandardPricebookId() method to get theId of the standard Pricebook so that it can be used with other test records.
  • C. Use the isTest (SeeAllData=true) annotation on Test Methods that require access to the standard Pricebook.
  • D. Use the isTest (SeeAllData=true) annotation on the entire Test Class to allow your Test Methods access to the standard Pricebook.

Answer: B

NEW QUESTION 12
If the "PageReference.setRedirect" Apex function is set to False, what type of request is made?

  • A. Get request
  • B. Postback request
  • C. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

Answer: C

NEW QUESTION 13
A developer would like to use jQuery in a Visualforce page. Which markup can be used to load the library on the page?

  • A. < apex:include value="{ !$Resource.jQuery}"
  • B. < apex:includeScript value="{ !$Resource.jQuery}
  • C. < apex: script value="{ l$Resource.jQuery}
  • D. < apex:includeJS value="{ !$Resource.jQuery}

Answer: B

NEW QUESTION 14
What type of request and payload format can be received by a static method in a global Apex class that uses the webService keyword?

  • A. REST/JSON
  • B. SOAP/XML and SOAP/JSON
  • C. SOAP/XML and REST/JSON
  • D. SOAP/XML

Answer: D

NEW QUESTION 15
A developer must create a way for external partners to submit millions of leads into Salesforce per day. How should the developer meet this requirement?

  • A. Create a web service on Heroku that uses Heroku Connect.
  • B. Publicly expose a Visualforce page via Force.com Sites.
  • C. Publicly expose an Apex Web Service via Force.com Sites.
  • D. Host a Web-to-Lead form on the company website.

Answer: C

NEW QUESTION 16
What is a limitation of a "getxxx" method (for example, getName) in a custom Visualforce controller?

  • A. The method cannot return SObjects.
  • B. The method cannot use DML operations.
  • C. The method cannot return Apex classes.
  • D. The method cannot use SOSL queries.

Answer: B

NEW QUESTION 17
What is a benefit of using list custom settings?

  • A. Ability to include more field type options than custom objects.
  • B. Ability to control sharing and visibility of custom setting data.
  • C. Ability to provide more efficient access than custom objects.
  • D. Ability to delegate administrator rights to standard users.

Answer: C

NEW QUESTION 18
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. Surround the data insertion with Test.startTest(), Test.stopTest().
  • C. Implement the WebServiceMock interface.
  • D. Update code to call Test.setMock().
  • E. Implement the HttpCalloutMock interface.

Answer: CD

NEW QUESTION 19
What is the transaction limit for the number of records for SOSL?

  • A. 20
  • B. 2,000
  • C. 100 (synchronous), 200 (async)
  • D. 200 (synchronous), 100 (async)
  • E. There is no limit

Answer: B

NEW QUESTION 20
Which is a valid Apex REST Annotation? Choose 2 answers

  • A. @HttpPatch
  • B. @HttpDelete
  • C. @HttpUpsert
  • D. @HttpAction

Answer: AB

NEW QUESTION 21
......

100% Valid and Newest Version PDII Questions & Answers shared by Surepassexam, Get Full Dumps HERE: https://www.surepassexam.com/PDII-exam-dumps.html (New 317 Q&As)