A developer is writing tests for a class and needs to insert records to validate functionality.
Which annotation method should be used to create record for every method in the test class?
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
An org has an existing Flow that creates an Opportunity with an Update Records element. A developer update the Flow to also create a Contact and store the created Contact's ID on the Opportunity.
Which update should the developer make in the Flow?
Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.
What is the best solution to assign the case to the appropriate support representative?
A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner.
What is the most efficient way for a developer to implement this?
A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a
number of factors.
What is the correct definition of the Apex method?
A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?
Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.
The component should be able to validate the user input before saving the information to the database.
What is the best technology to create this component?
Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.
Which Visualforce feature supports this requirement?
Which two events need to happen when deploying to a production org? Choose 2 answers
In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce?
Choose 2 answers
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default } |
Opportunity record type, and set certain default values based on the record type before inserting the record.
How can the developer find the current user's default record type? ns
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers
A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers
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 ogject.
Which two automationtools can be used to implement this feature?
Choose 2 answers
A custom object Trainer_c has a lookup field to another custom object Gym___c.
Which SOQL query will get the record for the Viridian City gym and it's trainers?
A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition.
As part of a data enrichment process. Universal Containers has a CSV file that contains updated data for all candidates in the system, the file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
Which technique should the developer implement to streamline the data upload?
A developer created a trigger on a custom object. This custom object also has some dependent pick lists.
According to the order of execution rules, which step happens first?
As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.
Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers
A developer has the following requirements:
• Calculate the total amount on an Order.
• Calculate the line amount for each Line Item based on quantity selected and price.
• Move Line Items to a different Order if a Line Item is not in stock.
Which relationship implementation supports these requirements on its own7
Which three Salesforce resources can be accessed from a Lightning web component?
Choose 3 answers
Which salesforce org has a complete duplicate copy of the production org including data and configuration?
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.
At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
A software company uses the following objects and relationships:
• Case: to handle customer support issues
• Defect_c: a custom object to represent known issues with the company's software
• case_Defect__c: a junction object between Case and Defector to represent that a defect Is a
customer issue
What should be done to share a specific Case-Defect_c record with a user?
An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price.
What is the correct implementation?
A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletion?
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 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
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
Universal Container wants Opportunities to no longer be editable when itreaches the Closed/Won stage. Which two strategies can a developer use to accomplish this?
Choose2 answer
Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.
Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2 answers
A developer is implementing an Apex class for a financial system. Within the class, the
variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is
assigned. In which two ways can the developer declare the variables to ensure their value
can only be assigned one time? Choose 2 answers
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?
Which three operations affect the number of times a trigger can fire?
Choose 3 answers
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:
which three statements are accurate about debug logs?
Choose 3 answers
A developer at Universal Containers is taked with implementing a new Salesforce application that bwill be maintained completely by their company’s Salesforce admiknistrator.
Which two options should be considered for buildig out the business logic layerof the application?
Chosse 2 answer
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?
How does the Lightning Component framework help developers implement solutions faster?
A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.
What should the developer use to satisfy this requirement in the most efficient manner?
What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.
Which approach should the developer use to be sure that the Apex class is working according tospecification?
A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.
What is the first step towards troubleshooting the issue?
A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?
Refer to the following Apex code:
What is the value of x when it is written to the debug log?
Universal Container* decides to use purely declarative development to build out a new Salesforce application.
Which two options can be used to build out the business logic layer for this application?
Choose 2 answer
Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.
In the first steps of collecting information, UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce.
Which two should a developer implement to satisfy the requirements?
Choose2 answer
A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank.
Which automation allows the developer to satisfy this requirement in the most efficient manner?
Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.
When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to
another Visualforce page.
What can the developer use to meet this business requirement?
In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers
A developer must create a lightning component that allows users to input contact record
information to create a contact record, including a salary__c custom field. what should the
developer use, along with a lightning-record-edit form, so that salary__c field functions as a
currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?
Given the following code snippet, that is part of a custom controller for a Visualforce page:
In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web
Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
A)
B)
C)
D)
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?
A developer created these three Rollup Summary fields in the custom object, Project_ct,
The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.
Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?