Best Preparations of PDII Exam 2021 Salesforce Developers Unlimited 325 Questions [Q124-Q148]

Share

Best Preparations of PDII Exam 2021 Salesforce Developers Unlimited 325 Questions

Focus on PDII All-in-One Exam Guide For Quick Preparation.


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
  • Identify the appropriate dynamic Apex feature to use in the solution
  • Given a scenario, propose and justify the optimal programmatic or declarative solution
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
  • 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
Topic 4
  • Compare and contrast the usage of Visualforce and Apex controllers
  • Describe the use cases for and benefits of external IDs
Topic 5
  • Apex code or trigger that is not performing as expected
  • Identify use cases for different types of custom metadata and custom settings
Topic 6
  • 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 7
  • Identify inefficiencies and demonstrate the ability to resolve them
  • identify the considerations of interactions between multiple processes
Topic 8
  • 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 9
  • Describe the messaging techniques and best practices when displaying errors in user interfaces
  • Differentiate DML statements and types of database events
Topic 10
  • Apply techniques and tools for testing Visualforce controllers and controller extensions
  • Outline the benefits of adopting a low-code approach in Salesforce
Topic 11
  • Given a set of requirements, choose the appropriate integration technique
  • Given a scenario, formulate the deployment process, supporting tools, and mechanisms
Topic 12
  • Describe the purpose and benefit of static resources in both Visualforce and Lightning Components
  • Iand justify where Apex managed sharing should be used

 

NEW QUESTION 124
<lightning: layout multipleRows="true"> <lightning: layoutItem size="12">{!v.account.Name} </flighting:
layoutitem> <lightning:layoutitem 3ize="12">{!v. account .AccountNumber} </lighting: layoutitem>
<lightning: layoutitem size="12">{!v.account. Industry} </lighting: 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?

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

Answer: C

 

NEW QUESTION 125
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. over 10 callouts will be made in a single transaction.Which one do you like?
  • B. The callouts will be made in an Apex Trigger.
  • C. The callouts will be made in an Apex Test class.
  • D. The callout could take longer than 60 seconds to complete.

Answer: B

 

NEW QUESTION 126
Choose the correct definition for <apex:message>

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

Answer: D

 

NEW QUESTION 127
A managed package uses a list of country ISO codes and country names as references data in many different places.. managed package Apex code.
What is the optimal way to store and retrieve the list?

  • A. Store the information in Custom Metadata and query it with SOQL.
  • B. Store the information in a list Custom Setting and access it with the getAll() method
  • C. Store the information in a List Custom Setting and query it with SOQL.
  • D. Store the information in Custom Metadata and access it with the getAll() method.

Answer: C

 

NEW QUESTION 128
A developer gets an error saying 'Maximum Trigger Depth Exceeded.' What is a possible reason to get this error message?

  • A. A Process Builder is running that sends mass emails.
  • B. Trigger is recursively invoked more than 16 times.
  • C. There are numerous DML operations in the trigger logic.
  • D. The SOQL governor limits are being hit.

Answer: B

 

NEW QUESTION 129
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 feature of Apex code is required to facilitate this solution?

  • A. SOSL queries
  • B. describeSObjects()
  • C. REST API
  • D. Dynamic Schema binding

Answer: B

 

NEW QUESTION 130
Which statement is true regarding both Flow and Lightning Process? (Choose two.)

  • A. Can use Apex that implements the Process.Plugin interface
  • B. Are both server-side considerations in the Order of Execution
  • C. Are able to be embedded directly into Visualforce pages
  • D. Can use Apex methods with the @lnvocableMethod annotation

Answer: A,D

 

NEW QUESTION 131
A developer writes the following code:

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 the asyncSend() method of the HTTP class to send the request in async context
  • C. Move the web service callout into an @future method
  • D. Use Database.insert (order, true) to immediately commit any database changes

Answer: A,C

 

NEW QUESTION 132
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses.
What is the recommended solution to meet this requirement?

  • A. Lightning Process Builder
  • B. Custom Lightning Application
  • C. Dynamic Record Choice
  • D. Visualforce and Apex

Answer: C

 

NEW QUESTION 133
A developer must perform a complex SOQL query that joins two objects in a Lightning component. how can the Lightning component execute the query?

  • A. Invoke an Apex dass with the method annotated as AiraEnabled to perform the query.
  • B. Create a Process Builder to execute the query and invoke from the Lightning component.
  • C. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.
  • D. Use the SaJesforce Streaming API to perform the SOQL query.

Answer: C

 

NEW QUESTION 134
Which annotation exposes an Apex class as a RESTful neb service?

  • A. @AuraEnaWed
  • B. @RemoteAction
  • C. @HttpInvocabte
  • D. @RestRtsoorct

