Podcast
Questions and Answers
What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2.
What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2.
- They support more frequent refreshes (every 5 days). (correct)
- They include all metadata but only a subset of data. (correct)
- They are refreshed every 29 days.
- They require a sandbox template to specify data to copy. (correct)
Which tool can deploy destructive changes to Apex classes in production?
Which tool can deploy destructive changes to Apex classes in production?
- Salesforce CLI
- Change Set
- Ant Migration Tool
- Workbench (correct)
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)
- Use methods from the 'Limits' class to monitor governor limits. (correct)
- Use collections to store all fields from a related object and not just minimally required fields.
- Use SOQL for loops to iterate data retrieved from queries that return a high number of rows. (correct)
- Use variables within Apex classes to store large amounts of data.
Which set of roll-up types are available when creating a roll-up summary field?
Which set of roll-up types are available when creating a roll-up summary field?
What is the result of the debug statements in testMethod3 when you create test data using testSetup in the below code?
What is the result of the debug statements in testMethod3 when you create test data using testSetup in the below code?
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
Which two exceptions may occur when executing the following query in Apex to retrieve a list of contacts for each account? (Choose two.)
Which two exceptions may occur when executing the following query in Apex to retrieve a list of contacts for each account? (Choose two.)
Which three tools can deploy metadata to production? (Choose three.)
Which three tools can deploy metadata to production? (Choose three.)
In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
How should a developer avoid hitting the governor limits in test methods?
How should a developer avoid hitting the governor limits in test methods?
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
How should a developer implement the request to set a picklist field to 'Monitor' on any new Leads owned by a subnet of Users?
How should a developer implement the request to set a picklist field to 'Monitor' on any new Leads owned by a subnet of Users?
Why would a developer consider using a custom controller over a controller extension?
Why would a developer consider using a custom controller over a controller extension?
What is the requirement to override a button using Visualforce on an object?
What is the requirement to override a button using Visualforce on an object?
What type of exception will a trigger cause if it is intended to copy the current Email into the Prior_Email_c field any time the Email field is changed?
What type of exception will a trigger cause if it is intended to copy the current Email into the Prior_Email_c field any time the Email field is changed?
How should a developer create a new custom exception class?
How should a developer create a new custom exception class?
Which two number expressions evaluate correctly? (Choose two.)
Which two number expressions evaluate correctly? (Choose two.)
How can a developer set up a debug log on a specific user?
How can a developer set up a debug log on a specific user?
How can a developer create a Visualforce page that enforces Field Level Security, keeping maintenance minimal?
How can a developer create a Visualforce page that enforces Field Level Security, keeping maintenance minimal?
What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2 answers.
What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2 answers.
Which two automation tools include a graphical designer? Choose 2 answers.
Which two automation tools include a graphical designer? Choose 2 answers.
Which resource in the abstract component bundle allows the developer to achieve calling JavaScript code by controller functions?
Which resource in the abstract component bundle allows the developer to achieve calling JavaScript code by controller functions?
Which standard field is required when creating a new contact record?
Which standard field is required when creating a new contact record?
What can a developer implement to alert salespeople when an account is late making payments?
What can a developer implement to alert salespeople when an account is late making payments?
To which primitive data type is a text area (rich) field automatically assigned?
To which primitive data type is a text area (rich) field automatically assigned?
Which two techniques should a developer use to resolve an apex trigger failure due to governor limits? Choose 2 answers.
Which two techniques should a developer use to resolve an apex trigger failure due to governor limits? Choose 2 answers.
Which statement is true about developing in a multi-tenant environment?
Which statement is true about developing in a multi-tenant environment?
Which three attributes need to be defined in the apex:commandButton tag to enable the functionality of calling a web service? Choose 3.
Which three attributes need to be defined in the apex:commandButton tag to enable the functionality of calling a web service? Choose 3.
What is the value of acctScore after processing a custom Percent field with a value of 50%?
What is the value of acctScore after processing a custom Percent field with a value of 50%?
Which three types of information can a developer see in the debug log? Choose 3.
Which three types of information can a developer see in the debug log? Choose 3.
What could be causing a text field to be automatically populated with invalid values despite a custom validation rule?
What could be causing a text field to be automatically populated with invalid values despite a custom validation rule?
Which two trigger types should a developer create to update an unrelated object when a record gets saved? Choose 2.
Which two trigger types should a developer create to update an unrelated object when a record gets saved? Choose 2.
What is the debug output of the following apex code? Decimal thevalue; system.debug(thevalue);
What is the debug output of the following apex code? Decimal thevalue; system.debug(thevalue);
From which two locations can a developer determine the overall code coverage for a sandbox? Choose 2.
From which two locations can a developer determine the overall code coverage for a sandbox? Choose 2.
What can be done so that recordcount can be accessed by a test class, but not by a non-test class?
What can be done so that recordcount can be accessed by a test class, but not by a non-test class?
Which three are valid controller options for a Visualforce page used as a dashboard component? Choose 3.
Which three are valid controller options for a Visualforce page used as a dashboard component? Choose 3.
What is the data type returned by the following SOSL search [FIND 'Acme*' IN NAME FIELDS RETURNING Account, Opportunity];
What is the data type returned by the following SOSL search [FIND 'Acme*' IN NAME FIELDS RETURNING Account, Opportunity];
What are two likely causes of users in the 'Sales Representative' role not being able to access the Licensed Professional records? Choose 2.
What are two likely causes of users in the 'Sales Representative' role not being able to access the Licensed Professional records? Choose 2.
What is the appropriate publish/subscribe logic to notify an external system of an unhandled exception instead of sending emails directly from Salesforce?
What is the appropriate publish/subscribe logic to notify an external system of an unhandled exception instead of sending emails directly from Salesforce?
Why did the test method fail in the sandbox and pass in the Developer Console?
Why did the test method fail in the sandbox and pass in the Developer Console?
Based on the following code snippet, what is the value of x?
Based on the following code snippet, what is the value of x?
Which Visualforce feature supports displaying a Visualforce page that allows users to edit multiple records?
Which Visualforce feature supports displaying a Visualforce page that allows users to edit multiple records?
How should a developer prevent a cross-site scripting vulnerability when taking an ID as a URL parameter?
How should a developer prevent a cross-site scripting vulnerability when taking an ID as a URL parameter?
Which tool should a development team use to deploy to a sandbox during their development cycles?
Which tool should a development team use to deploy to a sandbox during their development cycles?
Which statements are true regarding governor limits in the execute() method of a Batchable interface? Choose 2 answers.
Which statements are true regarding governor limits in the execute() method of a Batchable interface? Choose 2 answers.
Which method is used to fire an application event that follows the traditional publish-subscribe model?
Which method is used to fire an application event that follows the traditional publish-subscribe model?
When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?
When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?
Which SOSL statement should the developer use to retrieve Contacts and Users with the email address '[email protected]'?
Which SOSL statement should the developer use to retrieve Contacts and Users with the email address '[email protected]'?
How should the Order Number field be defined in Salesforce when importing order records?
How should the Order Number field be defined in Salesforce when importing order records?
What are three considerations when using the @InvocableMethod annotation in Apex? Choose three.
What are three considerations when using the @InvocableMethod annotation in Apex? Choose three.
What approach should a developer use to back up all data and attachments in Salesforce once a month?
What approach should a developer use to back up all data and attachments in Salesforce once a month?
What type of relationship should be used if financial representatives are allowed to see information on the Order but not on the Line items?
What type of relationship should be used if financial representatives are allowed to see information on the Order but not on the Line items?
What are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers.
What are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers.
What is the maximum number of SOQL queries used by a specific code?
What is the maximum number of SOQL queries used by a specific code?
What technique should be implemented to prevent exceeding the platform governor limit for SOQL queries?
What technique should be implemented to prevent exceeding the platform governor limit for SOQL queries?
Which process automation should be used to send an outbound message without using Apex code?
Which process automation should be used to send an outbound message without using Apex code?
What should a developer do to ensure the required field values are available to test a new Apex class?
What should a developer do to ensure the required field values are available to test a new Apex class?
Which method should a developer use to calculate the estimated ship date for an Order based on the availability date of Line Items?
Which method should a developer use to calculate the estimated ship date for an Order based on the availability date of Line Items?
What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?
What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?
What are two ways the developer can update the method to prevent a SOQL injection attack?
What are two ways the developer can update the method to prevent a SOQL injection attack?
What are three ways for a developer to execute tests in an org?
What are three ways for a developer to execute tests in an org?
When the method is called from a trigger, how can the developer determine if the code is executed in a trigger context?
When the method is called from a trigger, how can the developer determine if the code is executed in a trigger context?
Which collection type provides unique key/value pairings of data?
Which collection type provides unique key/value pairings of data?
What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?
What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?
What are two features of Heroku Connect?
What are two features of Heroku Connect?
What should the negative tests for a method that calculates a person's age based on birth date include?
What should the negative tests for a method that calculates a person's age based on birth date include?
What additional steps should the developer take when using the With Sharing keyword for a Visualforce Page accessed by Sales Managers?
What additional steps should the developer take when using the With Sharing keyword for a Visualforce Page accessed by Sales Managers?
When would the use of Heroku Postgres be appropriate?
When would the use of Heroku Postgres be appropriate?
How can a custom type be identified as unique when added to a Set?
How can a custom type be identified as unique when added to a Set?
How should a developer ensure that a new case is created for the support team when an opportunity stage changes to 'Closed Won'?
How should a developer ensure that a new case is created for the support team when an opportunity stage changes to 'Closed Won'?
What are two valid options for iterating through each Account in the collection List named AccountList?
What are two valid options for iterating through each Account in the collection List named AccountList?
Which line of code is causing the code block to fail?
Which line of code is causing the code block to fail?
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?
Which requirement needs to be implemented by using standard workflow instead of Process Builder?
Which requirement needs to be implemented by using standard workflow instead of Process Builder?
What can be done to resolve test failures after a new validation rule is added to the Account object?
What can be done to resolve test failures after a new validation rule is added to the Account object?
Which component is available to deploy using Metadata API?
Which component is available to deploy using Metadata API?
In the code below, what type does Boolean inherit from? Boolean b= true;
In the code below, what type does Boolean inherit from? Boolean b= true;
What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
What kind of relationship would a developer use to relate the Account to the Warehouse?
What kind of relationship would a developer use to relate the Account to the Warehouse?
What happens when a user updates a record with an Apex update trigger and a Workflow Rule?
What happens when a user updates a record with an Apex update trigger and a Workflow Rule?
What is true for a partial sandbox that is not true for a full sandbox?
What is true for a partial sandbox that is not true for a full sandbox?
In which order does Salesforce execute events upon saving a record?
In which order does Salesforce execute events upon saving a record?
What happens to the values in CampaignMember.Estimated_value_c when aggregating for Total_estimated_value_c?
What happens to the values in CampaignMember.Estimated_value_c when aggregating for Total_estimated_value_c?
What can the administrator do to associate an application with each job posting in the schema for the organization?
What can the administrator do to associate an application with each job posting in the schema for the organization?
What is a characteristic of the Lightning Component Framework?
What is a characteristic of the Lightning Component Framework?
What is a capability of cross-object formula fields?
What is a capability of cross-object formula fields?
How can a developer debug code in the Developer Console?
How can a developer debug code in the Developer Console?
Which data structure is returned to a developer when performing a SOSL search?
Which data structure is returned to a developer when performing a SOSL search?
How can a developer avoid exceeding governor limits when using an Apex Trigger?
How can a developer avoid exceeding governor limits when using an Apex Trigger?
What is a correct pattern to follow when programming in Apex on a multi-tenant platform?
What is a correct pattern to follow when programming in Apex on a multi-tenant platform?
What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?
What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?
What can a developer do to automatically send candidate information to a third-party human resource system when a candidate is hired?
What can a developer do to automatically send candidate information to a third-party human resource system when a candidate is hired?
What is an accurate statement about the with sharing keyword?
What is an accurate statement about the with sharing keyword?
How can a developer refer to or instantiate a PageReference in Apex?
How can a developer refer to or instantiate a PageReference in Apex?
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
What can a developer do to successfully deploy a new Visualforce page and extension with 95% coverage but face an average test coverage warning?
What can a developer do to successfully deploy a new Visualforce page and extension with 95% coverage but face an average test coverage warning?
Which type of trigger would the developer create to automatically populate the Reports To field in a Contact record based on related Account and Department fields?
Which type of trigger would the developer create to automatically populate the Reports To field in a Contact record based on related Account and Department fields?
To which primitive data type in Apex is a currency field atomically assigned?
To which primitive data type in Apex is a currency field atomically assigned?
Which resource can be included in a Lightning Component bundle?
Which resource can be included in a Lightning Component bundle?
Which statement can a developer use to throw a custom exception 'RecordNotFoundException'? (Choose 2)
Which statement can a developer use to throw a custom exception 'RecordNotFoundException'? (Choose 2)
When creating unit tests in Apex, which statement is accurate? (Choose 2)
When creating unit tests in Apex, which statement is accurate? (Choose 2)
What is a valid Apex statement?
What is a valid Apex statement?
Which statement is unnecessary inside the unit test for the custom controller? (Choose 3)
Which statement is unnecessary inside the unit test for the custom controller? (Choose 3)
Which action can the developer perform to get record types and picklist values in the controller for a Case object? (Choose 2)
Which action can the developer perform to get record types and picklist values in the controller for a Case object? (Choose 2)
How can a developer accomplish syncing Status_c fields between Application_c and Position_c?
How can a developer accomplish syncing Status_c fields between Application_c and Position_c?
How can a developer access the incoming records in a before insert trigger?
How can a developer access the incoming records in a before insert trigger?
How many accounts are in the org after the code execution?
How many accounts are in the org after the code execution?
What is the recommended way to display field data from related Review_C records on a Visualforce page for a single Position_c record?
What is the recommended way to display field data from related Review_C records on a Visualforce page for a single Position_c record?
Which of the following statements are correct regarding the Force.com IDE? (Choose 2)
Which of the following statements are correct regarding the Force.com IDE? (Choose 2)
Which code segment can be used to control when the dowork() method is called?
Which code segment can be used to control when the dowork() method is called?
When would a developer use a custom controller instead of a controller extension? (Choose 2)
When would a developer use a custom controller instead of a controller extension? (Choose 2)
What is a valid statement about Apex classes and interfaces? (Choose 2)
What is a valid statement about Apex classes and interfaces? (Choose 2)
What happens after the trigger code block executes that creates child Cases upon parent Case creation?
What happens after the trigger code block executes that creates child Cases upon parent Case creation?
Which control statement should a developer use to implement a set of code that executes for every record in a recordset, without performing a.size() or.length() method call?
Which control statement should a developer use to implement a set of code that executes for every record in a recordset, without performing a.size() or.length() method call?
What is the result when a Visualforce page calls an Apex controller, which then hits a governor limit?
What is the result when a Visualforce page calls an Apex controller, which then hits a governor limit?
What code segment should be inserted to make the value of the class variable SalesTax accessible within the trigger?
What code segment should be inserted to make the value of the class variable SalesTax accessible within the trigger?
How should a developer retrieve a record by ID passed on the URL in a Visualforce page with a custom controller?
How should a developer retrieve a record by ID passed on the URL in a Visualforce page with a custom controller?
Where can debug log filter settings be set? (Choose 2)
Where can debug log filter settings be set? (Choose 2)
Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?
Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?
On which object can an administrator create a roll-up summary field?
On which object can an administrator create a roll-up summary field?
What is the result of the following code block when executed: List acc = [SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Limits.getDMLStatements()+ ', ' +Limits.getLimitDMLStatements());
What is the result of the following code block when executed: List acc = [SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Limits.getDMLStatements()+ ', ' +Limits.getLimitDMLStatements());
What are the supported content sources for custom buttons and links? (Choose 2 Answers)
What are the supported content sources for custom buttons and links? (Choose 2 Answers)
What action types should be configured to display a custom success message?
What action types should be configured to display a custom success message?
When creating a record with a Quick Action, what is the easiest way to post a feed item?
When creating a record with a Quick Action, what is the easiest way to post a feed item?
What is the easiest way to verify a user before showing them sensitive content?
What is the easiest way to verify a user before showing them sensitive content?
What features are available when writing Apex test classes? (Choose 2 Answers)
What features are available when writing Apex test classes? (Choose 2 Answers)
Which two number expressions evaluate correctly? (Choose 2 answers)
Which two number expressions evaluate correctly? (Choose 2 answers)
What attributes should the visualforce page include to implement controller functionality with myControllerExtension?
What attributes should the visualforce page include to implement controller functionality with myControllerExtension?
What step should be taken before putting an app into production?
What step should be taken before putting an app into production?
Where should client-side logic that executes on hover over an account be stored in a lightning component?
Where should client-side logic that executes on hover over an account be stored in a lightning component?
Which method annotation should be used to create records for every method in the test class?
Which method annotation should be used to create records for every method in the test class?
What is a valid expression for the provided code block regarding number declaration?
What is a valid expression for the provided code block regarding number declaration?
Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? (Choose 2 answers)
Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? (Choose 2 answers)
What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a Visualforce controller?
What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a Visualforce controller?
Which method should a developer use to search for a phone number that could be on multiple object types?
Which method should a developer use to search for a phone number that could be on multiple object types?
What is an accurate statement about the 'with sharing' keyword? (Choose 2 answers)
What is an accurate statement about the 'with sharing' keyword? (Choose 2 answers)
What must the Controller for a Visualforce page utilize to override the standard Opportunity view button?
What must the Controller for a Visualforce page utilize to override the standard Opportunity view button?
When the value of a field of an account record is updated, which method will update the value of a custom field on an opportunity? (Choose 2 answers)
When the value of a field of an account record is updated, which method will update the value of a custom field on an opportunity? (Choose 2 answers)
What approach helps ensure quality data? (Choose 3 answers)
What approach helps ensure quality data? (Choose 3 answers)
What is true of a partial sandbox that is not true of a full sandbox? (Choose 2 answers)
What is true of a partial sandbox that is not true of a full sandbox? (Choose 2 answers)
In the Lightning component framework, which resources can be used to fire events? (Choose 2 answers)
In the Lightning component framework, which resources can be used to fire events? (Choose 2 answers)
What is the advantage of Salesforce Lightning?
What is the advantage of Salesforce Lightning?
What are two considerations for deciding to use a roll-up summary field? (Choose 2 answers)
What are two considerations for deciding to use a roll-up summary field? (Choose 2 answers)
Which statement results in an Apex compiler error?
Which statement results in an Apex compiler error?
What are two benefits of the Lightning Component framework? (Choose two.)
What are two benefits of the Lightning Component framework? (Choose two.)
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type to cast each sObject?
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type to cast each sObject?
What should a developer use to implement an automatic Approval Process submission for Cases?
What should a developer use to implement an automatic Approval Process submission for Cases?
When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?
When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
A developer needs to test an Invoicing system integration. Which two environments meet the requirements for testing? (Choose two.)
A developer needs to test an Invoicing system integration. Which two environments meet the requirements for testing? (Choose two.)
Which approach should a developer take to automatically add a 'Maintenance Plan' to each Opportunity that includes an 'Annual Subscription' when an opportunity is closed?
Which approach should a developer take to automatically add a 'Maintenance Plan' to each Opportunity that includes an 'Annual Subscription' when an opportunity is closed?
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
What is the requirement for a class to be used as a custom Visualforce controller?
What is the requirement for a class to be used as a custom Visualforce controller?
A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which attribute(s) to correctly implement controller functionality?
A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which attribute(s) to correctly implement controller functionality?
What should the developer consider when working with multiple triggers on the case object?
What should the developer consider when working with multiple triggers on the case object?
How should a developer prevent a recursive trigger?
How should a developer prevent a recursive trigger?
Which three options can be accomplished with formula fields? (Choose three.)
Which three options can be accomplished with formula fields? (Choose three.)
What is a capability of the ltng:require tag that is used for loading external Javascript libraries in Lightning Component?
What is a capability of the ltng:require tag that is used for loading external Javascript libraries in Lightning Component?
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
Which code block will run successfully in an execute anonymous window?
Which code block will run successfully in an execute anonymous window?
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
What are two valid options for iterating through each Account in the collection List named AccountList? (Choose two.)
What are two valid options for iterating through each Account in the collection List named AccountList? (Choose two.)
What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)
How should a developer make sure that a child record on a custom object has the same sharing access as its associated account?
How should a developer make sure that a child record on a custom object has the same sharing access as its associated account?
Given the query: List accounts = [SELECT ID, (SELECT ID, Name from Contacts) FROM Account WHERE Name = 'NoContacts']; What is the result of running this Apex?
Given the query: List accounts = [SELECT ID, (SELECT ID, Name from Contacts) FROM Account WHERE Name = 'NoContacts']; What is the result of running this Apex?
Which three attributes need to be defined with values in the apex:button tag to accomplish the functionality? (Choose three.)
Which three attributes need to be defined with values in the apex:button tag to accomplish the functionality? (Choose three.)
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result?
When is an Apex Trigger required instead of a Process Builder Process?
When is an Apex Trigger required instead of a Process Builder Process?
What action will allow the developer to relate records in the data model without knowing the Salesforce ID?
What action will allow the developer to relate records in the data model without knowing the Salesforce ID?
How should a developer design the Apex classes for a Lightning component?
How should a developer design the Apex classes for a Lightning component?
Which approach should a developer use to add pagination to a Visualforce page?
Which approach should a developer use to add pagination to a Visualforce page?
Which two ways should a developer create a PDF quote document formatted using the company's branding guidelines?
Which two ways should a developer create a PDF quote document formatted using the company's branding guidelines?
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?
What should the developer do to deploy a Visualforce page and a custom controller with methods to handle different buttons?
What should the developer do to deploy a Visualforce page and a custom controller with methods to handle different buttons?
What is a benefit of using an after insert trigger over using a before insert trigger?
What is a benefit of using an after insert trigger over using a before insert trigger?
What should a developer do to manage the usage and maintenance of machinery assigned to different construction jobs?
What should a developer do to manage the usage and maintenance of machinery assigned to different construction jobs?
What is the correct definition of the Apex method in a Next Best Action strategy?
What is the correct definition of the Apex method in a Next Best Action strategy?
What is an approach a developer can take to streamline maintenance of picklists with values 'High', 'Medium', and 'Low'?
What is an approach a developer can take to streamline maintenance of picklists with values 'High', 'Medium', and 'Low'?
Which relationship implementation supports calculating the total amount on an Order and moving Line Items to a different Order?
Which relationship implementation supports calculating the total amount on an Order and moving Line Items to a different Order?
What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface?
What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface?
What should be used to create scratch orgs?
What should be used to create scratch orgs?
Which is the correct definition of the Apex method that gets additional information in a Visual Flow?
Which is the correct definition of the Apex method that gets additional information in a Visual Flow?
What should a developer do to test if a Contact trigger works correctly without changing the organization's data?
What should a developer do to test if a Contact trigger works correctly without changing the organization's data?
Which three process automations can immediately send an email notification to the owner of an Opportunity when its Amount is changed to be greater than $10,000?
Which three process automations can immediately send an email notification to the owner of an Opportunity when its Amount is changed to be greater than $10,000?
What is the correct definition of the Apex method for determining a discount level in a Next Best Action strategy?
What is the correct definition of the Apex method for determining a discount level in a Next Best Action strategy?
What should a developer do to correct the display issue of the account type field in a Visualforce page?
What should a developer do to correct the display issue of the account type field in a Visualforce page?
Which implementation of a CreditcardPayment class is correct given the Payment class structure?
Which implementation of a CreditcardPayment class is correct given the Payment class structure?
What field should the developer add to the Global Address object for efficient model support of multiple Accounts sharing a default pickup address?
What field should the developer add to the Global Address object for efficient model support of multiple Accounts sharing a default pickup address?
Why was a change from Master-Detail to Lookup relationship not permitted for the Vendor custom object?
Why was a change from Master-Detail to Lookup relationship not permitted for the Vendor custom object?
What should the developer do to successfully deploy an Apex trigger with 0% test coverage?
What should the developer do to successfully deploy an Apex trigger with 0% test coverage?
How should a custom user interface be provided when a user edits an Account in Lightning Experience?
How should a custom user interface be provided when a user edits an Account in Lightning Experience?
Which technique should a developer implement to ensure transaction control and avoid exceeding governor limits when performing resource-intensive operations?
Which technique should a developer implement to ensure transaction control and avoid exceeding governor limits when performing resource-intensive operations?
Which method should a developer use to ensure only users with permission can delete Accounts?
Which method should a developer use to ensure only users with permission can delete Accounts?
Which two operations can be performed using a formula field?
Which two operations can be performed using a formula field?
What is the most efficient way to ensure a value is selected for the Food_Preference_c picklist every time a record is saved?
What is the most efficient way to ensure a value is selected for the Food_Preference_c picklist every time a record is saved?
Where can a developer find information about the status of asynchronous or future calls?
Where can a developer find information about the status of asynchronous or future calls?
Which three web technologies can be integrated into a Visualforce page?
Which three web technologies can be integrated into a Visualforce page?
How should the developer declare an integer variable called maxAttempts to preserve its value across trigger executions?
How should the developer declare an integer variable called maxAttempts to preserve its value across trigger executions?
Study Notes
Sandbox Types
- Partial Copy Sandboxes require a sandbox template to determine specific data to copy.
- They allow more frequent refreshes every 5 days compared to Full Sandboxes, which refresh every 29 days.
- Partial Copy Sandboxes include all metadata but only a selected subset of data as per the sandbox template.
Deployment Tools
- Workbench is capable of deploying destructive changes to Apex classes in production.
- It utilizes the Metadata API to perform actions like deletions on metadata, showcasing its utility for managing changes in production environments.
Certification Exam Success Tips
- Utilize practice questions and answers specifically designed for exam preparation; sharing these is prohibited.
- Joining the customer support Telegram group provides benefits like instant responses, professional support, and the latest product updates.
Salesforce Certification: Platform Developer I
- Exam Code: PDI; composed of 719 questions, divided into six parts.
- Knowledge of Salesforce API, data models, and coding standards is essential for passing.
Sandbox Environments
- Partial Copy Sandboxes: Include a subset of metadata and support more frequent refreshes (Correct answers: C, D).
- Full Sandboxes: Contain complete copies of production orgs, suitable for extensive testing.
Automation Tools
- Flow Builder and Process Builder both feature graphical design tools (Correct answers: B, C).
- Understanding these tools is crucial for automating business processes without code.
Code and Triggers
- Use Helper.js for shared JavaScript functions in components (Correct answer: D).
- The required standard field for a new contact record is LastName (Correct answer: A).
- To avoid exceeding governor limits in triggers, utilize maps and lists (Correct answers: B, D).
Data Types and Fields
- A text area (rich) field is assigned the String data type (Correct answer: D).
- Validation rules can prevent entries but might be bypassed if updated by workflows (Correct answer: A).
Visualforce and Apex
- To create a visualforce button, the attributes StandardController, Extensions, and Action must be set (Correct answers: A, B, C).
- A custom visualforce page can be built using various controllers, including custom and standard controllers with extensions (Correct answers: A, C, E).
Testing and Debugging
- Debug logs can show database changes and time-based workflow actions (Correct answers: B, D, E).
- The outcome of Apex test methods may differ between the Developer Console and sandbox due to reliance on existing data (Correct answer: B).
Relationships and Security
- Master-Detail relationships enforce strict sharing settings, applicable for orders and line items (Correct answer: D).
- Use a Global Picklist Value Set for standardized values across multiple objects to ease maintenance (Correct answer: A).
Best Practices in Apex
- Methods using the
@InvocableMethod
annotation must be static and can be public/global (Correct answers: A, B, E). - A scheduled Data Export job offers a reliable backup solution for data and attachments monthly (Correct answer: D).
Optimization Techniques
- Ensure governor limits are adhered to by executing SOQL queries efficiently, limiting the number based on specific conditions (Correct answer: D).
- Outbound messages can be sent without Apex code by using a Workflow Rule (Correct answer: A).
Additional Key Points
- Users with "Sales Representative" roles may not access certain records due to sharing settings or role restrictions (Correct answers: A, C).
- Design principles for Apex methods invoked by Next Best Action should follow proper structure and visibility requirements (Correct answer: B).### Developer Tools and Features
- Enqueued job status can be checked through the Apex Status Page and Apex Jobs page.
- Scratch orgs are created using Salesforce CLI.
- Visual Flow can call an Apex method, defined with the @InvocableMethod annotation, to fetch additional information about Contacts.
- Testing a trigger can be done by running all test classes via the Test menu in the Developer Console.
Email Notifications and Process Automation
- Email notifications for an Opportunity's amount change can be triggered using Workflow Rules, Flows, and Process Builder.
Apex Method Definitions
- The correct definition for an Apex method invoked in Flow should use a List as a return type.
- Proper syntax and naming conventions, such as
@InvocableMethod(label='Additional Info')
, are crucial for method definitions.
Debugging Apex Triggers
- A trigger's correctness can be verified without altering data by running test classes, ensuring at least 1% coverage.
Salesforce Object Relationships
- To enable multiple Accounts to share a default pickup address, a Master-Detail relationship should be created from the Global Address object to the Account object.
Apex Class Relationships
- Changing Master-Detail relationships to Lookup relationships can be restricted by existing roll-up summary fields.
Deployment Best Practices
- Successful deployment requires achieving coverage of both the trigger and the accompanying helper class, often necessitating the creation of dedicated test classes.
User Interface in Lightning Experience
- Custom user interfaces for editing records can be realized by overriding the Edit button with Lightning components.
Handling Apex Transactions
- When executing resource-intensive actions, using Database.Savepoint ensures transaction integrity, while System.Limit helps monitor governor limits.
Security in Apex Methods
- Governance in account deletion methods should ensure only authorized users can make deletions using
Schema.sObjectType.Account.isDeletable()
.
Formula Fields
- Formula fields can display calculated data, such as images or scores, based on record criteria.
Required Field Validation
- To ensure a picklist field always has a value, it should be marked as Required in its field definition.
SOQL Injection Prevention
- Preventing SOQL injection can be achieved through variable binding in dynamic queries and sanitizing input parameters.
Testing and Execution
- Tests can be executed in Salesforce through the Setup Menu, Developer Console, and using the Tooling API.
Data Structures in Apex
- Apex uses collections, with Maps allowing unique key/value pairings, while Lists and Sets provide ordered and unique data storage.
Debugging Governor Limits
- To monitor governor limits during test execution, utilize Limits, startTest, and stopTest methods effectively.
Heroku Connect Features
- Heroku Connect provides real-time synchronization between Salesforce and Postgres databases along with bidirectional syncing abilities.
These notes encapsulate key functions, best practices, and concepts that developers need to understand in Salesforce development.### Near Real Time Sync between Heroku Postgres and Salesforce
- Heroku Postgres is suitable for organizing and retrieving data via Structured Query Language (SQL).
Unit Testing for Age Calculation Method
- Negative unit tests should verify that future dates are rejected (correct answer A).
Visualforce Page and Apex Controller with Sharing
- With Sharing keyword restricts visibility; only Accounts owned by Reporting Sales Representatives should be available.
- Required configuration involves creating one Profile, one Permission Set, and two Roles (correct answer C).
Custom Types and Sets
- To ensure uniqueness of custom types in a Set, the class must implement the Equals and Hashcode methods (correct answer B).
Creating Cases from Opportunities
- Use Process Builder to automatically create a support Case when an Opportunity stage is changed to 'Closed Won' (correct answer A).
Iterating through List of Accounts
- Valid options for iterating a List named AccountList include using:
- For loop with Account as the variable (correct answer B).
- Using indexes in a loop to access accounts.
Identifying Failing Code in Triggers
- A SOQL query within a for loop leads to failure (correct answer A).
Field Updates through Process Builder
- Utilize Process Builder to update a picklist field on related Opportunity records when changes in Account are detected (correct answer A).
Standard Workflow vs. Process Builder
- Standard Workflow is preferred for sending outbound messages without Apex and copying account addresses (correct answers B and C).
Handling Validation Rule Failures
- Create methods that load valid Account records or instantiate them for testing to reduce future code changes (correct answers A and B).
Deployable Components via Metadata API
- Case Layout and Account Layout can be deployed using Metadata API (correct answers A and B).
Boolean Data Type in Apex
- Boolean inherits from the Object data type (correct answer B).
Referencing Web Content in Visualforce
- Preferred method for referencing web content is to upload it as a Static Resource (correct answer D).
Lookup Relationships for Custom Objects
- A lookup relationship should be established between Warehouse and Account custom objects (correct answer B).
Trigger Execution with Workflow Rules
- An Apex Trigger will execute more than once if a corresponding Workflow Rule is triggered (correct answer D).
Characteristics of Partial Sandboxes
- Partial sandboxes allow more frequent refreshes and are limited to 5 GB of data (correct answers A and D).
Salesforce Event Execution Order
- The correct execution order is: Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit (correct answer A).
Roll-Up Summary Field with Multi-Currency
- When utilizing a roll-up summary field in a multi-currency scenario, values are converted to the Campaign's currency before summation (correct answer A).
Associating Applications with Job Postings
- Use a master-detail relationship in the Application record to connect it to Job Postings (correct answer C).
Characteristics of Lightning Component Framework
- Includes event-driven architecture and supports responsive components (correct answers A and C).
Cross-Object Formula Fields
- Cross-object formula fields can reference parent relationship fields, but can't expose data the user doesn't have access to (correct answers A, B, E).
Debugging in Developer Console
- Access debug logs for analyzing Apex code execution (correct answer D).
SOSL Search Results Structure
- A SOSL search returns a list of lists of sObjects (correct answer A).
Avoiding Governor Limits in Apex
- Use Maps to store query results and perform DML transactions on lists of sObjects to prevent hitting governor limits (correct answers C and D).
Programming Patterns in Apex
- Queries should select the fewest fields and records to minimize governor limits (correct answer C).
Pre-deployment Testing in Sandbox
- Use Apex Test Execution page and Test menu in the Developer Console for testing before deployment (correct answers B and C).
Sending Candidate Information Automatically
- A workflow rule with an outbound message action can automate sending candidate information to a third-party system (correct answer D).
Sharing Settings in Apex
- Inner classes do not inherit sharing settings from outer classes (correct answers A and B).
PageReference in Apex
- Instantiate PageReference using page names or URLs (correct answers A and B).
Required Fields when Inserting Contacts
- The Name field must be populated when inserting Contact records programmatically (correct answer C).
Deploying with Test Coverage
- To address deployment test coverage, add new test methods to existing classes from previous deployments (correct answer C).
Auto-Populating Fields in Triggers
- Use before insert and before update triggers to automatically populate related fields (correct answers A and C).
Assigning Currency Fields in Apex
- A currency field is atomically assigned to the Decimal data type in Apex (correct answer B).
Resources in Lightning Component Bundle
- JavaScript and documentation can be included in a Lightning Component bundle (correct answers C and D).
Throwing Custom Exceptions
- To throw a custom exception in Apex, use constructor methods to specify messages (correct answers A and B).
Unit Test Characteristics in Apex
- Assertions in unit tests provide essential feedback beyond just increasing code coverage (correct answer D).
Valid Apex Statement
- Declaring an Account as an array of Account objects is a valid statement (correct answer B).
Unnecessary Statements in Unit Tests for Controllers
- Statements related to parameters setting and inserting page references are unnecessary in unit tests for desktop controllers (correct answers B, C, D).
Displaying Record Types and Picklist Values
- Use Schema methods to retrieve record types and picklist values for objects (correct answers A and B).
Automating Field Updates through Triggers
- An Apex trigger is suitable for updating fields automatically based on related object changes (correct answer C).
Accessing Incoming Records in Trigger Bodies
- The incoming records in a trigger can be accessed using the Trigger.new context variable (correct answer A).
Final Account Count After Insertion Code Execution
- After executing a code that attempts to insert multiple Accounts, the total number remains at 100 due to the DML limit (correct answer B).
Displaying Related Records in Visualforce
- A controller extension can be utilized to query related records from a standard controller for display purposes (correct answer B).
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge on Salesforce's partial copy sandboxes compared to full sandboxes. This quiz covers key characteristics, including data copying processes and refresh rates. Understand the intricacies of Salesforce sandbox environments.