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

Ucertify offers free demo for Platform-Developer-II exam. "Platform Developer II", also known as Platform-Developer-II exam, is a Salesforce Certification. This set of posts, Passing the Salesforce Platform-Developer-II exam, will help you answer those questions. The Platform-Developer-II Questions & Answers covers all the knowledge points of the real exam. 100% real Salesforce Platform-Developer-II exams and revised by experts!

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

NEW QUESTION 1

A developer gets an error saying 'Maximum Trigger Depth Exceeded.' What is a possible reason to get this error message?

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

Answer: C

NEW QUESTION 2

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 Id IN : aListVariable
  • B. SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false
  • C. SELECT Id FROM Account WHERE Name != NULL
  • D. SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA’

Answer: AD

NEW QUESTION 3

The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app, In addition to search, users of the app should be able to refer a fried, apply for a position, and review the status of their current submissions. The app should be made available in Salesforce Mobile, but offline access is not required.
Given these requirements, what is the recommended approach to developer the app?

  • A. Visualforce
  • B. Lightning Web Components
  • C. Lightning Experience Builder
  • D. Salesforce SDK

Answer: D

NEW QUESTION 4

What is the transaction limit on the recursive trigger depth?

  • A. 10
  • B. 17
  • C. 16
  • D. 3
  • E. There is no limit

Answer: C

NEW QUESTION 5

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 6

Given the following code:
Platform-Developer-II dumps exhibit
Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

  • A. Syste
  • B. QueryException: List has more than one row after Assignment on Account.
  • C. Syste
  • D. LimitException: To many SOQL Queries on Account.
  • E. Syste
  • F. QueryException: To many DML Statement errors on Contact
  • G. Syste
  • H. LimitException: Too many SOQL Queries on Contract

Answer: A

NEW QUESTION 7

How many Territories can an instance of salesforce have?

  • A. 400
  • B. 200
  • C. 1000
  • D. 100
  • E. 500

Answer: E

NEW QUESTION 8

Consider the following code snippet:
Platform-Developer-II dumps exhibit
Choose 2 answers

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

Answer: AD

NEW QUESTION 9

A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity owned by the currently logged-in user.
When the component is rendered, the following message is displayed: ‘’Error retrieving data’’ Which modification should be implemented to the Apex class to overcome the issue?

  • A. Edit the code to use the without sharing keyword in the Apex class.
  • B. Use the Cacheable=True attribute in the Apex method.
  • C. Ensure the OWD for the Opportunity object is public.
  • D. Use the Continuation=true attribute in the Apex method.

Answer: B

NEW QUESTION 10

Platform-Developer-II dumps exhibit
What can be done to improve the performance of the insert trigger shown above?
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 11

During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?

  • A. Create the view state
  • B. Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
  • C. Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
  • D. Send HTML to Browser

Answer: B

NEW QUESTION 12

An org has a requirement that the Shipping Address on the Account must be validated by a third-party web service, before the Account is allowed to be inserted.
What is the optimal way to meet this requirement?

  • A. Make a callout to the web service from a custom Visualforce controller.
  • B. Make a callout to the web service from a standard Visualforce controller.
  • C. Make a callout to the web service from an after insert trigger.
  • D. Make a callout to the web service from a before insert trigger.

Answer: B

NEW QUESTION 13

A developer is creating a page in App Builder that will be used in the Salesforce mobile app.
Which two practices should the developer follow to ensure the page operates with optimal performance? Choose 2 answers

  • A. Limit five visible components on the page.
  • B. Limit 25 fields on the record detail page.
  • C. Limit the number of Tabs and Accordion components.
  • D. Analyze the page with Performance Analysis for App Builder.

Answer: BD

NEW QUESTION 14

The "action" attribute on <apex:page> is ONLY evaluated on which type of request?

  • A. Get request
  • B. Postback request

Answer: A

NEW QUESTION 15

Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

  • A. Standard Controller
  • B. Standard List/Set Controller
  • C. Controller Extensions
  • D. Custom Controller

Answer: C

NEW QUESTION 16

Business rules require a Contact to always be created when a new Account is created. What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

  • A. use the Database.Delete method if the Contact insertion fails.
  • B. Disable validation rules on Contacts and set default values with a Trigger.
  • C. use the Database.Insert method with allOrNone set to False.
  • D. use setSavePoint() and rollback() with a try/catch block.

Answer: D

NEW QUESTION 17
......

Recommend!! Get the Full Platform-Developer-II dumps in VCE and PDF From Certshared, Welcome to Download: https://www.certshared.com/exam/Platform-Developer-II/ (New 196 Q&As Version)