Answer: D

 

NEW QUESTION 135
Consider the following code snippet:

A developer needs to built an interactive Aura component that responds to the user's input by hiding or showing sections according the user preferences.
What are two best practices the developer can implement to hide or show the powerVserView and s-rar.daraVserView inner components, based on the value of the attribute isPowexUser?
Choose 2 answers
A)

B)

C)

D)

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

Answer: D

 

NEW QUESTION 136
Which statement is true about using ConnectApi namespace (also called Chatter in Apex)? Choose 2 answers

  • A. Chatter in Apex methods do not run in system mode; they run in the context of the current user.
  • B. Chatter in Apex operations are synchronous, and they occur immediately.
  • C. Many test methods related to Chatter in Apex require the BIsTest (SeeAllData=true) annotation
  • D. Chatter in Apex methods honor the 'with sharing' and 'without sharing' keywords.

Answer: A,C

 

NEW QUESTION 137
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. use Try/Catch block after the insert statement.
  • B. Deactivate the Trigger before the Integration runs.
  • C. Remove the Apex Class from the Integration User's Profile.
  • D. Use the Database method with allOrNone set to False.

Answer: A

 

NEW QUESTION 138
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. Standard Controller
  • B. Standard List/Set Controller
  • C. Controller Extensions
  • D. Custom Controller

Answer: B

 

NEW QUESTION 139
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 CURSOR 50 in SOQL queries.
  • B. Use a StandardSetController.
  • C. Use OFFSET in SOQL queries.
  • D. Use LIMIT 50 in SOQL queries.

Answer: C,D

 

NEW QUESTION 140
A developer has a page with two extensions overriding the Standard controller for Case.

What will happen when a user clicks the command button?

  • A. Save from Case Standard Controller will be executed
  • B. Save from CaseExtensionOne will be executed
  • C. All of the three Save methods will be executed
  • D. Save from CaseExtensionTwo will be executed

Answer: B

 

NEW QUESTION 141
Which statement is true regarding both Flow and Lightning Process? (Choose two.)

  • A. Can use Apex that implements the Process.Plugin interface
  • B. Can use Apex methods with the @InvocableMethod annotation
  • C. Are both server-side considerations in the Order of Execution
  • D. Are able to be embedded directly into Visualforce pages

Answer: A,B

 

NEW QUESTION 142
What is the transaction limit on the number of "sendEmail" method calls?

  • A. 0
  • B. There is no limit
  • C. 1
  • D. 2
  • E. 3

Answer: D

Explanation:
Explanation
Explanation:
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 143
What is the correct order of execution for Visualforce Page "postback" requests (when user interaction requires a page update)?

  • A. 1) Decode View State
    2) Evaluate expressions and method calls for the main page and custom components
    3) Upon successful completion, Update data and redirect user/update view state
    4) Upon successful completion, Evaluate the action that triggered the postback
    5) HTML sent to browser
  • B. 1) Decode View State
    2) Evaluate expressions and method calls for the main page and custom components
    3) Upon successful completion, Evaluate the action that triggered the postback
    4) Upon successful completion, Update data and redirect user/update view state
    5) HTML sent to browser
  • C. 1) Evaluate expressions and method calls for the main page and custom components
    2) Decode View State
    3) Upon successful completion, Update data and redirect user/update view state
    4) Upon successful completion, Evaluate the action that triggered the postback
    5) HTML sent to browser

Answer: B

 

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

Answer: A

 

NEW QUESTION 145
Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.
In addition to this, the page should have a section that shows the location of each container on a map.
Universal Containers wants the map to re-render whenever the location of a container is changed.
What can a developer use to accomplish this task?

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

Answer: D

 

NEW QUESTION 146
A developer has a page with two extensions overriding the Standard controller for Case.
<apex:page standardController="Case" extension="CaseExtensionOne,CaseExtension Two" showHeader="false"> Each extension has a method called Save. The page has a command button as defined: <apex:commandButton value="Save" action="{!save}"/> What will happen when a user clicks the command button?

  • A. Save from Case Standard Controller will be executed
  • B. Save from CaseExtensionOne will be executed
  • C. All of the three Save methods will be executed
  • D. Save from CaseExtensionTwo will be executed

Answer: B

 

NEW QUESTION 147
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. Controller Extensions
  • B. Standard Controller
  • C. Standard List/Set Controller
  • D. Custom Controller

Answer: B

 

NEW QUESTION 148
......

Guaranteed Success with PDII Dumps: https://www.test4engine.com/PDII_exam-latest-braindumps.html

Pass Salesforce PDII Exam – Experts Are Here To Help You: https://drive.google.com/open?id=1N33s-VoR5Kz2xCL0Fiq-3vh08bHItKl4