Platform-Developer-II Exam - Platform Developer II

certleader.com

Exact of Platform-Developer-II training materials and preparation exams for Salesforce certification for client, Real Success Guaranteed with Updated Platform-Developer-II pdf dumps vce Materials. 100% PASS Platform Developer II exam Today!

Check Platform-Developer-II free dumps before getting the full version:

NEW QUESTION 1

Consider the following code snippet:
Platform-Developer-II dumps exhibit
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)
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 2

Refer to the code below:
Platform-Developer-II dumps exhibit
A developer is building this Aura component to display information about top Opportunities in the org. Which three code changes must be made for the component to work?
Choose 3 answers

  • A. Add the static keyword to the Apex method.
  • B. Set the controller in the component markup.
  • C. Add the RemoteAction annotation to the Apex method.
  • D. Add the AuraEnabled annotation to the Apex method.
  • E. Get the controller action with cmp.get(‘'oppController.getTopOpps").

Answer: ABD

NEW QUESTION 3

A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?

  • A. Use an AuraHandledException in a try/catch block.
  • B. Use ProcessBuilder to catch the error.
  • C. Add an onerror event handler to the tag.
  • D. Add an error-view component to the markup.

Answer: A

NEW QUESTION 4

What tool in the Developer Console contains information on SOQL query Cardinality?

  • A. Checkpoints tab
  • B. Query Editor
  • C. Query Plan Tool
  • D. Log Inspector
  • E. View State Tab

Answer: D

NEW QUESTION 5

A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:
<aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM>
<div>Hello!</div>
</aura:component>
How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

  • A. Set the sObject type as a component attribute.
  • B. Add force:hasSobjectName to the implements.
  • C. Use the getSObjectTypeQ method in an Apex class.
  • D. Create a design attribute and configure via App builder.

Answer: B

NEW QUESTION 6

UC Loans is a small company with a part time Salesforce administrator. UC Loans wants to create a Loan c record whenever an Opportunity is won. What is the optimal solution for UC Loans to accomplish this?

  • A. Quick Action
  • B. Apex Trigger
  • C. Process Builder
  • D. Workflow Rule

Answer: C

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 lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelection. changes its value.
What should the developer use to the test that the component re-renders successfully when the property changes?

  • A. Promis
  • B. resolve ( )
  • C. dispatchEvent (new CustomEvent (‘ bypassSelection’))
  • D. Windows, Setinterval ( )
  • E. Windows, set State ( )

Answer: C

NEW QUESTION 9

What is the transaction limit on the number of Apex jobs added to the queue?

  • A. 100
  • B. 150
  • C. 50
  • D. 200
  • E. There is no limit

Answer: C

NEW QUESTION 10

Consider the following code snippet, depicting an Azure component:
Platform-Developer-II dumps exhibit
Which two interfaces can the developer implement to make the component available as a quick action? Choose 2 answers

  • A. Force:lightningQuicAction
  • B. Force:hasRecordId
  • C. Force hasObjectName
  • D. Lightning QuickActionAPI
  • E. Force:lightningQuickActionWithoutHeader

Answer: AE

NEW QUESTION 11

There are user complaints about slow render times of a custom data table within a visualforce page that loads thousands of Account records at once.
What can a developer do to help alleviate such issues?

  • A. Use the standard Account List controller and implement pagination.
  • B. Use JavaScript remoting to query the accounts.
  • C. Use the transient keyword in the Apex code when querying the Account records.
  • D. Upload a third-party data table library as a static resource.

Answer: C

NEW QUESTION 12

Which technique can run custom logic when a Lightning web component is loaded?

  • A. Call SA.enqueueAction passing in the method to call.
  • B. Use the connectedCallback () method.
  • C. Use an aura:handler "init" event to call a function.
  • D. Use the renderedCallback ( ) method.

Answer: B

NEW QUESTION 13

A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an assertion failing due to an incorrect number of results.
Why could the test be failing? (Choose two.)

  • A. The test does not call Test.startTest()
  • B. The test does not create product data
  • C. The test is not run by a System Administrator
  • D. The test does not set the current page reference

Answer: BD

NEW QUESTION 14

Consider the following code snippet:
Platform-Developer-II dumps exhibit
Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code?
Choose 2 answers

  • A. Create a Named Credential, endPoint_NC, to store the endpoint and credentials.
  • B. Store the URL of the endpoint in a custom Label named endPointURL.
  • C. Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.
  • D. Use req.setEndpoint(Label.endPointURL);.

Answer: AC

NEW QUESTION 15

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)
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: D

NEW QUESTION 16

What is the best practice to initialize a Visualforce page in a test class?

  • A. Use Test.setCurrentpage,MyTestPage;
  • B. Use Test.currentpage, getParameter, put (MyTestPage);
  • C. Use Test, setCurrentPage(Page.MyTestPage);
  • D. Use controller,currentPage, setPage (MyTestPage

Answer: C

NEW QUESTION 17

A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication.
What code should the developer use to authenticate?

  • A. Http.setHeader ('Authorization' , 'Basic QthZGprjpchVulHNchFtZQ!)
  • B. stub.inputHttpHeaders_x.put('Authorization' , 'Basic QthZGprJpchVulHNchFtZQ')
  • C. Http.setAuthentication('Basic QthZGprjpchVulHNchFtZQ')
  • D. stub.authentication.put ('Authorization','Basic QthZGprjpchVulHNchFtZQ')

Answer: B

NEW QUESTION 18

Universal Containers stores user preferences in a Hierarchy Custom Setting, User_prefs_c, with a Checkbox field, show_Help_c, Company-Level defaults are stored at the organizational level, but may be overridden at the user level, If a user has not overridden preferences, then the defaults should be used.
How should the Show_Help_c preference be retrieved for the current user?

  • A. Boolean show = User_Prefs_c, getinstance( ), Show_Help _c;
  • B. Boolean show = User_Prefs_c, getValues ( ). Show _Help_c;
  • C. Boolean show = User_Prefs_c, getvaluesUserInfo.getUserid() ).Show_Help_c;
  • D. Boolean show = User prefs_c, Show_Help_c;

Answer: C

NEW QUESTION 19

A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order's status and tracking number if it is already shipped.
Which two methods can make this ERP order data visible in Salesforce? Choose 2 answers

  • A. Ensure real-time order data is in Salesforce using the Streaming API.
  • B. Write a cron job In Salesforce to poll the ERP system for order updates.
  • C. Have the ERP system push the data into Salesforce using the SOAP API.
  • D. Use Salesforce Connect to view real-time Order data in the ERP system.

Answer: CD

NEW QUESTION 20

A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits.
What are three recommendations to optimize page performance? (Choose three.)

  • A. Segregate calculation functionality from input functionality
  • B. Specify the list of sales forecasts as transient
  • C. Implement pagination and reduce records per page
  • D. Create formula fields to compute pivoted forecast calculations
  • E. Use JavaScript Remoting instead of controller actions

Answer: ACE

NEW QUESTION 21
......

P.S. Easily pass Platform-Developer-II Exam with 196 Q&As Dumpscollection.com Dumps & pdf Version, Welcome to Download the Newest Dumpscollection.com Platform-Developer-II Dumps: https://www.dumpscollection.net/dumps/Platform-Developer-II/ (196 New Questions)