Slaesforce FAQ

a salesforce developer wants to review their code changes immediately

by Roel Pfannerstill Published 2 years ago Updated 2 years ago
image

Are there any practice tests for the Salesforce PDI exam?

This unique opportunity is available through our Salesforce PDI testing engine that provides you real exam like practice tests for pre-exam evaluation. The practice questions and answers have been taken from the previous PDI exam and are likely to appear in the next exam too.

What would the developer use to ensure errors are handled properly?

A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? A custom exception.addError() and A try/catch construct

When should a Visualforce page not enforce permissions or field-level security?

When a Visualforce page should not enforce permissions or field -level security. 7 If a developer has a block of code that omits some statements from being shared but the organization-wide dafault is different, what will happen. The Apex Controllers will automatically obey the organization-wide sharing defaults.

What happens if a developer doesn't share a block of code?

If a developer has a block of code that omits some statements from being shared but the organization-wide dafault is different, what will happen. The Apex Controllers will automatically obey the organization-wide sharing defaults.

image

How do I code a review in Salesforce?

Expert Code ReviewAvoid Hardcoding IDs.Bulkify your Code.No DML/SOQL inside for Loop.Create one Trigger per object.Apex Test class Best Practices. Write meaningful tests with asserts. One assert per method. ... Utilize Map for queries.Use of the Limits Apex Methods to Avoid Hitting Governor Limits.

What should a developer do to check the code coverage of a class after running all tests?

You can view code coverage in several places in the Developer Console. The Tests tab includes an Overall Code Coverage panel that displays the code coverage percentage for every Apex class in your organization that has been included in a test run. It also displays the overall percentage.

Which three considerations must the developer keep in mind while developing the apex interface?

A developer needs to create a custom Interface in Apex. AThe Apex class must be declared using the interface keyword. BA method implementation can be defined within the Apex Interface. CThe Apex interface class access modifier can be set to Private, Public, or Global.

What is the use of developer console in Salesforce?

The Developer Console is an integrated development environment with a collection of tools you can use to create, debug, and test applications in your Salesforce org.

What should developers do to check code coverage?

Inspecting Code Coverage After running tests, you can view code coverage information in the Tests tab of the Developer Console. The code coverage pane includes coverage information for each Apex class and the overall coverage for all Apex code in your organization.

What should a developer do to correct the code so that there is no chance of hitting a governor limits?

To avoid these governor limits to throw an error, we should ensure that queries are initiated outside the for loops [1.3], optimise the code by bulkifying it [1.4] to efficiently query the contacts and only perform a single update DML operation [1.5].

What are the three ways for a developer to execute tests in an org?

What are three ways for a developer to execute tests in an Org?Bulk API.Tooling API.Setup Menu.SalesforceDX.MetaData API.

What is Apex interface in Salesforce?

Advertisements. An interface is like an Apex class in which none of the methods have been implemented. It only contains the method signatures, but the body of each method is empty. To use an interface, another class must implement it by providing a body for all of the methods contained in the interface.

Which feature allows a developer to create test records for use in test classes?

Correct answer is (A) Static Resources.

How do I run a code in Salesforce developer console?

Executing Apex code in the developer consoleGo to debug -> and click on “Open Execute Anonymous Window” or Ctrl/E.Enter the code in that window and execute.After executing the code every time log is created. ... We can create/open classes, triggers, pages and static resources by using console.More items...

How do I debug a code in Salesforce developer console?

Use checkpoints, logs, and the View State tab to help debug the code you've written.Set Checkpoints in Apex Code. Use Developer Console checkpoints to debug your Apex classes and triggers. ... Overlaying Apex Code and SOQL Statements. ... Checkpoint Inspector. ... Log Inspector. ... Use Custom Perspectives in the Log Inspector. ... Debug Logs.

Where is developer console in Salesforce?

To open the Developer Console from Salesforce Classic:Click Your Name .Click Developer Console.

How is Model-View-Controller (MVC) architecture implemented on the Salesforceplatform?

Model: Standard and Custom Objects; View: Visualforce Pages; Controller: ApexCode

What are two sets of code that represent the Controller in MVC architecture on the Force.com platform?

1. Standard Controllersystem methods that are referenced by Visual force. 2. Custom Apex and JavaScript code that is used to manipulate data.

Name two users that can edit a record after it has been locked for approval?

1.An administrator 2. A user who is assigned as the current approver

Name three capabilities of cross-object formula fields?

1. Formula fields can expose data the user does not have access to in a record. 2. Formula fields can reference fields from objects that are up to...

On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID parameter that is passed on the URL?

Use the constructor method for the controller)

Describe two situations when would a developer use a custom controller instead of a controller extension?

1. When a Visualforce page needs to replace the functionality of a standard controller. 2. When a Visualforce page should not enforce permissions o...

If a developer has a block of code that omits some statements from being shared but the organization-wide dafault is different, what will happen.

The Apex Controllers will automatically obey the organization-wide sharing defaults.

What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, with the result “!Multiple in hitting a governor limit”?

Any changes up to the error are rolled back.

Which control statement should a developer use to implement set of code that executes for every record in the recordset, without performing a .size() or .length() method call when the number of records in recordset are unknown?

For (variable : list_or_set) {

Does Crack4sure have a money back guarantee?

Contrary to online courses free, with Crack4sure’s products you get an assurance of success with money back guarantee. Such a facility is not even available with exam collection and buying VCE files from the exam vendor. In all respects, Crack4sure’s products will prove to the best alternative of your money and time.

Is Crack4sure a good way to pass Salesforce?

Instead of following the ages old concept of Salesforce Developers exam preparation using voluminous books and notes, Crack4sure has introduced a brief, to the point and the most relevant content that is extremely helpful in passing any certification Salesforce Developers exam. For an instance, our PDI Nov 2021 updated study guide covers the entire syllabus in a specific number of questions and answers. The information, given in the study questions, is simplifies to the level of an average exam candidate. Wherever, it is necessary, the answers have been explained further with the help of simulations, graphs and extra notes.

What does a developer do in Apex?

A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use?

When is an interviewer required to enter a reason in the comments field?

An interviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement?

What is visual workflow?

Visual Workflow is the tool for you. Create a flow that displays information to and requests information from a user.

What are the three tools used in a workflow?

Three of our tools can address this use case: Workflow, Process Builder, and Visual Workflow. Respectively, these tools create workflow rules, processes, and flows.

What is the default modifier for a class?

The default modifier for a class is private, Exception classes must end with the word exception.

Do Apex controllers obey organization wide sharing defaults?

The Apex Controllers will automatically obey the organization-wide sharing defaults.

Does roll up summary work with master detail?

No, roll-up summary field only works with master-detail relationships.

What does a developer need to ensure?

A developer needs to ensure there is sufficient test coverage for an Apex Method that interacts with Accounts. The developer needs to create test data.

What happens when you test multiple methods?

A. Unit tests with multiple methods result in all methods failing every time one method fails.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9