Summer Sale 60% Special Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best60

Salesforce PDI Platform Developer I (SP23) Exam Practice Test

Page: 1 / 24
Total 235 questions

Platform Developer I (SP23) Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$48  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$42  $104.99
Question 1

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

Options:

A.

Developer Console

B.

VS Code

C.

Force.com IDE

D.

Execute Anonymous

Question 2

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?

Options:

A.

A roll-up summary field on the sales Help_Request__c object

B.

A trigger on the Opportunity object

C.

A roll-up summary field on the Opportunity object

D.

A record-triggered flow on the Sales Help Request__c object

Question 3

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.

What is the most efficient way to ensure that the Total job_o field kept up to data?

Options:

A.

Change TotalJob_o to a roll-up summary field.

B.

Create a record-triggered flow on ServiceJob_o.

C.

Create an Apex trigger on ServiceJob_o.

D.

Create a schedule-triggered flow on ServiceJob_o.

Question 4

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?

Options:

A.

Change the master-detail relationship to an external lookup relationship.

B.

Add without sharing to the Apex class declaration.

C.

Create a junction object between Orderltem and Order.

D.

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

Question 5

What are two considerations for running a flow in debug mode?

Choose 2 answers

Options:

A.

Callouts to external systems are not executed when debugging a flow.

B.

Clicking Pause or executing a Pause element closes the flow and ends debugging.

C.

Input variables of type record cannot be passed into the flow,

D.

DML operations will be rolled back when the debugging ends.

Question 6

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

Options:

A.

Forced: data:bulk:upsert

B.

Forced: data: object :upsert

C.

Forced: data: tree: upsert

D.

Forced: data:async:upsert

Question 7

A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth

exceeded’,

What could be the possible causes?

Options:

A.

The developer does not have the correct user permission.

B.

The trigger is getting executed multiple times.

C.

The trigger is a a helper class.

D.

The trigger does not have sufficient code coverage.

Question 8

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

Options:

A.

Bulk API

B.

Tooling API

C.

Setup Menu

D.

Salesforce DX

E.

Metadata API.

Question 9

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?

Options:

A.

A record trigger flow on the Opportunity object

B.

An Apex trigger on the Opportunity object

C.

approval process on the Opportunity object

D.

An error condition formula on a validation rule on Opportunity

Question 10

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

Options:

A.

Upload the SVG as a static resource.

B.

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

C.

Reference the getter in the HTML template.

D.

Reference the import in the HTML template.

E.

Import the SVG as a content asset file.

Question 11

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

Options:

A.

View the Code Coverage column in the list view on the Apex Classes page.

B.

View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.

C.

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

D.

Select and run the class on the Apex Test Execution page in the Developer Console.

Question 12

As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.

Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers

Options:

A.

Aura Components

B.

Vlsualforce Components

C.

Lightning Web Components

D.

Visualforce Pages

Question 13

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?

Options:

A.

Use a CEILING formula on each of the Latest availability date fields.

B.

Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.

C.

Use a LATEST formula on each of the latest availability date fields.

D.

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

Question 14

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

Options:

A.

Sharing rules will not be enforced for the running user.

B.

Sharing rules will be Inherited from the calling context.

C.

Sharing rules will be enforced by the instantiating class.

D.

Sharing rules will be enforced for the running user.

Question 15

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

Options:

A.

Use if (Schema, sobjectType, Contact, isUpdatable ( ) )

B.

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

C.

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

D.

Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Question 16

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

Options:

A.

All triggers must have at least 1% test coverage.

B.

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

C.

All triggers must have at least 75% test coverage.

D.

All test and triggers must have at least 75% test coverage combined

Question 17

Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers

Options:

A.

Apex Flex Queue

B.

Apex Jobs

C.

Paused Flow Interviews component

D.

Time-Based Workflow Monitor

Question 18

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

Options:

A.

B.

C.

D.

Question 19

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

Options:

A.

Use partial DML statements to ensure only valid data is committed.

B.

Use the System,Limit classto monitor the current CPU governor limit consumption.

C.

Use the Database,Savepoint method to enforce database integrity.

