Labour Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

PDI Sample Questions Answers

Questions 4

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

Options:

A.

B.

C.

D.

Buy Now
Questions 5

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.

Buy Now
Questions 6

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

Options:

A.

Use the @isTest(isParallel=true) annotation in the test class.

B.

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

C.

Use the @isTest(seeAllData=true) annotation in the test class.

D.

Create a static resource containing test data.

Buy Now
Questions 7

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

Buy Now
Questions 8

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

Buy Now
Questions 9

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.

Buy Now
Questions 10

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*/ }

}

Buy Now
Questions 11

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

Buy Now
Questions 12

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.

Buy Now
Questions 13

A developer has the following requirements:

• Calculate the total amount on an Order.

• Calculate the line amount for each Line Item based on quantity selected and price.

• Move Line Items to a different Order if a Line Item is not in stock.

Which relationship implementation supports these requirements on its own7

Options:

A.

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

B.

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

C.

Line Item has a re-parentable lookup field to Order.

D.

Order has a re-parentable lookup field to Line Item.

Buy Now
Questions 14

Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page.

If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system.

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

Choose 3 answers

Options:

A.

The method must use the @AuraEnabled annotation.

B.

The method must use the @Future annotation.

C.

The method must use the @invocableMethod annotation.

D.

The method must be defined as static.

E.

The method must be defined as public.

Buy Now
Questions 15

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*/ }

Buy Now
Questions 16

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.

Which approach should the developer use to be sure that the Apex class is working according tospecification?

Options:

A.

Create a test class to execute the business logic and run the test in the Developer Console.

B.

Include a savepoint and Database,rollback.

C.

Include a try/catch block to the Apex class.

D.

Run the code in an Execute Anonymous block n the Deceloper Consider.

Buy Now
Questions 17

A developer creates a custom exception as shown below:

public class ParityException extends Exception {}

What are two ways the developer can fire the exception in Apex?

Choose 2 answers

Options:

A.

new ParityException();:

B.

throw new ParityException("parity does not match");

C.

new ParityException('parity does not match');

D.

throw new ParityException();

Buy Now
Questions 18

While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?

Options:

A.

The test method has a syntax error In the code.

B.

The test method does not use System. rurAs to execute as a specific user.

C.

The test method Is calling an future method.

D.

The test method relies on existing data in the sandbox.

Buy Now
Questions 19

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

Buy Now
Questions 20

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

Options:

A.

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

B.

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

C.

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

D.

View the Class test Percentage tab on the Apex Class list view in Salesforce Setup.

Buy Now
Questions 21

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

Options:

A.

Metadata APT

B.

Bulk API

C.

Setup Menu

D.

SalesforceDX

E.

Tooling API

Buy Now
Questions 22

Which action may cause triggers to fire?

Options:

A.

Updates to Feed Items

B.

Renaming or replacing a picklist entry

C.

Changing a user's default division when the transfer division option is checked

D.

Cascading delete operations

Buy Now
Questions 23

A company has a custom object, Order__c, that has a required, unique external ID field called OrderNumber__c.

Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of order__c records

using the external ID field?

Options:

A.

B.

C.

D.

Buy Now
Questions 24

A developer needs to prevent the creation of Request__c records when certain coVraitions exist in the system. A RequeatLogic class exists that checks the conditions.

What is the correct implementation?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 25

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.

Buy Now
Questions 26

How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?

Options:

A.

B.

C.

D.

Buy Now
Questions 27

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

Buy Now
Questions 28

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.

Buy Now
Questions 29

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.

Buy Now
Questions 30

Given the following Anonymous Block:

Which one do you like?

What should a developer consider for an environment that has over 10,000 Case records?

Options:

A.

The transaction will fail due to exceeding the governor limit.

B.

The try/catch block will handle any DML exceptions thrown.

C.

The transaction will succeed and changes will be committed.

D.

The try/catch block will handle exceptions thrown by governor limits.

Buy Now
Questions 31

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

Buy Now
Questions 32

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors.

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

Options:

A.

Deactivate the trigger before the integration runs.

B.

Use a try-catch block after the insert statement.

C.

Remove the Apex class from the integration user's profile.

D.

Use the Database method with all or None set to false

Buy Now
Questions 33

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?

Options:

A.

Declare maxattempts as a member variable on the trigger definition.

B.

Declare maxattempts as a private static variable on a helper class

C.

Declare maxattempts as a constant using the static and final keywords

D.

Declare maxattempts as a variable on a helper class

Buy Now
Questions 34

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.

Buy Now
Questions 35

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.

Buy Now
Questions 36

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?

Options:

A.

Use the schema describe calls to determine if the logged-in users has access to the Account object.

B.

Use the without sharing keyword on the class declaration.

C.

Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

D.

Use the with sharing keyword on the class declaration.

Buy Now
Questions 37

A developer is implementing an Apex class for a financial system. Within the class, the

variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is

assigned. In which two ways can the developer declare the variables to ensure their value

can only be assigned one time? Choose 2 answers

Options:

A.

Use the static keyword and assign its value in the class constructor.

B.

Use the final keyword and assign its value in the class constructor.

C.

Use the static keyword and assign its value in a static initializer.

D.

Use the final keyword and assign its value when declaring the variable.

