Exambible 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!
Free demo questions for Salesforce Platform-Developer-II Exam Dumps Below:
NEW QUESTION 1
What is the correct order of execution for Visualforce Page "get" requests (initial page visit)?
Answer: C
NEW QUESTION 2
Example 1: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) { System.debug ('Campaign ID' + ar.get('CampaignId'-); System.debug ('Average amount' + ar.get('exprd')); } Example 2: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResuits) { System.debug(*Campaign ID' + ar.get('CampaignId')); System.debug ('Average amount' + ar.get('theAverage')); } Example 3: AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) System.debug(*Campaign ID' + ar.get('CampaignId')); System.debug('Average amount' + ar.get.AVG(-); } Example 4:AggregateResult[] groupedResults = [SELECT CampaigniId, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResults) { System.debug('Campaign ID' + ar.get('CampaignId')); System.debug ('Average amount' + ar.theAverage-; } Which two of the examples above have correct System.debug statements? Choose 2 answers
Answer: AB
NEW QUESTION 3
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)
Answer: AB
NEW QUESTION 4
A developer is writing a complex application involving triggers, workflow rules, Apex classes, and processes. The developer needs to carefully consider the order of execution when developing the application.
* 1. Before Triggers
* 2. After Triggers
* 3. Post commit logic such as sending email
* 4. DML committed to the database
* 5. Workflow rules
* 6. Roll-up summary calculations
In what order do the following operations execute?
Answer: A
NEW QUESTION 5
A developer is writing unit tests for the following method:
Which assertion would be used in a negative test case?
Answer: C
NEW QUESTION 6
A developer must create a custom pagination solution. While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed.
How can the developer meet these requirements?
Answer: B
NEW QUESTION 7
Which of the following object types can be used with a Web Service?
Answer: E
NEW QUESTION 8
A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object.
What is the recommended mechanism the developer should use to accomplish this?
Answer: A
NEW QUESTION 9
A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.
The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?
Answer: D
NEW QUESTION 10
The SOAP API .
Answer: C
NEW QUESTION 11
When calling a RESTful web service, a developer receives a JSON payload that has a data hierarchy that is nested three levels deep. How can the developer describe the external data?
Answer: A
NEW QUESTION 12
A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table.
Which tag should the developer use inside the component?
Answer: D
NEW QUESTION 13
A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
Which modification to the method is necessary?
Answer: A
NEW QUESTION 14
A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the opportunity’s stage is changed, a workflow rule is fired to increase the value of a filed by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5.
A user changes the stage of an Opportunities and manually sets the count field to 4. The count field updates to 5, but the child record is not created.
What is the reason this is happening?
Answer: D
NEW QUESTION 15
A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to SI,000,000. However, this criteria value can change over time.
There is a new requirement to also display high value opportunities In a Lightning web component.
Which two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated in more than one place?
Choose 2 answers
Answer: AD
NEW QUESTION 16
A developer created a Lightning web component that uses a Lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.
Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?
Answer: A
NEW QUESTION 17
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it. Which method of integration is optimal?
Answer: B
NEW QUESTION 18
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
A)
B)
C)
D)
Answer: C
NEW QUESTION 19
A company's support process dictates that any time a Case is closed with a Status of 'Could not fix,' an Engineering Review custom object record should be created and populated with information from the Case,
the Contact, and any of the Products associated with the Case. What is the correct way to automate this using an Apex trigger?
Answer: C
NEW QUESTION 20
Lightning Aura Component
Given the code above, which two changes need to be made in the Apex Controller for the code to work' Choose 2 answers
Answer: BD
NEW QUESTION 21
......
P.S. Easily pass Platform-Developer-II Exam with 196 Q&As Dumps-files.com Dumps & pdf Version, Welcome to Download the Newest Dumps-files.com Platform-Developer-II Dumps: https://www.dumps-files.com/files/Platform-Developer-II/ (196 New Questions)