D.

D. Use the Reedonly annotation to bypass the number of rows returned by a SOQL.

Question 20

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?

Options:

A.

Developer sandboxes

B.

Scratch orgs

C.

Full Copy sandboxes

D.

Developer orgs

Question 21

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

Options:

A.

Tooling API

B.

Developer console

C.

Bulk API

D.

Matadata API

Question 22

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?

Options:

A.

Master-detail field from Applicant to Job

B.

Formula field on Applicant that references Job

C.

Junction object between Applicant and Job

D.

Lookup field from Applicant to Job

Question 23

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.

What is the best solution to assign the case to the appropriate support representative?

Options:

A.

Use a trigger an the Case object.

B.

Use a formula field on the case object.

C.

Use a validation rule on the Case object.

D.

Use an Assignment Flow element.

Question 24

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?

Options:

A.

bubbles: tnje, composed: false

B.

bubbles: true, composed: true

C.

bubbles: false, composed: false

D.

bubbles: false, composed: true

Question 25

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?

Options:

A.

Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.

B.

Rewrite all Visualforce pages asLightning components.

C.

Set the attribute enableLightning to true in the definition.

D.

Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.

Question 26

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?

Options:

A.

@AuraEnabled(cacheable=true)

public static List search(String term) { /* implementation*/ }

B.

@AuraEnabled(cacheable=true) public List search(String term) { /*implementation*/ }

C.

@AuraEnabled(cacheable=false) public static List search(String term) { /*implementation*/ }

D.

@AuraEnabled(cacheable=false) public List search(String term) { /*implementation*/ }

Question 27

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

Options:

A.

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

B.

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

C.

Use a regular expression on the parameter to remove special characters.

D.

Use the @Readonly annotation and the with sharing keyword on the class.

Question 28

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?

Choose 2 answers

Options:

A.

VS Code

B.

SFDX CLI

C.

Change Sets

D.

Developer Console

Question 29

Universal Container* decides to use purely declarative development to build out a new Salesforce application.

Which two options can be used to build out the business logic layer for this application?

Choose 2 answer

Options:

A.

Validation Rules

B.

Remote Actions

C.

Record- Triggered flow

D.

Batch Jobs

Question 30

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?

Options:

A.

Record-triggered Flow

B.

Formula field

C.

Apex Trigger

D.

Process Builder

Question 31

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

Options:

A.

Renclerer

B.

Style

C.

Helper

D.

Controller

E.

Design

Question 32

A developer created a Lightning web component called statusComponent to be inserted into the Account record page.

Which two things should the developer do to make the component available?

Options:

A.

Add true to the statusComponent.js-meta ml file.

B.

Add lighting _RecordPage to the statusComponent.js-meta ml file.

C.

Add < masterLabel>Account to the statusComponent.js-meta ml file.

D.

Add Lightning_RecordPage to the statusComponent.js file.

Question 33

Which salesforce org has a complete duplicate copy of the production org including data and configuration?

Options:

A.

Developer Pro Sandbox

B.

Partial Copy Sandbox

C.

Production

D.

Full Sandbox

Question 34

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?

Options:

A.

B.

C.

D.

Question 35

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.

Which Visualforce feature supports this requirement?

Options:

A.

B.

C.

D.

Question 36

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?

Options:

A.

Public class CreditcardPayment extends Payment {

public override void makePayment(Decimal amount) { /*implementation*/ }

}

B.

Public class CreditCardPayment implements Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

C.

Public class CreditCardPayment extends Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

D.

Public class CreditCardPayment implements Payment {

public override void makePayment(Decimal amount) { /*Implementation*/ }

}

Question 37

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?

Options:

A.

Share the Case_Defect_c record.

B.

Share the parent Case record.

C.

Share the parent Defect_c record.

D.

Share the parent Case and Defect_c records.

Question 38

A developer created a trigger on a custom object. This custom object also has some dependent pick lists.

According to the order of execution rules, which step happens first?

Options:

A.

System validation is run for maximum field lengths.

B.

The original record is loaded from the database.

C.

Old values are overwritten with the new record values,

D.

JavaScript validation is run In the browser.

Question 39

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 getOpportunityProducts(Set opportunityIds){ List oppLineItems = new List(); 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?

Options:

A.

Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.

B.

Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.

C.

Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.

D.

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

Question 40

Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage.

How should a develoiper accomplish this?

Options:

A.

Use the Process Automation setting.

B.

Mark fields as read-only on the page layout.

C.

Use flow Builder

D.

Use a validation rule.

Question 41

A developer needs to create a baseline set of data (Account, Contacts, Products, Assets) for an entire suite allowing them to test independent requirements for various types of Salesforce Cases.

Which approach can efficiently generate the required data for each unit test?

Options:

A.

Use &TestSteup with a void method.

B.

Create test data before Test.startTest in the unit test.

C.

Create a mock using the Stub APL.

D.

Add $ IsTest (seeAllDatatrue) at the start of the unit test class.

Question 42

A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.

Which annotation should the developer add to the Apex method to achieve this?

A)

B)

C)

D)

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 43

Consider the following code snippet:

Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful execution of the method?

Options:

A.

Avoid executing queries without a limit clause.

B.

Avoid returning an empty List of records.

C.

Avoid using variables as query filters.

D.

Avoid performing queries inside for loops.

Question 44

What is the value of the Trigger.old context variable in a before insert trigger?

Options:

A.

A list of newly created sObjects without IDs

B.

null

C.

Undefined

D.

An empty list of sObjects

Question 45

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?

Options:

A.

Set "Use the first value in the list as the default value" as True.

B.

Set a validation rule to enforce a value is selected.

C.

Mark the field as Required on the field definition.

D.

Mark the field as Required on the object's page layout.

Question 46

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

Choose 3 answers

Options:

A.

SVG resources

B.

Third-party web components

C.

Content asset files

D.

Static resources

E.

All external libraries

Question 47

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?

Options:

A.

Data Loader runs from the developer's browser.

B.

Data Import Wizard does not support Opportunities.

C.

Data Loader automatically relates Opportunities to Accounts.

D.

Data Import Wizard cannot import all 500 records.

Question 48

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?

Options:

A.

Account custom trigger

B.

Account approval process

C.

Account assignment rule

D.

Account workflow rule

Question 49

A developer created this Apex trigger that calls Myclass.myStaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage.

What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?

Options:

A.

The deployment passes because both classes and the trigger were included in the deployment.

B.

The deployment fails because no assertions were made in the test method.

C.

The deployment passes because the Apex code has the required >75% code coverage.

D.

The deployment fails because the Apex trigger has no code coverage.

Question 50

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?

Options:

A.

Create a flow to execjte the query and invoke from the Lightning component

B.

Write the query in a custom Lightning web component wrapper ana invoke from the Lightning component,

C.

Invoke an Apex class with the method annotated as &AuraEnabled to perform the query.

D.

Use the Salesforce Streaming API to perform the SOQL query.

Question 51

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

Options:

A.

List> searchList = [SELECT Name, ID FROM Contact, Lead WHERE Name like "tACME3"];

B.

