aiotestking uk

Platform-Developer-II Exam Questions - Online Test


Platform-Developer-II Premium VCE File

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

Want to know Examcollection Platform-Developer-II Exam practice test features? Want to lear more about Salesforce Platform Developer II certification experience? Study Refined Salesforce Platform-Developer-II answers to Far out Platform-Developer-II questions at Examcollection. Gat a success with an absolute guarantee to pass Salesforce Platform-Developer-II (Platform Developer II) test on your first attempt.

Salesforce Platform-Developer-II Free Dumps Questions Online, Read and Test Now.

NEW QUESTION 1

What is a recommended practice with regard to the Apex CPU limit? (Choose two.)

  • A. Optimize SOQL query performance
  • B. Use Map collections to cache sObjects
  • C. Avoid nested Apex iterations
  • D. Reduce view state in Visualforce pages

Answer: BC

NEW QUESTION 2

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 queries do not exceed governor limits.
  • B. Ensure properties are marked as Transient.
  • C. Ensure properties are marked as private.
  • D. Ensure profiles have access to the Visualforce page.

Answer: B

NEW QUESTION 3

Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_ld_c. How can a developer insert an Employee_c record linked to Company_c with a Company_ld_c of '999'?

  • A. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = f999f insert emp;
  • B. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_c = f999f insert emp;
  • C. Employee_c emp = new Employee_c(Name=fDeveloperT); em
  • D. Company_c = new Company_c(Company_Id_c=f 999 T) insert emp;
  • E. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = new Company _ r(Company Id c=f999f) insert emp;

Answer: D

NEW QUESTION 4

Which statement is true regarding savepoints?

  • A. Savepoints are not limited by DML statement governor limits
  • B. You can roll back to any savepoint variable created In any order
  • C. Static variables are not reverted during a rollback.
  • D. Reference to savepoints can cross trigger invocations.

Answer: C

NEW QUESTION 5

In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)

  • A. Every record created by sales users needs to be visible to their respective manager
  • B. Poor performance when using native sharing components
  • C. Team functionality is required on custom objects
  • D. There is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
  • E. You need to change record access to read/write for all users utilising a lightning component

Answer: BCD

NEW QUESTION 6

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

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

Answer: AC

NEW QUESTION 7

A developer creates an application event that has triggered an infinite loop. What may have caused this problem?

  • A. The event has multiple handlers registered in the project.
  • B. The event handler calls a trigger.
  • C. An event is fired ontouchend" and is unhandled.
  • D. The event Is fired from a custom renderer.

Answer: D

NEW QUESTION 8

How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomenUS, in a Lightning Component?

  • A. Implement the libraries in separate helper files.
  • B. Use CONs with script attributes
  • C. Use JavaScript remoting and script tags.
  • D. Join multiple assets from a static resource.

Answer: D

NEW QUESTION 9

Which of the following about Dynamic Apex is incorrect?

  • A. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
  • B. getDescribe() can get you a variety of info on a particular object/field
  • C. Schema.getGlobalDescribeQ gives you a map of all sObject
  • D. In dynamic SOQL, you can use bind variables and bind variable fields

Answer: D

Explanation:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields
:myVariable.field1_c)
Use escapeSingleQuotes to prevent SOQL injection

NEW QUESTION 10

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?

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

Answer: C

NEW QUESTION 11

A developer is working on code that requires a call to an external web service from a batch. How should the developer enable this functionality?

  • A. Implement a custom System.CalloutException class
  • B. Include Database.AllowCallout() in the class definition
  • C. Implement an @future method for the callout, and invoke it from the batch
  • D. Specify "callout=true" in the batch implementation

Answer: B

NEW QUESTION 12

Refer to re code segment above.
Platform-Developer-II dumps exhibit
When following best practices for writing Apex taggers, which two lots are wrong or cause for concern? Choose 2 answers

  • A. Line 6
  • B. Line 11
  • C. Line 16
  • D. Line 20

Answer: AD

NEW QUESTION 13

REST uses .

  • A. The HTTP class
  • B. The HTTPRequest class
  • C. The HTTPResponse class
  • D. All of the above

Answer: D

NEW QUESTION 14

Refer to the markup below:
A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The developer receives complaints that the component performs slowly.
What can the developer do to improve the performance?
Platform-Developer-II dumps exhibit

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

Answer: C

NEW QUESTION 15

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. REST API
  • B. Dynamic Schema binding
  • C. describeSObjects()
  • D. SOSL queries

Answer: C

NEW QUESTION 16

What are three reasons that a developer should write Jest tests for Lightning web components? Choose 3 answers

  • A. To test basic user interaction
  • B. To verify that events fire when expected
  • C. To test how multiple components work together
  • D. To verify the DOM output of a component
  • E. To test a component's non-public properties

Answer: BDE

NEW QUESTION 17
......

P.S. Allfreedumps.com now are offering 100% pass ensure Platform-Developer-II dumps! All Platform-Developer-II exam questions have been updated with correct answers: https://www.allfreedumps.com/Platform-Developer-II-dumps.html (196 New Questions)