function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chanbasha nbskchanbasha nbsk 

could anyone giv ethe correct answers for the below questions for certification?

Hi All,


   1.On a visual force page with a custom controller, how should developer retrieve a record by using and ID that is passed on the URL?
A.Create a new PageReference object with the id
B.Use the tag in the visualforcepage
C.Use the $Action.View method in the Visualforce page
D.Use the contructor method for the controller.

2.  How Can a developer avoid exceeding governor limits when usingan apex Trigger?Choose 2 answers.
A.By using Maps to hold data from query results
B.By performing DML transactions on lists of sObjects
C.By using a helper class that can be invoked from multiple triggers
D.By using the Database class to handle DML transactions

3.The Review__c object has a lookup relationship up to theJob_Application__c object. The job_application__c objet has amaster-detail relationship up the position__c objet. Therelationship field names are based on the auto-populateddefaults.What is the recommended way to display field data from therelated Review__c records on a Visualforce page for a singleposition__c record?

A.Utilize the Standard Controller for position__c and a Controller Extension to query for Review__c data.
B.Utilize the Standard Controller for Position__c and cross-object Formula fields on the job_Application__c object to display Review__c data.
C.Utilize the Standard Controller for Position__c corss-object Formula fields on the Review__c object to display Review__c data.
D.Utilize the Standard Controller for position__c and expression syntax in the page to display related Review__c data through the job_Application__c object.

4.What is the benefit of the Lightning Component Framework?
A.Better performance for custom SalesforceI Mobile apps.

B.More pre-built components to replicate the Salesforce look and feel
C.More centralized control via server-side logic.
D.Better integration with Force.com sites.

5.A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to anAccount?
A.The Invoice should have a Master-Detail relationship to the Account
B.The Account should have a Master-Detail relationship to the Invoice.
C.The Account should have a Lookup relationship to the Invoice
D.The Invoice should have a Lookup relationship to the Account

6.A developer needs to provide a Visualforce page that lets users enter Product specific details during a Sales cycle. How can this be accomplished?Choose 2 answers

A.Copy the standard page and then make a new Visualforce page for Product data entry. B.Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.
C.Create a new Visualforce page and an Apex controller to provide data entry.
D.download a Managed Package from the AppExchange that provides a custom Visualforce page to modify.

7.An sObject named Application _c has a lookup relationship to another sObject named Position_c. Both Application _c and Position c have a picklist field named Status_c. When the Status c field on Position __c is updated, the Status_c field on Application _c needs to be populated automatically with the same value, and execute a workflow rule on Application c. Flow can a developer accomplish this?

A. By changing Application c.Status_c into a roll-up summary field.
B. By changing Application c.Status_c into a formula field. (ANS)
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.

8.A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?
A. By using ApexMessage.Message() to display an error message after the number of DML statements is excel
B. By using Messaging.SendEmail() to conthtinue the transaction and send an alert to the user after the number DML statements is exceeded
C. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number DML statements is exceeded.
D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements exceeded. (ANS)

Thanks in Advance

SandhyaSandhya (Salesforce Developers) 
Hi,

Please refer below link which has the answers.

http://www.cram.com/flashcards/di-6664637
 
Hope this helps you!

If this helps you, please mark it as solved.

Thanks and Regards
Sandhya