Buy Now
Questions 38

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?

Options:

A.

Exception

B.

Messaging

C.

OrgLimits

D.

Limits

Buy Now
Questions 39

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?

Options:

A.

@isTest (SeeAllData-true)

B.

@FreTest

C.

@TestSetup

D.

@StartTest

Buy Now
Questions 40

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?

Options:

A.

Use Lazy loading and a transient List variable.

B.

Use JavaScript remoting with SOQL Offset.

C.

Implement pagination with an OffsetController.

D.

Implement pagination with a StandardSetController,

Buy Now
Questions 41

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.

Buy Now
Questions 42

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?

Options:

A.

Record triggered flows

B.

Apex triggers

C.

Validation rules

D.

Quick Actions

Buy Now
Questions 43

Which exception type cannot be caught?

Options:

A.

B.

C.

D.

Buy Now
Questions 44

Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?

Options:

A.

Use the Data Loader command line.

B.

Create a Schedulable Apex class.

C.

Schedule a report.

D.

Define a Data Export scheduled job.

Buy Now
Questions 45

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

Buy Now
Questions 46

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

Options:

A.

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

B.

Process builder can be used to check the record criteria and send an outbound message with Apex Code.

C.

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

D.

Process builder can be used to check the record criteria and send an outbound messagewithout Apex Code.

E.

Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.

Buy Now
Questions 47

Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI).

What should the UC development team use to automatically run tests as part of their CI process?

Options:

A.

Force.com Toolkit

B.

Salesforce CLI

C.

Visual Studio Code

D.

Developer Console

Buy Now
Questions 48

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.

Which two actions should the developer take to fix the code segment shown above?

Choose 2 answers

Options:

A.

Check if all the required fields for Opportunity are being added on creation.

B.

Use Database.query to query the opportunities.

C.

Move the DML that saves opportunities outside the for loop.

D.

Query for existing opportunities outside the for loop.

Buy Now
Questions 49

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?

Options:

A.

1

B.

3

C.

4

D.

2

Buy Now
Questions 50

What are three characteristics of change set deployments?

Choose 3 answers

Options:

A.

Change sets can only be used between related organizations.

B.

Change sets can be used to transfer records.

C.

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

D.

Change sets can deploy custom settings data.

E.

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

Buy Now
Questions 51

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?

Options:

A.

Roll-up summary field

B.

Quick action

C.

Apex trigger

D.

Formula field

Buy Now
Questions 52

Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.

In the first steps of collecting information, UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce.

Which two should a developer implement to satisfy the requirements?

Choose2 answer

Options:

A.

Flow

B.

Future method

C.

Trigger

D.

Invocable method

Buy Now
Questions 53

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.

Buy Now
Questions 54

A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner.

What is the most efficient way for a developer to implement this?

Options:

A.

Auto-launched flow on Task

B.

Apex trigger on Task

C.

Task actions

D.

Record-trigger flow on Opportunity

Buy Now
Questions 55

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?

Options:

A.

Flow Builder

B.

Approvals

C.

Apex trigger

D.

Einstein Next Best Action

Buy Now
Questions 56

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.

Buy Now
Questions 57

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?

Options:

A.

Fire a notification.

B.

Update a property on the parent.

C.

Call a method in the Apex controller.

D.

Create a custom event.

Buy Now
Questions 58

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

Options:

A.

Self-contained and reusable units of an application

B.

Rich component ecosystem

C.

Automatic code generation

D.

Server-side run-time debugging

Buy Now
Questions 59

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

Options:

A.

Roll-Up Summaries

B.

Triggers

C.

Relationships

D.

Flow

E.

Custom Objects and Fields

Buy Now
Questions 60

A developer deployed a trigger to update the status__c of Assets related to an Account when the Account’'s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.

What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?

Options:

A.

Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.

B.

Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.

C.

Move all of the logic to a Queueable class that queries for and updates the Assets and call it from the trigger.

D.

Add List assets = [SELECT Id, Status__c FROM Asset WHERE AccountId = :acctId] to line 14 and iterate over the assets list in the for loop on line 15.

Buy Now
Questions 61

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

Buy Now
Questions 62

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.

Buy Now
Questions 63

What should be used to create scratch orgs?

Options:

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Buy Now
Questions 64

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.

Buy Now
Questions 65

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.

Questions 66

Which annotation exposes an Apex class as a RESTful web service?

Options:

A.

B.

C.

D.

Buy Now
Questions 67

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.

Buy Now
Questions 68

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?

Options:

A.

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

B.

The deployment tails because no assertions mett made in the lest method.

C.

The deployment passes became the Apex code has the requited 75% code coverage.

D.

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

Buy Now
Questions 69

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?

Options:

A.

Add a new Get Records element.

B.

Add a new Create Records element.

C.

Add a new Update Records element.

D.

Add a new Roll back Records element

Buy Now
Questions 70

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Options:

A.

Implement the upsert DML statement.

B.

Implement Change Data Capture.

C.

Implement a try/catch block for the DML.

D.

Remove null items from the list of Accounts.

Buy Now
Exam Code: PDI
Exam Name: Platform Developer I (SP24)
Last Update: Apr 25, 2024
Questions: 235
$64  $159.99
$48  $119.99
$40  $99.99
buy now PDI