ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 27

Question list
Search
Search

List of questions

Search

Related questions











Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
E.
E.
Answers
Suggested answer: B, C, E

Consider the code above.

When a user dicks on the Link of a Contact's name, what happens'

A.
The outputPanel refreshes, showing the Contacts details.
A.
The outputPanel refreshes, showing the Contacts details.
Answers
B.
A new page opens, showing the Contact's details.
B.
A new page opens, showing the Contact's details.
Answers
C.
The page refreshes, showing the Contact's details.
C.
The page refreshes, showing the Contact's details.
Answers
D.
Nothing happens: the commandLink is missing an action attribute.
D.
Nothing happens: the commandLink is missing an action attribute.
Answers
Suggested answer: A

Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.

In addition to this, the page should have a section that shows the location of each container on a map. Universal Containers wants the map to re-render whenever the location of a container is changed.

What can a developer use to accomplish this task?

A.
Two Lightning Components leveraging Application Events
A.
Two Lightning Components leveraging Application Events
Answers
B.
Two Visualforce Page Components leveraging Application Events
B.
Two Visualforce Page Components leveraging Application Events
Answers
C.
A single visualforce Page leveraging Platform Events
C.
A single visualforce Page leveraging Platform Events
Answers
D.
Two Lightning Components leveraging Platform Events
D.
Two Lightning Components leveraging Platform Events
Answers
Suggested answer: A

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.
A.
Ensure real-time order data is in Salesforce using the Streaming API.
Answers
B.
Write a cron job In Salesforce to poll the ERP system for order updates.
B.
Write a cron job In Salesforce to poll the ERP system for order updates.
Answers
C.
Have the ERP system push the data into Salesforce using the SOAP API.
C.
Have the ERP system push the data into Salesforce using the SOAP API.
Answers
D.
Use Salesforce Connect to view real-time Order data in the ERP system.
D.
Use Salesforce Connect to view real-time Order data in the ERP system.
Answers
Suggested answer: C, D

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

A.
Change the method signature to be global static, not public static.
A.
Change the method signature to be global static, not public static.
Answers
B.
Change the argument from JSONObject to String.
B.
Change the argument from JSONObject to String.
Answers
C.
Annotate the entire class as @AuraEnabled instead of just the single method.
C.
Annotate the entire class as @AuraEnabled instead of just the single method.
Answers
D.
Remove line 06 from the Apex Controller and use firstName In the return.
D.
Remove line 06 from the Apex Controller and use firstName In the return.
Answers
Suggested answer: B, D

A company has a Request__c object that has a lookup to the Opportunity object and a custom field.

Status__c, with values of Open,' Closed, and Invalid.' An Opportunity should not be allowed to be deleted if there are any Request__c records related to it that have a Status__c value of Open or 'Closed.' what is the optimal way to enforce the requirement to prevent deletion?

A.
A Process on Request__c
A.
A Process on Request__c
Answers
B.
A Process on Opportunity
B.
A Process on Opportunity
Answers
C.
An Apex Trigger on Opportunity
C.
An Apex Trigger on Opportunity
Answers
D.
An Apex Trigger on Request__c
D.
An Apex Trigger on Request__c
Answers
Suggested answer: C

What are two benefits of using External IDs? Choose 2 answers

A.
An External ID is indexed and can improve the performance of SOQL queries.
A.
An External ID is indexed and can improve the performance of SOQL queries.
Answers
B.
An External ID field can be used to reference a unique ID from another, external system.
B.
An External ID field can be used to reference a unique ID from another, external system.
Answers
C.
An External ID can be a formula field to help create a unique key from two fields in Salesforce.
C.
An External ID can be a formula field to help create a unique key from two fields in Salesforce.
Answers
D.
An External ID can be used with Salesforce Mobile to make external data visible.
D.
An External ID can be used with Salesforce Mobile to make external data visible.
Answers
Suggested answer: A, B

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.
A.
Use the standard Account List controller and implement pagination.
Answers
B.
Use JavaScript remoting to query the accounts.
B.
Use JavaScript remoting to query the accounts.
Answers
C.
Use the transient keyword in the Apex code when querying the Account records.
C.
Use the transient keyword in the Apex code when querying the Account records.
Answers
D.
Upload a third-party data table library as a static resource.
D.
Upload a third-party data table library as a static resource.
Answers
Suggested answer: C

Which statement is considered a best practice for writing bulk safe Apex Triggers?

A.
Perform all DML operations from within a Future Method.
A.
Perform all DML operations from within a Future Method.
Answers
B.
Instead of DML statements, use the Database methods with allOrNone set to False.
B.
Instead of DML statements, use the Database methods with allOrNone set to False.
Answers
C.
Add records to collections and perform DML operations against these collections.
C.
Add records to collections and perform DML operations against these collections.
Answers
D.
Add LIMIT 50000 to every SOQL statement
D.
Add LIMIT 50000 to every SOQL statement
Answers
Suggested answer: C

The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updating, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem.

What should the developer specify in the debug log to see the values of the workflow rule conditions and debug the problem?

A.
INFO level for the Database log category
A.
INFO level for the Database log category
Answers
B.
ERROR level for the Workflow log category
B.
ERROR level for the Workflow log category
Answers
C.
ERROR level for the Database log category
C.
ERROR level for the Database log category
Answers
D.
INFO level for the Workflow log category
D.
INFO level for the Workflow log category
Answers
Suggested answer: A
Total 408 questions
Go to page: of 41