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

Master the Platform-Developer-II Platform Developer II content and be ready for exam day success quickly with this Testking Platform-Developer-II practice exam. We guarantee it!We make it a reality and give you real Platform-Developer-II questions in our Salesforce Platform-Developer-II braindumps.Latest 100% VALID Salesforce Platform-Developer-II Exam Questions Dumps at below page. You can use our Salesforce Platform-Developer-II braindumps and pass your exam.

Online Salesforce Platform-Developer-II free dumps demo Below:

NEW QUESTION 1

Exhibit.
Platform-Developer-II dumps exhibit
A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can displ… data efficiently while preserving security?
Choose 3 answers

  • A. Annotate the Apex method with gAuraEnabled
  • B. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
  • C. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
  • D. Implement the with sharing keyword in the class declaration.
  • E. Implement the without sharing keyword in the class declaration.

Answer: BCD

NEW QUESTION 2

A company represents their customers as Accounts that have an External ID field called
Customer_Number____c. They have a custom Order (Order____c) object, with a Lookup to Account, to represent Orders that are placed in their external order management system (OMS). When an order is fulfilled in the OMS, a REST call to Salesforce should be made that creates an Order record in Salesforce and retates it to the proper Account. What is the optimal way to implement this?

  • A. Perform a REST GET on the Account and a REST POST to update the Order____c with the Account's record ID.
  • B. Perform a REST PATCH to upsert the Order____c and specify the Account's Customer_Number____c in it.
  • C. Perform a REST GET on the Account and a REST PATCH to upsert the Order____c with the Accounts record ID.
  • D. Perform a REST POST to update the Order c and specify the Account's Customer_Number____c in it.

Answer: B

NEW QUESTION 3

A developer creates a Lightning web component to allow a Contact to be quickly entered- However, error messages are not displayed.
Platform-Developer-II dumps exhibit
Which component should the developer add to the form to display error messages?

  • A. apex:messages
  • B. aura:messages
  • C. lightning-messages
  • D. lightning-error

Answer: C

NEW QUESTION 4

An environment has two Apex Triggers: an after-update trigger on Account and an after-update trigger on Contact. The Account after-update trigger fires whenever an Account's address is updated, and it updates every associated Contact with that address. The Contact after-update trigger fires on every edit, and it updates every Campaign Member record related to the Contact with the Contact's state.
Consider the following: A mass update of 200 Account records' addresses, where each Account has 50 Contacts. Each Contact has 1 Campaign Member. This means there are 10,000 Contact records across the Accounts and 10,000 Campaign Member records across the contacts.
What will happen when the mass update occurs?

  • A. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements.
  • B. There will be no error, since each trigger fires within its own context and each trigger does not exceed the limit of the number of records processed by DML| statements.
  • C. There will be no error, since the limit on the number of records processed by DML statements is 50,000.
  • D. The mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements.

Answer: B

NEW QUESTION 5

Universal Containers needs to integrate with their own, existing, internal custom web application. The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce.
What should the developer use to implement this integration?

  • A. A workflow rule with an outbound message that contains a session ID
  • B. An Apex trigger that calls an @future method that allows callouts
  • C. A platform event that makes a callout to the web application
  • D. A flow that calls an @future method that allows callouts

Answer: C

NEW QUESTION 6

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. Use the SaJesforce Streaming API to perform the SOQL query.
  • B. Create a Process Builder to execute the query and invoke from the Lightning component.
  • C. Invoke an Apex dass with the method annotated as ©AiraEnabled to perform the query.
  • D. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

Answer: D

NEW QUESTION 7

A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?

  • A. Declare a static final Contact at the top of the controller.
  • B. Change the setters signature to return a Contact.
  • C. Use a condition in the getter to return a new Contact if it is null.
  • D. Change the getter's signature to be static Contact.

Answer: C

NEW QUESTION 8

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?

  • A. Custom Metadata
  • B. Custom Object
  • C. Custom Setting
  • D. Custom Variable

Answer: A

NEW QUESTION 9

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to handle authentication?

  • A. Custom Setting (List)
  • B. Custom Metadata
  • C. Named Credential
  • D. Dynamic Endpoint

Answer: C

NEW QUESTION 10

A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-time when an Account is Inserted without error.
How should a developer achieve this?

  • A. Use a before insert trigger and an @future method.
  • B. Use a before insert trigger and a Queueable class.
  • C. Use a Process Builder that calls an @InvocableMethod method.
  • D. Use a Workflow rule that calls an @InvocableMethod method.

Answer: A

NEW QUESTION 11

Which statement is true regarding the use of user input as part of a dynamic SOQL query?

  • A. Free text input should not be allowed, to avoid SOQL injection
  • B. The String.format() method should be used to prevent injection
  • C. Quotes should be escaped to protect against SOQL injection
  • D. The string should be URL encoded by the input form to prevent errors

Answer: C

NEW QUESTION 12

Which method should be used to convert a Date to a String in the current user's locale?

  • A. Date.format
  • B. Date.parse
  • C. String.format
  • D. Strin
  • E. valueOf

Answer: A

NEW QUESTION 13

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.
Platform-Developer-II dumps exhibit
What must be added to display the total?

  • A. Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.
  • B. Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.
  • C. Add Total: {quantity * UnitPrice} in the template.
  • D. Add Total; {multiple quantit,y unitprice)} in the template.

Answer: B

NEW QUESTION 14

A company requires an external system to be notified whenever an account is updated.
Platform-Developer-II dumps exhibit
What LimitException could the following code trigger?

  • A. System.LimitException: Too many future calls
  • B. System.LimitException: Too many callouts
  • C. System.LimitException: Too many SOQL queries
  • D. System.CalloutException: Callout from triggers are currently not supported

Answer: A

NEW QUESTION 15

A developer is integrated with a legacy on-premises SQL database.
What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?

  • A. External Object
  • B. Lookup field
  • C. Formula field
  • D. External Id field

Answer: D

NEW QUESTION 16

A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.
Platform-Developer-II dumps exhibit
What must be done in the component to get the data from Salesforce?
A)
Platform-Developer-II dumps exhibit
B)
Platform-Developer-II dumps exhibit
C)
Platform-Developer-II dumps exhibit
D)
Platform-Developer-II dumps exhibit

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

Answer: B

NEW QUESTION 17
......

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