Free Platform-Developer-II Exam Braindumps

Pass your Platform Developer II exam with these free Questions and Answers

Page 10 of 35
QUESTION 41

- (Exam Topic 3)
users complain that a page Is very slow to respond. Upon investigation, the query below Is found to perform slowly.
SELECT id, Name FROM Contact WHERE CustomField_c null; Which two actions can a developer take to improve performance?
Choose 2 answers

  1. A. Add a UMir dause to the query to reduce the number of records returned.
  2. B. Contact Salesforce customer support to create a custom index to include null values
  3. C. Make the CustomFleld__-c field an External ID.
  4. D. Make the field CustomReW___c required because Salesforce field Indexes do not Include nulls.

Correct Answer: AD

QUESTION 42

- (Exam Topic 1)
A developer receives a LimitException: Too many query rows: 50001 error when running code.
What debugging approach using the Developer Console provides the fastest and most accurate mechanism to identify a specific component that may be returning an unexpected number of rows?

  1. A. Count the number of Row Limit warning messages in the Debug Logs
  2. B. Add System.debug(System.getQueryRows()) to the code to track SOQL usage
  3. C. Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query
  4. D. Use the Execution Overview to see the number of rows returned by each Executed Unit

Correct Answer: C

QUESTION 43

- (Exam Topic 3)
Consider the following code snippet:
Platform-Developer-II dumps exhibit
Choose 2 answers

  1. A. import getOrders from ,@salesforce/apex/OrderController.getAvailableOrders';
  2. B. import ( LightningElement—apt ) from 'lwc*.
  3. C. import getOrders from @salesforc/apex/c.OrderController.getAvailablOrd#r»';
  4. D. import { LightningElement, wire ) from 'lwc';

Correct Answer: AD

QUESTION 44

- (Exam Topic 3)
Which annotation exposes an Apex class as a RESTful neb service?

  1. A. @RemoteAction
  2. B. @RestRtsoorct
  3. C. @AuraEnaWed
  4. D. @HttpInvocabte

Correct Answer: B

QUESTION 45

- (Exam Topic 1)
A developer gets an error saying 'Maximum Trigger Depth Exceeded.' What is a possible reason to get this error message?

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

Correct Answer: C

Page 10 of 35

Post your Comments and Discuss Salesforce Platform-Developer-II exam with other Community members: