카테고리 없음

..

송테이토 2024. 1. 20. 20:17

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?

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?

View the code coverage percentage or the class using the Overalll code Coverage panel in the Developer Console Test tab.

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/
} } Which is the correct implementation?

Public class CreditcardPayment extends Payment {
public override void makePayment(Decimal amount) { /*implementation*/ }
}

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

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?

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?

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?

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

A developer wants to invoke on outbound message when a record meets a specific criteria.
Which three features satisfy this use case?

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.

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?

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?

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

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.

Use Security. stripInaccessible to remove fields inaccessible to the current user.

 

Which scenario is valid for execution by unit tests?

 Set the created date of a record using a system method.

 

 

What are two use cases for executing Anonymous Apex code? Choose 2 answers

To schedule an Apex class to run periodically

To run a batch Apex class to update all Contacts

 

What are three characteristics of change set deployments?

A. Deployment is done in a one-way, single transaction.

B. Sending a change set between two orgs requires a deployment connection.

C. Change sets can only be used between related organizations.

 

Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.
Which consideration should the developer be aware of when deciding between SOQL and SOSL?
Choose 2 answers

B. SOSL is faster for tent searches.

C. SOQL is able to return more records.

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?

. Use a Max Roll-Up Summary field on the Latest availability date fields.

Which statement describes the execution order when trigger are associated to the same object and event?

Trigger execution order cannot be guaranteed.

A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?

B. Public class CheckPaymentProcessor implements PaymentProcessor {
public void pay(Decimal amount) {}
}

For which three items can 2 trace flag be configured?
Choose 3 answers

User, Apex Trager,  Apex Class

What are three ways for a developer to execute tests in an org? Choose 3.

B. Tooling API

C. Setup Menu

D. Salesforce DX

The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is 'Technology' while also retrieving the contact's Job_Application__c records.
Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts?

A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE
Account.Industry = 'Technology'];

Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry:

When the code execution, which two events occur as a result of the Apex transaction?
When the code executes, which two events occur as a result of the Apex transaction?
Choose 2 answers

The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.

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.

Line Item has a re-parentable master-detail field to Order.

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?

B. @TestSetup

 

n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a 'Contact and store the created Contact's 1D on the Opportunity.
Which update must the developer make in the flow?

D. Add a new Create Records element.

 

The following code snippet is executed by a Lightning web component in an environment with more than
2,000 lead records:

Which governor limit will likely be exceeded within the Apex transaction?

A. Total number of DML statement issued

Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job.
What should a developer implement to represent that an applicant has applied for a job?

B. Junction object between Applicant and Job

 

In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?

B. On the Paused Row Interviews component on the Home page

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

A. Tooling API D. Developer console

 

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?

B. The test method relies on existing data in the sandbox.

 

The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
* Rollup summary fields
* Custom validation rules
* Duplicate rules
A developer created a trigger on the Account object.
What two things should the developer consider while testing the trigger code?
Choose 2 answers

B. Rollup summary fields can cause the parent record to go through Save.

C. The trigger may fire multiple times during a transaction.

 

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?

A. VS Code D. SFDX CLI

 

Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?

<aura:application access="Grobal" extends="ltng~~>

 

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.

B. An Apex REST class

 

A developer is migrating a Visualforce page into a Lightning web component.
The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.

B. Lightning Data Service handles sharing rules and field-level security.

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?

C. Limits

What should a developer use to script the deployment and unit test execution as part of continuous integration?

C. Developer Console

 

A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.
What should the developer use to override the Contact's Edit button and provide this functionality?

B. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

Which two are best practices when it comes to component and application event handling? (Choose two.)

B. Handle low-level events in the event handler and re-fire them as higher-level events.

C. Reuse the event logic in a component bundle, by putting the logic in the helper.

What is the result of the following code?

Account a = new Account ();
Database.insert (a, false);

D. The record will not be created and no error will be reported.

 

Integer x= 0

do{

x=1

x++;

} while (x<1>

답 2

 

Cloud kicks has a muli-screen flow 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 number and dates that are retrieved from an external odrer management system in real time and displayed on the screen.

. An apex REST class

 

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?

@wire(getAccounts, {searchTeram: '$search}]

A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing Orderltem records to a new Order record?

D. Select the Allow reparenting option on the master-detail relationship.

 

A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

B. Collect the insert method return value a Saveresult variable

 

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

A. Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )

B. Use if (Schema.sObjectType.Contact.isAccessible ( ) )

 

What are two ways a developer can get the status of an enquered job for a class that queueable interface?
Choose 2 answers

A. View the apex Jobs page

D. Query the AsyncApexJobe object

 

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<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

A. Use the escapeSingleQuote method to sanitize the parameter before its use.

B. Use variable binding and replace the dynamic query with a static SOQL.

Which two sfdx commands can be used to add testing data to a Developer sandbox?

B. Forced: data: tree: upsert

D. Forced: data:bulk:upsert

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?

C. Use Test,getStandardPricebookid ( ) to get the standard price book ID.

 

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

B. SalesforceDX

C. Setup Menu

D. Tooling API

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

B. Account trigger D. Fast field Updates record-triggered flow

A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?

D. Mark the field as Required on the field definition.

When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values another custom object object called.
What is the optimal way to Implement this feature?

B. Build a flow with flow Builder.

A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce.
Which two actions will prevent the duplicate order records from being created in Salesforce?
Choose 2 answers

A. Ensure that the order number in the OMS is unique.

D. Use the order number from the OMS as an external ID.

 

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. Debug logs can be set for specific users, classes, and triggers.

C. System debug logs are retained for 24 hours.

E. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

 

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. SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'

 

What can be used to override the Account's standard Edit button for Lightning Experience?

B. Lightning component

 

Boolean isOK;

integer x;

String theString ='Hello' 4

A developer is creating an app that contains multiple Lightning web components.
One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?

A. Create a custom event.

 

How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?

D. Use SOQL and the Tooling API

 

When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers

C. Developer and Developer Pro sandboxes have different storage limits.

D. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.

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?

 <ligthning-input-field field-name="Salary__c">
</lightning-input-field>

 

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?

C. Share the parent Case and Defect_c records.

 

Which action causes a before trigger to fire by default for Accounts?

C. Importing data using the Data Loader and the Bulk API

 

A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.
When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?

D. @InvocableMethod

 

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?

D. Use the with sharing keyword on the class declaration.

 

-----

Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.
What is the best practice to get the sum of all Order Line item totals on the Order record?

C. Roll-up summary field

 

A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script.
Following best practices, what is the optimal approach to satisfy this requirmrnt?

B. Flow Builder

import fetcOpps from

When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user.

A. The method must be annotated with the AureEnabled annolation

C. The method must specify the (cacheable-trun) attribute

E. The method cannot mutate the result set retrieved from the database.

 

Which action may cause triggers to fire?

B. Updates to Feed Items

 

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an O

rder?

C. Use a Max Roll-Up Summary field on the Latest availability date fields.

Which two sfdx commands can be used to add testing data to a Developer sandbox?

B. Forced: data:bulk:upsert

C. Forced: data: tree: upsert

 

How should a developer write unit tests for a private method in an Apex class?

C. Use the TestVisible annotation.

 

What are three characteristics of change set deployments?
Choose 3 answers

A. Change sets can only be used between related organizations.

D. Deployment is done in a one-way, single transaction.

E. Sending a change set between two orgs requires a deployment connection.

 

Which three resources in an Azure Component can contain JavaScript functions?

A. Renderer C. Controllers E. helper

 

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

C. Developer console

D. Tooling API

 

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?

B. Use Test,getStandardPricebookid ( ) to get the standard price book ID.

 

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?

-> gloabal class web{

p....

websevice static String update(

 

 

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.

C. Line Item has a re-parentable master-detail field to Order.

 

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

B. View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.

 

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?

C. @AuraEnabled(cacheable=true)
public static List<Opportunity> search(String term) { /* implementation*/ }

 

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account? 2222222222

 

A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the datadase.
Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits?
Choose 2 answers

  • C. Use the System.Limit class to monitor the current CPU governor limit consumption.
  • D. Use the Database.Savepoint method to enforce database integrity.

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

B. View the code coverage percentage or the class using the Overalll code Coverage panel in the Developer Console Test tab.

 

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?

B. The parent component can invoke a method in the child component

D. The parent component can use a public property to pass the data to the child component.

What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?

A. FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)

 

 

Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should th

B. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.

C. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.

 

Which three statements are true regarding custom exceptions in Apex? (Choose three.)

B. A custom exception class name must end with "Exception".

C. A custom exception class can extend other classes besides the Exception class.

D. A custom exception class can implement one or many interfaces.

 

A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?

A. Declare maxattempts as a constant using the static and final keywords

Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?

<auraLapplication access Golabal extends =:tn

 

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

C. Rich component ecosystem

D. Self-contained and reusable units of an application

' What is the result of the following code?

Account a = new Account ();
Database.insert (a, false);

D. The record will not be created and no error will be reported.

 

Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.
Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to '';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe.

A. Record_Triggered Flow

B. Scheduled Flow

 

A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

C. Collect the insert method return value a Saveresult variable

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. Record-Triggered Flows
    • D. Validation Rules

A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.
When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?  @InvocableMethod

A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage? B. Write a class that implements the HTTPCalloutMock interface.

 

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?

C. <ligthning-input-field field-name="Salary__c">
</lightning-input-field>

A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C.
A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?

D. A record-triggered flow on the Sales Help Request__c object

 

As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. . Record-Triggered Flow

 

Which scenario is valid for execution by unit tests? C. Set the created date of a record using a system method.

What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components?
Choose 3 answers

B. Loading scripts In parallel

C. Specifying loading order

E. One-time loading for duplicate scripts

The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.
What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

D. Use a validation rule.

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.

D. Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code

E. workflows can be used to check the record criteria and send an outbound message.

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.
Without writing unnecessary code, which controller should be used for this purpose?

  • C. Standard list controller

 

Which two events need to happen when deploying to a production org? Choose 2 answers

A. All Apex code must have at least 75% test coverage.

B. All triggers must have at least 1% test coverage.

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers

A. Relationships

B. Custom Objects and Fields E. Roll-Up Summaries

 

How does the Lightning Component framework help developers implement solutions faster?

A. By providing device-awareness for mobile and desktops

For which three items can a trace flag be configured?
Choose 3 answers

A. Apex Trigger

B. User

D. Apex Class

If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

A. The apex governor limits are reset for each iteration of the execute() method.

C. The Apex governor limits might be higher due to the asynchronous nature of the transaction.

What should be used to create scratch orgs?

A. Salesforce CLI

 

In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?

A. On the Paused Row Interviews component on the Home page

 

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?

D. Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.

 

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<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

B. Use the escapeSingleQuote method to sanitize the parameter before its use.

 

C. Use variable binding and replace the dynamic query with a static SOQL.

 

Assuming that naze is 8 String obtained by an <apex:inpotText> tag on 8 Visualforce page, which two SOQL queries performed are safe from SOQL injection?
'Choose 2 answers

-String query= '%'+name+ '%';

- String.escapeSingleQutoes(name_

 

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers

A. Test.setCurrentPage(pageRef);

B. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');

D. String nextPage - controller.save().getUrl();

 

The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is 'Technology' while also retrieving the contact's Job_Application__c records.
Based on the object's relationships, what is the most efficient statement to retrieve the list of contacts?

A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE
Account.Industry = 'Technology'];

Cloud kicks has a muli-screen flow 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 number and dates that are retrieved from an external odrer management system in real time and displayed on the screen.

C. An apex REST class

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.

A. An Apex REST class

 

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. Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until [ J isDefaultRecordTypeMapping() is true. Pencil & Paper |

 

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?

A. Add a new Create Records element.

 

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?

D. Include <apex:message> on the Visualforce page.

 

Which two are best practices when it comes to component and application event handling? (Choose two.)

A. Reuse the event logic in a component bundle, by putting the logic in the helper.

C. Handle low-level events in the event handler and re-fire them as higher-level events.

 

A developer created this Apex trigger that calls MyClass,myStartmethod:

The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code coverage.
What happens wtier the developer tries to deploy the ... and two classes to production, assuming no other code exists?

D. The deployment fails because the Apr- MgQM has no code coverage.

 

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.

B. Use Test.loadData to populate data in your test methods.

C. Create a static resource containing test data.

 

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: C. Total number of DML statement issued

Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c.
The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related. D. Create a record-triggered flow on ServiceJob_o.

 

n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a 'Contact and store the created Contact's 1D on the Opportunity.
Which update must the developer make in the flow?

A. Add a new Create Records element.

What are two use cases for executing Anonymous Apex code? Choose 2 answers

C. To run a batch Apex class to update all Contacts

D. To schedule an Apex class to run periodically

 

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

B. Import the static resource and provide a getter for it in JavaScript.

C. Upload the SVG as a static resource.

E. Reference the getter in the HTML template.

 

Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

B. $Lightning.use

C. $Lightning.createComponent

E. <apex:includeLightning/>

 

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?

A. An error condition formula on a validation rule on Opportunity

 

Which two statements are true about using the @testSetup annotation in an Apex test class?

  • A. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used. Most Voted

B. Test data is inserted once for all test methods in a class. 

 

 

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 a StandardSetController,

Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?

A. Add a Lookup field on the Account object to the Global Address object.

 

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.

 Move the DML that saves opportunities outside the for loop.

C. Query for existing opportunities outside the for loop.

 

A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?

D. Data Import Wizard does not support Opportunities.

 

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?

C. The test method relies on existing data in the sandbox.

 

-----

 

A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record.
Which approach should the developer to meet this requirement?

A. A custom controller extension

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?

C. By using the isCreatable() method.

 

How can a developer avoid exceeding governor limits when using an Apex Trigger?choose 2 answers

B. By performing DML transactions on lists of SObjects.

D. By using Maps to hold data from query results.

 

What is a capability of formula fields? (Choose 3)

A. Determine if a datetime field has passed using the NOW function.

B. Generate a link using the HYPERLINK function to a specific record in a legacy system.

C. Determine which of three different images to display using the IF function.

 

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?

C. Create a test class and methods to cover the Apex trigger

 

 

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit.

The above method might be called during a trigger execution via a Lightning component.
Which technique should be implemented to avoid reaching the governor limit?

. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds. Most Voted

 

 

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

B. Add a LIMIT clause to the first SELECT SOQL statement.

 

Application Events follow the traditional publish-subscribe model. Which method is used to fire an event?

D. Fire()

 

 

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?

B. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.

 

Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.
Which consideration should the developer be aware of when deciding between SOQL and SOSL?
Choose 2 answers

A. SOQL is able to return more records.

B. SOSL is faster for tent searches.

 

 

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

A. List<List <sObject>> searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);

 

A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?

C. Create and populate a custom field on the parent object marked as an External ID.

A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing.
Which two environments meet the requirements for testing? (Choose two.)

C. Partial Sandbox E. Full Sandbox

 

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

B. Import the static resource and provide a better for it in JavaScript.

C. Reference the getter in the HTML template.

E. Upload the SVG as a static resource.

 

Which approach should be used to provide test data for a test class?

A. Use a test data factory class to create test data.

 

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.

Which three options should be used to build out the database layer for the application? (Choose three.)

  • A. Process Builder
  • B. Roll-up summaries Most Voted
    • D. Relationships Most Voted

 

 

What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

. Account0.Phone=333-8780, Account1.Phone=333-8781

 

 

Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace.
Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

 Declare the class and method using the global access modifier.

 

Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers

B. [find 'acme*'in all fields returning account,opportunity]

 

 

In which two org types can a developer create new Apex Classes? Choose 2 answers

A. Developer Edition

B. Sandbox

 

A developer needs to confirm that a Contact trigger works correctly without changing the organization's data.
what should the developer do to test the Contact trigger?

B. Use the Test menu on the Developer Console to run all test classes for the Contact trigger

 

 

A developer is creating a Visualforce 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?

B. Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate trought them until isdefaultRecordTypeMapping() is true.

 

What is a benefit of the Lightning Component framework?Choose 3 answers

A. It uses a traditional publish-subscribe model.

B. It uses an MVC architectural design pattern.

C. It uses an event-driven architecture

 

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, f he 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. A Update the primaryid__c field definition to mark it as an External Id

 

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.
Without writing unnecessary code, which controller should be used for this purpose? D. Standard controller

A developer is creating an enhancement to an application that will allow people to be related to their employer.
Which date model should be used to track the data?

D. Create a lookup relationship to indicate that a person has an employer

 

 

A developer has requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis.
Which class definition should be used to successfully implement this requirement?

B. Global inherited sharing class ProcessAccountProcess Implements Queueable

 

A developer is tasked with performing a complex validation using Apex as part of advanced business logic. certain criteria are met for a PurchaseOrder, the developer must throw a custom exception.
What is the correct way for the developer to declare a class that can be used as an exception?

D. public class PurchaseOrderException extends Exception ()

 

A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?

D. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.

 

 

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

A. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.

 

Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?

A. The Custom Object will be deleted when the referenced Standard Object is deleted.

 

What can be used to override the Account's standard Edit button for Lightning Experience7

A. Lightning component

 

Which two process automations can be used on their own to send Salesforce Outbound Message?
Choose 2 answers

A. Workflow Rule

. Flow Builder

 

A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x <
150; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?

100

 

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers

B. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');

D. Test.setCurrentPage(pageRef);

E. String nextPage - controller.save().getUrl();

 

What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?

A. Queries select the fewest fields and records possible to avoid exceeding governor limits.

 

Universal Containers stores Orders and Line Items in Salesforce. For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?

A. Master Detail

 

Which one do you like?
What should a developer consider for an environment that has over10,000 Case records?

A. The transaction will fail due to exceeding the governor limit.

 

How should a custom user interface be provided when a user edits an Account in Lightning Experience?

B. Override the Account's Edit button with Lightning component.

 

 

If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

C. The Apex governor limits might be higher due to the asynchronous nature of the transaction.

D. The apex governor limits are reset for each iteration of the execute() mrthod.

 

 

A developer created a visualforce page using a custom controller that calls an apex helper class. A method in the helper class hits a governor limit. what is the result of the transaction?

 All changes in the transaction are rolled back

 

What is an important consideration when developing in a multi-tenant environment?

B. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.

 

A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculation and redirect the user to a custom visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to accomplish this?
Choose 3 answers

A. standard Controller

C. Action

D. extensions

 

A business has a proprietary Order Management System (OMS) that creates orders from their website and ... the order. When the order is created in the OMS, an integration also creates an order record in Salesforce ... relates it to the contact as identified by the email on the order. As the order goes through different stages in OMS, the integration also updates it in Salesforce.
It is notified that each update from the OMS creates a new order record in Salesforce.

C. Use the order number from the OMS as an external ID.

D. Ensure that the order number in the OMS is unique.

 

 

Considering the following code snippet:

When the code executes a DML exception is thrown.
How should the developer modify the code to ensure exceptions are handled gracefully?

D. Implement a try/catch block for the DML.

 

which three data types can a SOQL query return? Choose 3 answers

A. List

C. Integer

D. sObject

 

 

 

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account? 2222222222

 

What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?

D. Querying Accounts. Query Exception. Done

 

Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:

A. Debug logs can be set for specific users, classes, and triggers.

B. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

C. System debug logs are retained for 24 hours.

 

How should a custom user interface be provided when a user edits an Account in Lightning Experience?

A. Override the Account's Edit button with Lightning component.

 

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

B. Dev Hub

 

What is accurate statement about with sharing keyword? Choose 2 answers

B. Both inner and outer classes can be declared as with sharing

C. Inner classes do not inherit the sharing settings from the container class

 

What is a good practice for a developer to follow when writing a trigger? (Choose 2)

A. Using the Map data structure to hold query results by ID.

D. Using the Set data structure to ensure distinct records.

 

 

A developer can use the debug log to see which three types of information? (Choose three.)

  • A. HTTP callouts to external systems Most Voted
  • B. Database changes Most Voted
  • C. Resource usage and limits Most Voted

 

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application.
The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class.

!!!

global class{

static String updateRecords

 

 

A developer is migrating a Visualforce page into a Lightning web component.
The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.

A. Lightning Data Service handles sharing rules and field-level security.

 

 

Which three Salesforce resources can be accessed from a Lightning web component?
Choose 3 answers

B. Content asset files

C. SVG resources

D. Static resources

 

 

Which three statements are accurate about debug logs? Choose 3 answers

B. Debug Log levels are cumulative, where FINE lop level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

C. Amount of information logged in the debug log can be controlled by the log levels.

D. To View Debug Logs, "Manager Users" or "View All Data" permission is needed.

 

 

A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?

What are three benefits of using declarative customizations over code? (Choose three.)

  • B. Declarative customizations will automatically update with each Salesforce release.
  • D. Declarative customizations are not subject to governor limits.
  • E. Declarative customizations generally require less maintenance.

 

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?

D. Formula field

 

What are two ways that a controller and extension can be specified on a Visualforce page?
Choose 2 answers

A. Qo apex:page standardController="Account" extensions="myControllerExtension"

D. apex:page controller="Account" extensions="myControllerExtension""

 

What should a developer use to fix a Lightning web component bug in a sandbox?

A. VS Code

 

 

A developer writes a single trigger on the Account object on the after insert and after update events. A workflow rule modifies a field every time an Account is created or updated.
How many times will the trigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?

C. 2

 

 

A developer identifies the following triggers on the Expense_c object:
DeleteExpense,
applyDefaultstoexpense
validateexpenseupdate;
The triggers process before delete, before insert, and before update events respectively.
Which two techniques should the developer implement to ensure trigger best practice are followed?

B. Unify all three triggers in a single trigger on the Expense__c object that includes all events.

D. Create helper classes to execute the appropriate logic when a record is saved.

 

Which two statements are true about Getter and Setter methods as they relate to Visualforce?

C. There is no guarantee for the order in which Getter methods are called.

D. Getter methods pass values from a controller to a page.

 

A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record.
Which approach should the developer to meet this requirement? B. A custom controller extension

 

A developer needs to create a custom Interface in Apex.
Which three considerations must the developer keep in mind while developing the Apex Interface?
Choose 3 answers

A. The Apex class must be declared using the interface keyword.

C. The Apex interface class access modifier can be set to Private, Public, or Global.

E. A method defined In an Apex Interface cannot have an access modifier.

 

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?

B. Implement pagination with a StandardSetController,

 

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?

D. Share the parent Case and Defect_c records.

 

A Salesforce Administrator used Flow Builder to create a flow named ''accountOnboarding''. The flow must be used inside an Aura component.
Which tag should a developer use to display the flow in the component?

D. Lightning:flow

 

Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able to do so. What is a possible reason that this change was not permitted?

B. The Account records contain Vendor roll-up summary fields.

 

Which three data types can a SOQL query return? Choose 3 answers

A. sObject

B. Integer D. List

 

A developer creates a custom exception as shown below:
What are two ways the developer can fire the exception in Apex? Choose 2 answers

A. Throw new ParityException (parity does not match);

C. Throw new parityException ( );

 

What is a key difference between a Master-Detail Relationship and a Lookup Relationship?

C. A Master-Detail Relationship detail record inherits the sharing and security of its master record.

 
What should be used to create scratch orgs?

A. Salesforce CLI

 

A developer wants to invoke an outbound message when a record meets a specific criteria.
Which three features satisfy this use case? (Choose three.)

  • A. Process builder can be used to check the record criteria and send an outbound message with Apex Code. Most Voted
  • C. Approval Process has the capability to check the record criteria and send an outbound message without Apex Code. Most Voted
  • D. Workflows can be used to check the record criteria and send an outbound message. Most Voted

 

 

 

 

Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.
Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to '';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe.

B. Record_Triggered Flow

C. Process Builder

 

How should a developer write unit tests for a private method in an Apex class?

C. Use the TestVisible annotation.

 

In the following example, which sharing context will myMethod execute when it is invoked?

B. Sharing rules will be inherited from the calling context.

 

A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrator wishes to expose the component only on Record Page Layouts.
Which two actions should the developer take to accomplish this business objective?
Choose 2 answers

B. Ensure isExposed is set to true on the XML file

D. Specify lightning_RecordPage as a target in the XML file. .

 

 

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?

B. <ligthning-input-field field-name="Salary__c">
</lightning-input-field>

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: B. Total number of DML statement issued

 

How can a developer implement this feature? C. Build a flow with Flow Builder.

 

 

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 stock.

D. Line Items has a Master-Detail field to Order and the Master can be re-parented.

 

 

A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing Orderltem records to a new Order record?

D. Select the Allow reparenting option on the master-detail relationship.

 

When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers

B. Developer and Developer Pro sandboxes have different storage limits.

D. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.

 

Which code in a Visualforce page and/or controller might present a security vulnerability?

A. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />

 

A Salesforce developer wants to review their code changes immediately and does not want to install anything on their computer or on the org.
Which tool is best suited?

A. Developer Console

 

Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds ^Decommissioned" as a picklist value for the Status__: custom field within the Contact__c object.
Which tool should the developer use to enforce only Container records with a status of "Decommissioned" can be deleted?

A. Apex trigger

 

AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object.
The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations.

What should a developer add to fulfill this requirement?

A. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c

 

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?
Choose 2 answers

  • B. The parent component can invoke a method in the child component.
  • C. The parent component can use a public property to pass the data to the child component.

 

 

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. Self-contained and reusable units of an application

D. Rich component ecosystem

 

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?

D. Add a new Create Records element.

 

 

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: . Total number of DML statements issued Most Voted

 

 

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers

  • B. Roll-up summaries Most Voted
  • D. Relationships Most Voted
  • E. Custom objects and fields Most Voted

 

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?

C. Public class DrawList implements Sortable, Drawable {
public void sort() { /*implementation*/}
public void draw() { /*implementation*/}
}

 

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.
Without writing unnecessary code, which controller should be used for this purpose?

A. Standard controller

 

 

 

 

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

B. Dev Hub

 

 

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers

B. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');

D. String nextPage - controller.save().getUrl();

E. Test.setCurrentPage(pageRef);

 

The following automations already exist on the Account object;
* A workflow rule that updates a field when a certain criteria is met
* A custom validation on a field
* A How that updates related contact records
A developer created a trigger on the Account object.
What should the developer consider while testing the trigger code?

B. The trigger may fire multiple times during a transaction.

 

A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?

A. After delete

 

Which three data types can be returned from an SOQL statement? (Choose three.)

A. Integer

C. Single sObject

D. List of sObjects

 

Which two queries can a developer use in a Visualforce controller to protect against SOQL injection vulnerabilities? Choose 2 answers

A. String qryName = % + name % ;
String qryString = SELECT Id FROM Contact WHERE Name LIKE:qryNAme ;
List queryResults = Database.query(qryString);

B. String qryName = % + String.escapeSingleQuotes(name)+ % ;
String qryString = SELECT Id FROM Contact WHERE Name LIKE :qryNAme ;
List queryResults = Database.query(qryString);

 

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

B. Use methods from the "Limits" class to monitor governor limits.

C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.

 

A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?

A. Use the seealldata=true annotation in each test class

 

In which three areas can a Lightning component be used in the Lightning Experience? (Choose three.)

C. Lightning Record Page

D. Lightning Community Page

E. Lightning Home page

 

 

What must the Controller for a Visulforce page utilized to override the standard Opportunity view button?

D. The Opportunity StandardController for pre-built functionality

 

A newly hired developer discovers that there are multiple triggers on the case object.
What should the developer consider when working with triggers?

D. Trigger execution order is not guaranteed for the same sObject.

 

Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements?

  • A. Master-Detail relationship

 

Which Apex collection is used to ensure that all values are unique?

B. A Set

 

The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults?
What is the recommended way to display field data from the related Review _C records a Vis

D. Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data.

 

Which two platform features allow for the use of unsupported languages? Choose 2 answers

B. Docker

C. Buildpacks

 

List<Account> acc = [select

2,150

 

If Apex code executes inside the execute()method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits? (Choose two.)

  • A. The Apex governor limits are reset for each iteration of the execute() method.
  • C. The Apex governor limits might be higher due to the asynchronous nature of the transaction.

 

Which three code lines are required to create a Lightning component on a Visualforce page? (Choose three.)

A. $Lightning.use C. $Lightning.createComponent E. <apex:includeLightning/>

 

What is a benefit of using a trigger framework?

A. Simplifies addition of context-specific logic

 

What are the eight officially supported languages on Heroku platform?

A. Node,Ruby java,PHP,Python,Go,Scala,Clojure.

 

Which three factors should a developer keep Hi mind when implementing the Apex method?
Choose 3 answers

A. The method must be defined as static.

B. The method must use the @Future annotation.

C. The method must be defined as public.

 

 

The following Apex method is part of the ContactServiceclass that is called from a trigger:

EMEA

 

 

A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user'sprofile and display this on a Visualforce Page?

B. {!$Setup.Url_Settings__C.URL__c}

 

 

What is the order of operations when a record is saved in Salesforce?

C. Triggers, workflow, process flows, commit

 

Which three declarative fields are correctly mapped to variable types in Apex?

B. Number maps to Decimal.

D. Date/Timemaps to Dateline.

E. Checkbox maps to Boolean.

 

A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses the
<apex:SelecList> component, with a variable called "selection", to show the valid values for Account.Type.

C. Use the onChange event to update the list of accounts in the controller when the value changes, and then re-render the pageBlockTable.

 

 

Which type of code represents the Model in the MVC architecture when using Apex and Visualforce pages?

B. A list of Account records returned from a Controller Extension method

 

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit? C. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.

 

Which three resources in a Lightning Component Bundle can contain JavaScript functions? Choose 3

B. Helper

C. Controller

D. Renderer

 

A developer wants to retrieve the Contacts and Users with the email address 'dev@uc.com'.
Which SOSL statement should the developer use?

B. FIND {dev@uc.com} IN Email Fields RETURNING Contact (Email), User (Email)

 

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?

 

 

D. Use the with sharing keyword on the class declaration.

 

 

A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?

A. @TestSetup

 

 

What are two uses for External IDs? (Choose two.)

A. To create relationships between records imported from an external system.

D. To prevent an import from creating duplicate records using Upsert

 

Universal Container uses Salesforce to create orders.
When an order is created, it needs to sync with the-in-house order fulfillment system. The order fulfillment system can accept SOAP messages over the HTTPS. If the connection fails, messages should be retried for up to 24 hours.

A. Create an after insert trigger on the Order object to make a callout to the order fulfilment system

 

Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)

B. Namespace

C. Time

 

 

When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers.

A. A process builder on the Account object D. An Apex trigger on the Account object.

 

What is the maximum number of SOQL queries used by the following code? List<Account> aList =
[SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }

6

 

A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)

A. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().

C. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().

 

Which two statements are true about Getter and Setter methods as they relate to Visualforce?

C. A corresponding Setter method is required for each Getter method.

D. Getter methods pass values from a controller to a page.

 

Which two are phases in the Salesforce Application Event propagation framework? (Choose two.)

B. Default

C. Bubble

 

What is an important consideration when developing in a multi-tenant environment?

B. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.

 

Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

A. Event Monitoring Log

 

 

A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce.
Which two actions will prevent the duplicate order records from being created in Salesforce?

B. Write a before trigger on the order object to delete any duplicates.

C. Ensure that the order number in the OMS is unique.

 

A developer uses a loop to check each Contact in a list. When a Contact with the Title of 'Boss' is found, the Apex method should jump to the first line of code outside of the for loop.
Which Apex solution will let the developer implement this requirement?

C. break;

 

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available.
Which method should be used to calculate the estimated ship date for an Order?

B. Use a MAX Roll-Up Summary field on the latest availability date fields.

What can be used to override the Account's standard Edit button for Lightning Experience? B. Lightning component

 

Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner? D. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.

On which object can an administrator create a roll-up summary field?

D. Any object that is on the master side of a master-detail relationship.

As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted.
Which automation tool should be used to meet this business requirement? D. Record-Triggered Flow

B. Use the escapeSingleQuotes method to sanitize the parameter before its us

. Use variable binding and replace the dynamic query with a static SOQL. 

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<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

 

What is the data type returned by the following SOSL search? {FIND 'Acme*' in name fields returning account,opportunity};

A. List<List<sObject>>

 

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

D. Create a test class that provides coverage of the customcontroller.

 

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.

A. Create a static resource containing test data.

C. Use Test.loadData to populate data in your test methods.

 

 

How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex? B. By using the isCreatable() method.

 

Which three tools can deploy metadata to production? (Choose three.)

B. Force.com IDE 

  • D. Change Set from Sandbox Most Voted
  • E. Metadata API Most Voted
  •  

Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two

sObject  .) String 

 

 

A developer has the controller class below. myFooControll

 myFooController m = new myFooController();System.assert(m.prop ==null);

 

As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows.

A. Use visual keyword when declaring the retrieve variable.

B. Use a SOQL FOR loop, to chunk the result set in batches of 200 records.

 

A change set deployment from a sandbox to production fails due to a failure in a managed package unit test.
The developer spoke with the manager package owner and they determined it is a false positive and can be ignored. What should the developer do to successfully deploy?

D. Select 'Run local tests' to run all tests in the org that are not in the managed package.

 

Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites? B. Data Import Wizard

 

Which statement is true about a hierarchical relationship as it pertains to user records?

C. It uses a special lookup relationship to allow one user record to be related to another user record

 

What are three characteristics of change set deployments? (Choose three.)

C. They use an all or none deployment model.

D. They require a deployment connection.

E. They can be used only between related organizations.

 

A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

D. Use a custom controller that has the with sharing keywords.

 

 

What is a valid statement about Apex classes and interfaces? Choose 2 answers:

C. The default modifier for an interface is private.

D. Exception classes must end with the word exception.

 

 

Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c.
Users should be able to associate multiple engineering_Support__c records to a single Opportunity record.

 

C. Master-detail field from Engineering_Support__c to Opportunity.

 

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<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

B. Use the escapeSingleQuote method to sanitize the parameter before its use.

C. Use variable binding and replace the dynamic query with a static SOQL.

 

 

Which two statements are true about Apex code executed in Anonymous Blocks? (Choose two.)

A. Successful DML operations are automatically committed.

E. The code runs with the permissions of the logged in user.

 

Why would a developer consider using a custom controller over a controller extension?

C. To implement all of the logic for a page and bypass default Salesforce functionality

 

 

Which control statement should a developer use to ensure that a loop body executes at least once?

A. do {...} while (condition)

 

Which two are best practices when it comes to component and application event handling? (Choose two.)

 

B. Handle low-level events in the event handler and re-fire them as higher-level events

D. Reuse the event logic in a component bundle, by putting the logic in the helper

 

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class. B. Create a test class and methods to cover the Apex trigger.

 

Which exception type cannot be caught ? C. LimitException

 

A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo. Which is the correct definition of the Apex method that gets additional information?

C. @invocableMethod(label)='Additional Info')
public static List<ContactInfo> getInfo(List<Id> contactIds)
{ /*Implementation*/ }

 

 

A company has a custom object named Region. Each Account in Salesforce can only be related to one Region at a time, but this relationship is optional.
Which type of relationship should a developer use to relate an Account to a Region?

Lookup

 

A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?

A. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard.

 

A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?

B. Schema isAccessible() method.

 

 

A developer can use the debug log to see which three types of information? Choose 3 answers

A. HTTP callout to external systems

B. Database changes E. Resource usage and limits

 

 

Which two are true regarding a Dyno? Choose 2 answers

A. Has Ephemeral filesystems and is rebooted every 24 hours.

C. Is a lightweight Linux container used in a collection to run Heroku applications

 

 

Which two condition cause workflow rules to fire? Choose 2 answers

B. An Apex batch process that changes field values

D. Updating record using bulk API

What should a developer use to script the deployment and unit test execution as part of continuous integration?

B. Salesforce CLI

 

Which scenario is valid for execution by unit tests?

A. Set the created date of a record using a system method.

 

Which two components are available to deploy using the Metadata API? (Choose two.)

A. Lead Conversion Settings D. Case Settings

 

A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe)
{System.debug('
NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged?

A. NullPointer Exception

A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)

B. SOQL query row limit exception due to the number of contacts.

 

D. SOQL query row limit exception due to the number of accounts.

Universal Containers (UC) decided it will not send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error.
What is the appropriate publish/subscribe logic to meet these requirements?

A. Publish the error event using the Eventbus.publish()method and have the external system subscribe to the event using CometD.

 

A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard.
Which approach should the developer use to accomplish this declaratively?

B. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard

Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master- Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the Master-Detail relationship to a Lookup relationship but was not able todo so. What is apossible reason that this change was not permitted? B. The Account records contain Vendor roll-up summary fields.

 

Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job.
What should a developer implement to represent that an applicant has applied for a job?

 

 

D. Master-detail field from Applicant to Job

 

 

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?

D. Implement pagination with a StandardSetController,

 

 

Which statement should a developer avoid using inside procedural loops? (Choose 2)

A. Update contactList;

C. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId =
:a.Id];

 

 

What are two use cases for executing Anonymous Apex code? Choose 2 answers

A. To schedule an Apex class to run periodically C. To run a batch Apex class to update all Contacts

Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions() );

A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1'));

 

myFoo

B. System.assert(m.prop ==null);
myFooController m = new myFooController();

 

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

C. Static resources

 

How can a developer get all of the available record types for the current user on the case object?

A. Use DescribeSObjectResult of the Case object. 

 

 

What are the supported content sources for custom buttons and links? (Choose 2 Answers)

. URL. E. VisualForce Page.

 

Universal Containers requires Service Representatives to update all Cases at least one every three days.
To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?

A. Formula field

 

 

Which three statements are true regarding trace flags? (Choose three.)

A. Trace flags override logging levels.

B. Trace flags can be set in the Developer Console, Setup, or using the Tooling API.

C. If active trace flags are not set, Apex tests execute with default logging levels.

 

 

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases.
Which approach can efficiently generate the required data for each unit test?

C. Use @TestSetup with a viod method.

 

 

 

2 A developer runs the following anonymous code block:List<Account> acc = [SELECT Id FROM Account LIMIT 10];Delete acc;Database.emptyRecycleBin(acc);system.debug(Limits.getDMLStatements()+ ', '
+Limits.getLimitDMLStatements());What is the result?,

2 150

A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? Choose 2 answers.

A. Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().

D. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().

 

 

An org has an existing Visual Flow that creates an Opportunity with an Update records element. A developer must update the Visual Flow also created a Contact and store the created Contact's ID on the Opportunity.

 

D. Add a new Create records element.

 

 

Which two statements are true about using the @testSetup annotation in an Apex test class?
Choose 2 answers

A. Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used.

B. A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.

 

What is accurate statement about with sharing keyword? Choose 2 answers

A. Inner classes do not inherit the sharing settings from the container class

 Both inner and outer classes can be declared as with sharing

 

Which two platform features align to the Controller portion of MVC architecture? (Choose two.)

C. Workflow rules

D. Process Builder actions

 

 

Which control statement should a developer use to ensure that a loop body executes at least once?

A. Do {} while (cond)

 

 

Which set of roll-up types are available when creating a roll-up summary field?

A. COUNT, SUM, MIN, MAX

 

Which code segment can be used to control when the dowork() method is called?

A. If(Trigger.isInsert) dowork();

 

 

 

To which primitive data type is a text area (rich) field automatically assigne

String

 

 

A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List<Case> childCases = new List<Case>();for (Case parent : Trigger.new){Case child = new Case (ParentId = parent.Id, Subject = parent.Subject);childCases.add(child);}insert childCases; What happens after the code block executes?

 

 

