Salesforce Fundamentals Flashcards
What is a correct pattern to follow when programming in Apex on a multitenant platform?
A. Use the with sharing keyword when declaring an Apex class to prevent access from other server tenants.
B. Use queries to select the fewest fields and records possible to avoid exceeding governor limits.
C. Create Apex code in a separate environment from the schema to reduce deployment errors.
D. Run Data Manipulation Language (DML) on one record at a time to avoid possible data concurrency issues.
B. Use queries to select the fewest fields and records possible to avoid exceeding governor limits.
There are governor limits for the Apex runtime on a multitenant platform. A multitenant environment can monopolize their shared resources. The Apex governor limits ensure that the Apex code or processes are not able to do that.
Which two types of code represent the controller in model-view-controller (MVC) architecture on the Lightning Platform? (Select two answers.)
A. StandardController system methods that are referenced by Visualforce
B. JavaScript that is used to make a menu item display itself
C. A static resource that contains Cascading Style Sheets (CSS) and images
D. Custom Apex and JavaScript code that is used to manipulate data
A. StandardController system methods that are referenced by Visualforce
D. Custom Apex and JavaScript code that is used to manipulate data
The MVC architecture on the Lightning Platform splits the Controller into two parts. They both do operations and execute the logic. One takes care of the client side, and the other handles the server side.
What should a developer do to update a picklist field on related opportunity records when a modification to the associated account record is detected?
A. Create a workflow rule with a field update.
B. Create a Visualforce page.
C. Create a Lightning component.
D. Create a process with Process Builder.
D. Create a process with Process Builder.
Creating the process using Process Builder helps the developer control the schedule of the process. It also allows the process to run as planned instead of doing things manually.
An important consideration when developing in a multitenant environment
Governor limits
Which three declarative methods help ensure quality data? Validation Rules, Lookup filters, Workflow Alerts, Page Layouts or Exception Handling
Validation Rules, Lookup filters, Page Layouts
If your company is selling only to businesses, which features of Salesforce would be used? Select 2 answers.
A. Business Accounts
B. Person Accounts
C. Contacts
D. Private Contacts
A. Business Accounts
C. Contacts
What is true regarding Person Accounts? Choose 3 answers.
A. Person Accounts need to be enabled and cannot be disabled
B. Person Accounts do not have an account hierarchy
C. If Person Accounts are enabled, when creating an account, the type of account to create needs to be selected
D. Person Accounts have the same fields as a business account
A. Person Accounts need to be enabled and cannot be disabled
B. Person Accounts do not have an account hierarchy
C. If Person Accounts are enabled, when creating an account, the type of account to create needs to be selected
Which of the following components are not available to deploy using the Metadata API? Choose 2 answers.
A. Fiscal Year
B. Currency Exchange Rates
C. Queues
D. Global Picklist
A. Fiscal Year
B. Currency Exchange Rates
What are considerations that a new developer should be aware of when developing in a multi-tenant environment? Choose 2 answers.
A. Many customers share the same instance, so queries need to ensure the correct organization id is referenced to return the correct organizational data
B. The number of API calls allowed is unlimited
C. Governor limits ensure that the amount of CPU time is monitored and limited per customer over a defined time period to ensure that performance in one org is not impacted by another
D. Restrictions are enforced on code that can be deployed into a production environment
C. Governor limits ensure that the amount of CPU time is monitored and limited per customer over a defined time period to ensure that performance in one org is not impacted by another
D. Restrictions are enforced on code that can be deployed into a production environment
Record types have been defined on the Account object. What does this mean? Choose 2 answers.
A. Different picklist values can be defined for each record type
B. Different fields can be defined for each record type
C. Different page layouts can be assigned for each record type
D. Different users can be assigned to each record type
A. Different picklist values can be defined for each record type
C. Different page layouts can be assigned for each record type