Actualtests4sure PDII Exam Questions Real PDII Practice Dumps [Q183-Q202]

Share

Actualtests4sure PDII Exam Questions | Real PDII Practice Dumps

Verified PDII Exam Dumps Q&As - Provide PDII with Correct Answers


Salesforce Certified Platform Developer II (PDII) Exam

Salesforce Certified Platform Developer II (PDII) Exam is related to Salesforce Certified Platform Developer II Certification. This exam validates the Candidate knowledge and skills knowledge in advanced programmatic capabilities of the Lightning Platform and data modeling to develop complex business logic and interfaces. It also deals with the ability of Candidate to design, develop, test, and deploy programmatic solutions that are reusable, maintainable, and follow design patterns and object-oriented programming best practices.


Salesforce PDII Exam Syllabus Topics:

TopicDetails
Topic 1
  • Given a set of requirements, choose the appropriate integration technique
  • Given a scenario, formulate the deployment process, supporting tools, and mechanisms
Topic 2
  • Identify how an Apex method can be made available for use by Lightning Web Components
  • Determine if a declarative or custom-coded solution should be implemented
Topic 3
  • Describe the messaging techniques and best practices when displaying errors in user interfaces
  • Differentiate DML statements and types of database events
Topic 4
  • Identify inefficiencies and demonstrate the ability to resolve them
  • identify the considerations of interactions between multiple processes
Topic 5
  • Apply techniques and tools for testing Visualforce controllers and controller extensions
  • Outline the benefits of adopting a low-code approach in Salesforce
Topic 6
  • Identify the appropriate dynamic Apex feature to use in the solution
  • Given a scenario, propose and justify the optimal programmatic or declarative solution
Topic 7
  • Select scenarios where code reuse is applicable and how the reuse should be implemented
  • Describe the Apex features available for error handling and maintaining transactional integrity
Topic 8
  • Compare and contrast the usage of Visualforce and Apex controllers
  • Describe the use cases for and benefits of external IDs
Topic 9
  • Analyze a set of requirements and determine the benefits of using asynchronous or batch Apex coding
  • Demonstrate knowledge of the localization features and capabilities and how they affect coding
Topic 10
  • Demonstrate knowledge of the best practices for writing Apex triggers
  • Identify the keywords used in a SOQL query and explain where they're used in a query's structure


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 183
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 create a Javascript function that can trigger a controller action
  • D. To trigger controller actions in response to DOM element events.

Answer: D

 

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

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

Answer: B,D

 

NEW QUESTION 185
What is a valid request for the following REST method? (Choose two.)

  • A. string"
    il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false
  • B. @HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
    <request> <sl>my first string</sl> <11>123</il> <32>my second string</32>
  • C. <bl>false</bl> </request>
    sl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second
  • D. <b1>false</bl> </request>
    <request> <sl>"my first string"</sl> <il>123</il> <sZ>"my second string"</32>

Answer: A,D

 

NEW QUESTION 186
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?

  • A. Custom Controller
  • B. Standard Controller
  • C. Standard List/Set Controller
  • D. Controller Extensions

Answer: C

 

NEW QUESTION 187
The Bulk API__________.

  • A. 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
  • B. 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
  • C. 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
  • D. 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

Answer: A

 

NEW QUESTION 188
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?

  • A. Call the Apex class method from a testMethod instead of the testSetup method.
  • B. Verify the user has permissions passing a user into System.runAs().
  • C. Add @testVisible to the method in the class the developer is testing.
  • D. Use system.assert() in testSetup to verify the values are being returned.

Answer: B

 

NEW QUESTION 189
A developer needs to design a custom object that will be integrated into a back-end system.
What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? (Choose two.)

  • 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 190
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< sObject> result = Database.query('SELECT Id FROM Sales_Data_c LIMIT 50000');
  • B. List< List< sObject>> result= [FIND 'Le' IN ALL FIELDS RETURNING Sales_Data_c(Id)];
  • 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: B,C

 

NEW QUESTION 191
How should a developer verify that a specific Account record is being tested in a test class for a Visualforce controller?

  • A. Instantiate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordId().get() to set the Account ID.
  • B. Instantiate the page reference in the test class, insert the Account in the test class, then use seeAllData=true to view the Account
  • C. Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentPageReference().getParameters().put() to set the Account ID.
  • D. Insert the Account into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID

Answer: C

Explanation:
Explanation/Reference: https://salesforce.stackexchange.com/questions/48336/test-class-apex-page-parameters

 

NEW QUESTION 192
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?

  • A. Rewrite the business logic and test classes with @TestVisible set on the callout.
  • B. Set seeAIIData to "true" at the top of the test class, since the code does not fail in practice.
  • C. Call support for help with the target endpoint, as it is likely an external code error.
  • D. Use test.IsRunningTest() before making the callout to bypass it in test execution.

Answer: D

 

NEW QUESTION 193
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?

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

Answer: D

 

NEW QUESTION 194
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user.
How can this be accomplished? (Choose two.)

  • A. Use the ApexPages.addMessage() method to add the error message
  • B. Use the account.addError() method to add the error message
  • C. Use the (apex: information) tag to display the error message
  • D. Use the <apex:pageMessages> tag to display the error message

Answer: A,D

Explanation:
Explanation/Reference:

 

NEW QUESTION 195
Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

  • A. use the Database.Insert method with allOrNone set to False.
  • B. Disable validation rules on Contacts and set default values with a Trigger.
  • C. use the Database.Delete method if the Contact insertion fails.
  • D. use setSavePoint() and rollback() with a try/catch block.

Answer: D

 

NEW QUESTION 196
What is the transaction limit for the number of records for SOQL queries?

  • A. 5,000
  • B. There is no limit
  • C. 10,000
  • D. 20,000
  • E. 50,000

Answer: E

 

NEW QUESTION 197
The SOAP API_________.

  • A. 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
  • 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. Is used 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
  • 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: C

 

NEW QUESTION 198
A developer has created a Visualforce page for inputting data and needs to display errors at the field level.
What tag should the developer use?

  • A. < apex:messages>
  • B. < apex:pageMessages>
  • C. < apex:message>
  • D. < apex:pageMessage>

Answer: C

 

NEW QUESTION 199
How long is field history retained?

  • A. 6 months
  • B. 12 months
  • C. 18 months
  • D. 24 months
  • E. 36 months

Answer: C

 

NEW QUESTION 200
What can the Apex Continuation class be used for?

  • A. Progressing records to the next stage of an approval process in Apex.
  • B. Making asynchronous callouts to SOAP or REST Web Services from Visualforce.
  • C. Chaining multiple Queueable Apex jobs to be processed one after another.
  • D. Maintaining an Apex transaction across multiple DML statements.

Answer: B

 

NEW QUESTION 201
What is the most efficient way in Visualforce to show information based on data filters defined by an end-user for a large volume of data?

  • A. Use filter conditions in a SOQL query to limit data based on data filters.
  • B. Use an Apex controller to refine raw data based on data filters and store the result in a static variable.
  • C. Use an Apex controller to refine raw data based on data filters and store the result in a transient variable.
  • D. Use the rendered condition in Visualforce to limit data based on data filters.

Answer: A

 

NEW QUESTION 202
......

Get Top-Rated Salesforce PDII Exam Dumps Now: https://www.actualtests4sure.com/PDII-test-questions.html

Pass Your PDII Dumps Free Latest Salesforce Practice Tests: https://drive.google.com/open?id=1FiKqL_n8Golwcj-yvwYpVJHbonOT7AJe