D. Child case is created for each parent case in Trigger.new.

 

 

Which tool can deploy destructive changes to Apex classes in production? Workbench

 

Which three web technologies can be integrated into a Visualforce page? (Choose three.)

A. JavaScript

B. HTML

C. CSS

 

 

Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?

A. The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.

 

 

 

total A developer created these three Rollup Summary fields in the custom object, Project_ct,

C. Formula field

 

A developer created a lightning component name accountList.cmp that display a list of Accounts. Client-side logic that is executed when a user hovers over an account in the list should be stored in which bundle member?

A. AccountListRenderer.js

 

 

In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?

C. On the Paused Row Interviews component on the Home page

 

 

A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?

 

 

 

D. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.

 

 

How many levels of child records can be returned in a single SOQL query from one parent object?

5

 

A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which
<apex:page> attribute(s) to correctly implement controller functionality?

B. StandardController = "case" and extensions =" myControllerExtension"

 

 

Which two operations can be performed using a formula field? Choose 2 answers

C. Calculating a score on a Lead based on the information from another field (Missed)

D. Displaying an Image based on the Opportunity Amount (Missed)

 

A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?

A. Scratch orgs

 

 

Which statement is true about developing in a multi-tenant environment?

C. Governor limits prevent apex from impactiong the performance of multiple tenants on the same instance

 

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)

A. Execute a SOQL query on the RecordType object.

C. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.