List> searchList = [FIND '*ACME*" IN ALL FIELDS RETURNING Contact, Lead];

C.

Map searchList = [FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead];

D.

List searchList = [FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead];

Question 52

For which three items can a trace flag be configured?

Choose 3 answers

Options:

A.

Process Builder

B.

Visualforce

C.

Apex Class

D.

Apex Trigger

E.

User

Question 53

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?

Options:

A.

Add cuatom controller attributes to display the message.

B.

Include on the Visualforce page.

C.

Use a try/catch with a custom exception class.

D.

Perform the DML using the Database.upsert() method.

Question 54

A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

Options:

A.

VSCode

B.

Change Sets

C.

SFDX CLI

D.

Developer Console

Question 55

Universal Container wants Opportunities to no longer be editable when itreaches the Closed/Won stage. Which two strategies can a developer use to accomplish this?

Choose2 answer

Options:

A.

Use a validation

B.

Use a trigger

C.

Use an after-save flow.

D.

Use the Process Automation settings.

Question 56

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?

Options:

A.

Workflow Rules

B.

Scheduled job

C.

Record-Triggered Flow

D.

Process Builder

Question 57

niversal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with

of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC's enterprise resource planning (ERP) system.

‘After the status for an Craer__c is first set to "Placed’, the order information must be sent to a REST endpoint in the ERP system that can

process ne order at a time.

What should the developer implement to accomplish this?

Options:

A.

Callout from an §urare method called from a trigger

B.

Callout from a Sarchabie class called from a scheduled job

C.

Flow with 2 callout from an invocable method

D.

Callout from a queseatie class called from a trigger

Question 58

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

Options:

A.

ernit()

B.

fireEvent()

C.

fire()

D.

registerEvent()

Question 59

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

What would be the best solution for this requirement?

Options:

A.

Submit a REST API Callojt with a JSON payload and validate the f elds on a third patty system

B.

Use an Approval Process to enforce tne completion of a valid email address using an outbound message action.

C.

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If it Is invalid

D.

Use a custom Lightning web component to make a callout to validate the fields on a third party system.

Question 60

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?

Options:

A.

Create the Picklist on each object and use a Global Picklist Value Set containing the Values.

B.

Create the Picklist on each object as a required field and select "Display values alphabeticaly, not in the order entered".

C.

Create the Picklist on each object and select "Restrict picklist to the values defined in the value set".

D.

Create the Picklist on each and add a validation rule to ensure data integrity.

Question 61

A team of many developers work in their own individual orgs that have the same configuration as the production org.

Which type of org is best suited for this scenario?

Options:

A.

Full Sandbox

B.

Developer Edition

C.

Partner Developer Edition

D.

Developer Sandbox

Question 62

A developer is tasked with building a custom Lightning web component to collect Contact information.

The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users.

What should the developer use in their Lightning Web Component to support the security requirements?

Options:

A.

force-input-field

B.

ui-input-field

C.

aura-input-field

D.

lightning-input-field

Question 63

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?

Options:

A.

Build a flow with flow Builder.

B.

Build an account assignment rule.

C.

Create a formula field.

D.

Create an account approval process.

Question 64

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?

Options:

A.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'

B.

SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'

C.

SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'

D.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'

Question 65

What can be easily developed using the Lightning Component framework?

Options:

A.

Customized JavaScript buttons

B.

Salesforce Classic user Interface pages

C.

Lightning Pages

D.

Salesforce integrations

Question 66

What are two considerations for deploying from a sandbox to production?

Choose 2 answers

Options:

A.

Should deploy during business hours to ensure feedback can be Quickly addressed

B.

All triggers must have at least one line of test coverage.

C.

At least 75% of Aptx code must be covered by unit tests.

D.

Unit tests must have calls to the System.assert method.

Question 67

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?

Options:

A.

Order_shipment_Group_c object and master-detail field on order_Line_c

B.

Order_shipment_Group_c object and master-detail field on order_c

C.

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

D.

Order_shipment_Group_c object and master-detail field on order_shipment_Group_c

Question 68

An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.

How can this be achieved?

Options:

A.

Write a trigger on the child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity.

B.

Write a Process Builder that links the custom object to the Opportunity.

C.

Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity

D.

Use the Streaming API to create real-time roll-up summaries.

Question 69

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.

Additionally, aggregate Information about the Engineering_support__c records should be shown on the

Opportunity record.

What should a developer Implement to support these requirements?

Options:

A.

Master-detail field from Engineering_Support__c to Opportunity.

B.

Master-detail field from Opportunity to Engineering_Support__c

C.

Lookup field from Engineering_support__c to Opportunity

D.

Lookup field from Opportunity to Engineering_Support__c

Question 70

A developer is asked to write helper methods that create test data for unit tests.

What should be changed in the Testvtils class so that its methods are only usable by unit test methods?

Options:

A.

Change public to private on line 01.

B.

Add @IsTest above line 03,

C.

Add @IsTest above line 01.

D.

Remove static from line 03.

Page: 1 / 24
Total 235 questions