[Jan 01, 2022] Free Salesforce Developers PDII Official Cert Guide PDF Download [Q78-Q97]

Share

[Jan 01, 2022] Free Salesforce Developers PDII Official Cert Guide PDF Download

Salesforce PDII Official Cert Guide PDF

NEW QUESTION 78
Invokable methods accept sObjects as parameters

  • A. True
  • B. False

Answer: B

 

NEW QUESTION 79
A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
What is the correct syntax to declare a remote method in Apex? (Choose two.)

  • A. @RemoteObject global static String getTableQ
  • B. @RemoteAction public static String getTable()
  • C. @RemoteAction global static String getTable()
  • D. @RemoteAction global String getTable()

Answer: B,C

 

NEW QUESTION 80
A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production.
What should the developer ensure to correct these errors?

  • A. Ensure profiles have access to the Visualforce page.
  • B. Ensure queries do not exceed governor limits.
  • C. Ensure properties are marked as private.
  • D. Ensure properties are marked as Transient.

Answer: D

 

NEW QUESTION 81
What level can a hierarchy custom setting be defined for? (Choose three.)

  • A. Profiles
  • B. Roles
  • C. Organization
  • D. Groups
  • E. Users

Answer: A,C,E

 

NEW QUESTION 82
What is the transaction limit for SOQL queries?

  • A. 100 (synchronous), 200 (async)
  • B. 200 (synchronous), 100 (async)
  • C. 20 (synchronous), 200 (async)
  • D. 150 (synchronous), 200 (async)
  • E. 150 (synchronous), 20 (async)

Answer: A

 

NEW QUESTION 83
When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?

  • A. Set size="12" tablet-device-size="6"
  • B. Set size="6" small-device-size="12"
  • C. Set size="6" mobile-device-size="12"
  • D. Set size="12" medium-device-size="6"

Answer: D

 

NEW QUESTION 84
Consider the code above.

When a user dicks on the Link of a Contact's name, what happens'

  • A. The outputPanel refreshes, showing the Contacts details.
  • B. Nothing happens: the commandLink is missing an action attribute.
  • C. A new page opens, showing the Contact's details.
  • D. The page refreshes, showing the Contact's details.

Answer: A

 

NEW QUESTION 85
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.
What might be causing the failed assertion?

  • A. The test class has not implemented seeAllData=true in the test method
  • B. The test class is not using System.runAs() to run tests as a Salesforce administrator
  • C. The test class has not defined an Account owner when inserting the test data
  • D. The test class has not re-queried the Account record after updating the Opportunity

Answer: D

 

NEW QUESTION 86
Which statement is considered a best practice for writing bulk safe Apex Triggers?

  • A. Add LIMIT 50000 to every SOQL statement
  • B. Instead of DML statements, use the Database methods with allOrNone set to False.
  • C. Perform all DML operations from within a Future Method.
  • D. Add records to collections and perform DML operations against these collections.

Answer: D

 

NEW QUESTION 87
A company has a Request__c object that has a lookup to the Opportunity object and a custom field. Status__c, with values of Open,' Closed, and Invalid.' An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value of Open or 'Closed.' what is the optimal way to enforce the requirement to prevent deletion?

  • A. An Apex Trigger on Opportunity
  • B. A Process on Request__c
  • C. A Process on Opportunity
  • D. An Apex Trigger on Request__c

Answer: A

 

NEW QUESTION 88
A developer is writing a complex application involving triggers, workflow rules, Apex classes, and processes. The developer needs to carefully consider the order of execution when developing the application.
1. Before Triggers
2. After Triggers
3. Post commit logic such as sending email
4. DML committed to the database
5. Workflow rules
6. Roll-up summary calculations
In what order do the following operations execute?

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

Answer: D

 

NEW QUESTION 89
Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are still in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Number__c and ERP_Key__c.
Which two queries are optimized for large data volumes? Choose 2 answers

  • A. SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false
  • B. SELECT Id FROM Account WHERE Name != NULL
  • C. SELECT Id FROM Account WHERE Id IN : aListVariable
  • D. SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA'

Answer: C,D

 

NEW QUESTION 90
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) 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
  • C. 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

Answer: C

 

NEW QUESTION 91
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 A
  • B. Option B
  • C. Option D
  • D. Option C

Answer: A

 

NEW QUESTION 92
A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c.
Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order__c records?

  • A. merge orders Order_Number__c;
  • B. upsert orders;
  • C. merge orders;
  • D. upsert orders Order_Number__c;

Answer: D

 

NEW QUESTION 93
What are three benefits of using declarative customizations over code? Choose 3 answers

  • A. Declarative customizations do not require user testing.
  • B. Declarative customizations cannot generate run time errors.
  • C. Declarative customizations will automatically update with each Salesforce release.
  • D. Declarative customizations are not subject to governor limits.
  • E. Declarative customizations generally require less maintenance.

Answer: C,D,E

 

NEW QUESTION 94
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?

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

Answer: C

 

NEW QUESTION 95
What does the System. runAs () method enforce based on the target user?

  • A. Field-level permissions
  • B. Record sharing
  • C. License limits
  • D. Object CRUD permissions

Answer: B

 

NEW QUESTION 96
The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored.
Which options are valid? (Choose two.)

  • A. Use the Scheduled Jobs page in setup
  • B. Use the Apex Jobs page in setup
  • C. Query the AsyncApexJob record
  • D. Query the Queueable Apex record

Answer: B,C

 

NEW QUESTION 97
......

Free PDII Exam Dumps to Improve Exam Score: https://www.prep4king.com/PDII-exam-prep-material.html

Exam PDII: New Brain Dump Professional - Prep4King: https://drive.google.com/open?id=1bVWJLdepDtANPArZ-9UpotRUSw5kz3l0