A developer needs to have records with specific field values in order to test a new Apex class.What should the developer do to ensure the data is available to the test?
A. Use Anonymous Apex to create the required data.
B. Use SOQL to query the org for the required data.
C. Use TDataO < >...
A developer needs to have records with specific field values in order to test a new Apex
class.What should the developer do to ensure the data is available to the test?
A. Use Anonymous Apex to create the required data.
B. Use SOQL to query the org for the required data.
C. Use Test.loadDataO < > and reference a CSV file in a static resource.
D. Use Test.loadDataO and reference a JSON file in Documents. correct answers C.
Use Test.loadDataO < > and reference a CSV file in a static resource.
What should a developer do to check the code coverage of a class after running all
tests?
A. View the code coverage percentage or the class using the Overall code Coverage
panel in the Developer Console Test tab.
B. Select and run the class on the Apex est Execution page in the Developer Console.
C. View the Class test Percentage tab on the Apex Class list view in Salesforce Setup.
D. View the Code Coverage column in the list on the Apex Classes page. correct
answers A. View the code coverage percentage or the class using the Overall code
Coverage panel in the Developer Console Test tab.
A developer created a trigger on the Account object and wants to test if the trigger is
properly bulklfield. The developer team decided that the trigger should be tested with
200 account records with unique names.What two things should be done to create the
test data within the unit test with the least amount of code?Choose 2 answers
A. Use the @isTest(seeAllData=true) annotation in the test class.
B. Use the @isTest(isParallel=true) annotation in the test class.
C. Create a static resource containing test data.
D. Use Test.loadData to populate data in your test methods. correct answers C. Create
a static resource containing test data.
D. Use Test.loadData to populate data in your test methods.
Universal Containers has a Visualforce page that displays a table of every Container_c.
being ....... Is falling with a view state limit because some of the customers rent over
10,000 containers.What should a developer change about the Visualforce page to help
with the page load errors?
A. Implement pagination with an OffsetController.
B. Use JavaScript remoting with SOQL Offset.
C. Use Lazy loading and a transient List variable.
,D. Implement pagination with a StandardSetController correct answers D. Implement
pagination with a StandardSetController
When a user edits the Postal Code on an Account, a custom Account text field named
''Timezone'' must be updated based on the values in a postalCodeToTimezone_c
custom object. What should be built to implement this feature?
A. Account custom trigger
B. Account workflow rule
C. Account approval process
D. Account assignment rule correct answers A. Account custom trigger
A developer wants to invoke on outbound message when a record meets a specific
criteria.Which three features satisfy this use case? Choose 3 answer
A. Process builder can be used to check the record criteria and send an outbound
message with Apex Code.
B. workflows can be used to check the record criteria and send an outbound message.
C. Visual Workflow can be used to check the record criteria and send an outbound
message without Apex Code.
D. Approval Process has the capacity to check the record criteria and send an outbound
message without Apex Code
E. Process builder can be used to check the record criteria and send an outbound
messagewithout Apex Code. correct answers A. Process builder can be used to check
the record criteria and send an outbound message with Apex Code.
B. workflows can be used to check the record criteria and send an outbound message.
D. Approval Process has the capacity to check the record criteria and send an outbound
message without Apex Code
The values 'High', 'Medium', and 'Low' are Identified as common values for multiple
picklist across different object. What is an approach a developer can take to streamline
maintenance of the picklist and their values, while also restricting the values to the ones
mentioned above?
A. Create the Picklist on each object as a required field and select "Display values
alphabeticaly, not in the order entered".
B. Create the Picklist on each object and select "Restrict picklist to the values defined in
the value set".
C. Create the Picklist on each and add a validation rule to ensure data integrity.
D. Create the Picklist on each object and use a Global Picklist Value Set containing the
Values. correct answers D. Create the Picklist on each object and use a Global Picklist
Value Set containing the Values.
A developer Is Integrating with a legacy on-premise SQL database.What should the
developer use to ensure the data being Integrated is matched to the right records in
Salesforce?
, A. External Object
B. External ID field
C. Lookup field
D. Formula field correct answers B. External ID field
Universal Container* decides to use purely declarative development to build out a new
Salesforce application.Which two options can be used to build out logic layer for this
application? Choose 2 answer
A. Remote Actions
B. Record- Triggered flow
C. Validation Rules
D. Batch Jobs correct answers B. Record- Triggered flow
C. Validation Rules
A developer is creating a Lightning web component to showa list of sales records.The
Sales Representative user should be able to see the commission field on each record.
The Sales Assistant user should be able to see all fields on the record except the
commission field.How should this be enforced so that the component works for both
users without showing any errors?
A. Use Security. stripInaccessible to remove fields inaccessible to the current user.
B. Use Lightning Data Service to get the collection of sales records.
C. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the
component.
D. Use Lightning Locker Service to enforce sharing rules and field-level security.
correct answers A. Use Security. stripInaccessible to remove fields inaccessible to the
current user.
Which scenario is valid for execution by unit tests?
A. Generate a Visualforce PDF with geccontentAsPDF ().
B. Load data from a remote site with a callout.
C. Set the created date of a record using a system method.
D. Execute anonymous Apex as a different user. correct answers C. Set the created
date of a record using a system method.
What are two use cases for executing Anonymous Apex code? Choose 2 answers
A. To schedule an Apex class to run periodically
B. To delete 15,000 inactive Accounts In a single transaction after a deployment
C. To add unit test code coverage to an org
D. To run a batch Apex class to update all Contacts correct answers A. To schedule an
Apex class to run periodically
D. To run a batch Apex class to update all Contacts
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller HopeJewels. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.