Examcollection offers free demo for PDII exam. "Salesforce Certified Platform Developer II (PDII)", also known as PDII exam, is a Salesforce Certification. This set of posts, Passing the Salesforce PDII exam, will help you answer those questions. The PDII Questions & Answers covers all the knowledge points of the real exam. 100% real Salesforce PDII exams and revised by experts!
Salesforce PDII Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
What is the <apex:actionSupport> tag used for in Visualforce pages?
- A. To provide help and support content for buttons and links.
- B. To trigger a second action when a button or link is clicked.
- C. To trigger controller actions in response to DOM element events.
- D. To create a Javascript function that can trigger a controller action
Answer: C
NEW QUESTION 2
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 3
What is a best practice when unit testing a controller? Choose 2 answers
- A. Simulate user interaction by leveraging Test.setMock().
- B. Verify correct page references by using getURL()
- C. Access test data by using seeAllData=true.
- D. Set query parameters by using getParameters () .put
Answer: BD
NEW QUESTION 4
Where in a query can you use Geolocation and Distance?
- A. Select clause
- B. Filter clause
- C. Order By clause
- D. Group By clause
Answer: BC
NEW QUESTION 5
Choose the correct definition for <apex:actionRegion>
- A. Allows for controller methods to be called directly from Javascrip
- B. Must be encapsulated in<apex:form> tag
- C. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code
- D. Sends an AJAX request according to the time interval you specif
- E. If this ever gets re-rendered, it resets
- F. Adds AJAX support to another component (e.
- G. onClick, onMouseUp, onFocus, etc.)
- H. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
- I. Signifies which components should be processed by the server when an AJAX request is generated
Answer: E
NEW QUESTION 6
What is a limitation of a "getxxx" method (for example, getName) in a custom Visualforce controller?
- A. The method cannot return SObjects.
- B. The method cannot use DML operations.
- C. The method cannot return Apex classes.
- D. The method cannot use SOSL queries.
Answer: B
NEW QUESTION 7
A developer has created an Order entry page that includes an <apex:outputLabel> tag for a field label. How can the developer ensure that the label text changes when the field label changes?
- A. Use FieldSetMember methods to control label text.
- B. Use the SObjectType variable to control label text.
- C. Use a custom label to manage the label text.
- D. Use the metadata API to update the label text.
Answer: B
NEW QUESTION 8
A developer is writing unit tests for the following method: public static Boolean isFreezing(String celsiusTemp) { if(String.isNotBlank(celsiusTemp) && celsiusTemp.isNumeric()) return Decimal.valueof(celsiusTemp) <= 0;
return null; } Which assertion would be used in a negative test case?
- A. System.assertEquals(true, isFreezing(null));
- B. Syste
- C. assertEquals (true, isFreezing( ' 0’);
- D. System.assertEquals(null, isFreezing('asdf'));
- E. System.assertEquals(true, isFreezing('lOO'));
Answer: C
NEW QUESTION 9
A developer has been asked to prevent Accounts from being deleted if there is a related Contact that has the Do_Not_Delete_c checkbox checked. How can the developer accomplish this?
- A. Create a Validation Rule on the Contact object.
- B. Create a Before Delete Trigger on the Account object.
- C. Create a Validation Rule on the Account object.
- D. Create a Before Delete Trigger on the Contact object
Answer: B
NEW QUESTION 10
A developer created a Visualforce page that has a custom controller that navigates to an external website after the' command button is pressed. What is the recommended way to test this functionality?
- A. Use .getURL() on the result of the action method and System.assertEquals () to compare the resulting URL.
- B. Use ApexPages.currentPage () .getUrl () and System.assertElquals () to compare the end URL.
- C. Use Test.getCurrentPage() .getUrl () and System.assertEquals () to compare the end URL.
- D. Test the navigation by executing the use case through the browser and manually inspecting the resulting URL
Answer: A
NEW QUESTION 11
Code must have X% overall code coverage
- A. X = 100
- B. X = 75
- C. X = 65
- D. X = 50
Answer: B
NEW QUESTION 12
What is the transaction limit on the max timeout for all callouts?
- A. 120 seconds
- B. 60 seconds
- C. 120 seconds (synchronous); 200 seconds (async)
- D. 60 seconds (synchronous); 200 seconds (async)
- E. There is no limit
Answer: A
NEW QUESTION 13
Which of the following variables are not transmitted in the view state? Choose two answers
- A. Private
- B. Transient
- C. Public
- D. Static
Answer: BD
NEW QUESTION 14
If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?
- A. <apex:pageMessages>
- B. <apex:message>
- C. <apex:outputText>
- D. <apex:error>
Answer: A
NEW QUESTION 15
How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? Choose 2 answers
- A. To filter results based on distance from a latitude and longitude.\
- B. To get the distance results from a latitude and longitude.
- C. To order results by distance from a latitude or longitude.
- D. To group results in distance ranges from a latitude and longitude
Answer: BC
NEW QUESTION 16
A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.How can the developer meet these requirements? Choose 2 answers.
- A. Use a StandardSetController.
- B. Use CURSOR 50 in SOQL queries.
- C. Use OFFSET in SOQL queries.
- D. Use LIMIT 50 in SOQL queries.
Answer: CD
NEW QUESTION 17
A developer needs to design a custom object that will be integrated into a back-end system. What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? Choose 2 answers
- A. Configure a custom field as unique.
- B. Configure a custom field as indexed.
- C. Configure a custom field as external ID.
- D. Configure a custom field as Salesforce ID.
Answer: AC
NEW QUESTION 18
A developer needs to compile a list of 105 for all Accounts and Opportunities that have the word "Acme" in their name' and are created today. Which statement provides the developer with the 105?
- A. FIND "Acme" IN NAME FIELDS RETURNING Account (Id), Opportunity (Id) WHERE CreatedDate TODAY
- B. SELECT Id, AccountId FROM Opportunity WHERE CreatedDate = TODAY AND ( Name LIKE '%Acme’a' Account.Name LIKE '%Acme%'
- C. SELECT Id, ( SELECT Id FROM Opportunities WHERE CreatedDate = TODAY ) FROM Account WHERE “ CreatedDate = TODAY AND Name LIKE '%Acme%'
- D. FIND "Acme"IN NAME FIELDS RETURNING Account (Id WHERE CreatedDate = TODAY),Opportunity (Id WHERE CreatedDate = TODAY)
Answer: D
NEW QUESTION 19
During the order of execution of a Visualforce page GET request, what happens after this step: Evaluate constructors on controllers and extensions?
- A. Evaluate constructors and expressions on custom components.
- B. Create view state if < apex: form> exists.
- C. Send the HTML response to the browser.
- D. Evaluate expressions, action attributes, and method calls.
Answer: A
NEW QUESTION 20
......
P.S. 2passeasy now are offering 100% pass ensure PDII dumps! All PDII exam questions have been updated with correct answers: https://www.2passeasy.com/dumps/PDII/ (189 New Questions)