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

Good News !!! PDII Salesforce Certified Platform Developer II (WI24) is now Stable and With Pass Result

PDII Practice Exam Questions and Answers

Salesforce Certified Platform Developer II (WI24)

Last Update 1 day ago
Total Questions : 196

PDII is stable now with all latest exam questions are added 1 day ago. Just download our Full package and start your journey with Salesforce Certified Platform Developer II (WI24) certification. All these Salesforce PDII practice exam questions are real and verified by our Experts in the related industry fields.

PDII PDF

PDII PDF (Printable)
$48
$119.99

PDII Testing Engine

PDII PDF (Printable)
$56
$139.99

PDII PDF + Testing Engine

PDII PDF (Printable)
$70.8
$176.99
Question # 1

A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours.

Which two steps should a developer take to accomplish this?

Choose 2 answers

Options:

A.  

Use the @future annotation on the method that performs the aggregate calculation.

B.  

Implement the schedulable Interface In the class that contains the aggregate calculation method.

C.  

Use the areadOnly annotation on the method that performs the aggregate calculation.

D.  

Implement the Queuable Interface in the class that contains the aggregate calculation method.

Discussion 0
Question # 2

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?

Options:

A.  

Upload a third-party data table library as a static resource.

B.  

Use JavaScript remoting to query the accounts.

C.  

Use the standard Account List controller and implement pagination.

D.  

Use the transient keyword in the Apex code when querying the Account records.

Discussion 0
Question # 3

Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?

Options:

A.  

The callout needs to be asynchronous.

B.  

The callout needs to be invoked from a Workflow Rule.

C.  

The Target system uses a REST API.

D.  

The Target system uses a SOAP API.

Discussion 0
Question # 4

Universal Containers (UC) currently does not development in its full copy sandbox.

Recently, UC has projects that require multiple developers to develop concurrently. UC is running into issues with developers making changes that cause errors In work done by other developers.

Additionally, when they are ready to deploy, many unit tests fail which prevents the deployment.

which three types of orgs should be recommended to UC to eliminate these problems?

Choose 3 answers

Options:

A.  

Data Migration org

B.  

Development org

C.  

Staging org

D.  

Systems Integration org

E.  

Continuous Integration (CI) Org

Discussion 0
Question # 5

Question # 5

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.

The test method fails at the Line 20 because of too many SOQL queries

What is the correct way to fix this?

Question # 5

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.

The test method fails at the Line 20 because of too many SOQL queries.

What is the correct way to fix this?

Options:

A.  

Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.

B.  

Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.

C.  

Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.

D.  

Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Discussion 0
Question # 6

Consider the following code snippet:

Question # 6

Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed.

What should the developer do to ensure that a partial refresh is made so that only the section identified with opportunity List Is re-drawn on the screen?

Options:

A.  

Ensure the action method search returns null.

B.  

Implement the tag with immedate _true.

C.  

Implement the reRender attribute on the tag.

D.  

Enclose the DATA table within the tag.

Discussion 0
Question # 7

A developer wrote the following method to find all the test accounts in the org:

Question # 7

What should be used to fix this falling test?

Options:

A.  

Test. loaddata to set up expected data

B.  

Test. fixedSearchResults ( ) method to set up expected data

C.  

@isTest (See AllData=true) to access org data for the test

D.  

@testSetup method to set up expected data

Discussion 0
Question # 8

Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are still in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Number__c and ERP_Key__c.

Which two queries are optimized for large data volumes? Choose 2 answers

Options:

A.  

SELECT Id FROM Account WHERE Id IN : aListVariable

B.  

SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false

C.  

SELECT Id FROM Account WHERE Name != NULL

D.  

SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA’

Discussion 0
Question # 9

A developer is writing a Jest for a Lightning web component that conditionally displays child components based on a user’s checkbox selections.

What should the developer do to property test that the correct components display and hide for each scenario?

Options:

A.  

Reset the DOM after each test with the after Each method.

B.  

Add a teardown block to reset the DOM after each test.

C.  

Create a new describe block for each test

D.  

Create a new jsdom instance for each test

Discussion 0
Question # 10

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called candidate as created with organization-wide default set to Private. A lookup on the Candidate object sets an employee as an the viewer user

Options:

A.  

The record can be shared using a permission set.

B.  

The record can be shared using a sharing rule.

C.  

The record cannot be shared with the current setup

D.  

The record can be shared an Apex class.

Discussion 0
Question # 11

Exhibit.

Question # 11

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.

What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security?

Choose 3 answers

Options:

A.  

Annotate the Apex method with gAuraEnabled-

B.  

Annotate the Apex method with 8AuraEnabled (Cacheable-true).

C.  

Use the WITH SECURITY_ENFORCED clause within the SOQL query.

D.  

Implement the with sharing keyword in the class declaration.

E.  

Implement the without sharing keyword in the class declaration.

Discussion 0
Question # 12

A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.

What should the developer do to speed up test execution?

Options:

A.  

Define a method that creates test data and annotate with @testSetup.

B.  

Define a method that creates test data and annotate with @createData

C.  

Reduce the amount of test methods in the class.

D.  

Ensure proper usage of test data factory In all test methods.

Discussion 0
Question # 13

Universal Containers (UC) has an CRP system that stores customer information.

When an Account is created in Salesforce, the FRP system's REST endpoint for creating new customers must automatically be called with the Account information, If the call to the ERP system fails, the Account should still be created. Accounts in UC org are only created, one at a time, by users in the customer on-boarding department.

What should a developer to make the call to the CRP system's REST endpoint7

Options:

A.  

REST call from JavaScript

B.  

Headless Quick Action

C.  

apex Continuation

D.  

call a Queueable from a Trigger

Discussion 0
Question # 14

Question # 14

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.

The test method fails at the Line 20 because of too many SOQL queries

What is the correct way to fix this?

Question # 14

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.

The test method fails at the Line 20 because of too many SOQL queries.

What is the correct way to fix this?

Options:

A.  

Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.

B.  

Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.

C.  

Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.

D.  

Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Discussion 0
Question # 15

A developer created a Lightning web component that uses a lightning-record-edit-form t collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.

complain that they only see one error message at a time about their input when trying to save a Lead record.

What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously?

with minimal JavaScript intervention?

Options:

A.  

Try/catch/finally block

B.  

Apex trigger

C.  

Validation rules

D.  

External JavaScript library

Discussion 0
Question # 16

A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

Question # 16

What must be done in the component to get the data from Salesforce?

A)

Question # 16

B)

Question # 16

C)

Question # 16

D)

Question # 16

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 17

A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.

Question # 17

When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.

What is the optimal way to implement this?

Options:

A.  

Add an within the .

B.  

Add an within the .

C.  

Add an within the .

D.  

Add an within the .

Discussion 0
Question # 18

An org has a Process Builder process on Opportunity that sets a custom field,CommissionBaseAmount__c, when an Opportunity is edited and the Opportunity's Amount changes.

A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a value for a custom field CommissionAmount_c, when an Opportunity stage changes to Closed/Won.

Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the C:rr.i;5icn

A.  

T.cur.t c is incorrect.

Which two actions should the developer take to correct this problem? Choose 2 answers

Options:

A.  

Call the trigger from the process.

B.  

Uncheck the recursion checkbox on the process.

C.  

Use a static Boolean variable in the trigger.

D.  

Call the process from the trigger.

Discussion 0
Question # 19

A developer is creating a lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday.

What should the developer do to ensure the calendar displays accurately for users in every locale?

Options:

A.  

Use a custom metadata type to store key/value pairs.

B.  

Query the firstDayofweek field from the Locale for the current user.

C.  

Use UserInfo,getLocale () in the component.

D.  

Import the FirstDayofweek property m the component

Discussion 0
Question # 20

A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed.

What should be done to eliminate this issue going forward?

Options:

A.  

Set the setting type on the custom setting to List.

B.  

Replace custom settings with custom metadata.

C.  

Set the setting type on the custom setting to Hierarchy.

D.  

Replace custom settings with static resources.

Discussion 0
Question # 21

How should a developer reference a third-party JavaScript library from a Lightning component?

Options:

A.  

From an asset file

B.  

From a document

C.  

From a static resource

D.  

From a third-party URL

Discussion 0
Question # 22

A Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?

Options:

A.  

Declare a static final Contact at the top of the controller.

B.  

Change the setters signature to return a Contact.

C.  

Use a condition in the getter to return a new Contact if it is null.

D.  

Change the getter's signature to be static Contact.

Discussion 0
Question # 23

Consider the following code snippet:

Question # 23

As part of the deployment cycle, a developer creates the following test class:

When the test class runs, the assertion fails.

Which charge should the developer implement in the Apex test method to ensure the test method execute successfully?

Options:

A.  

Query the Standard User into memory and enclose lines 14 and 15 within the System.runAs (user) method.

B.  

Add System.runAs (User) to line 14 and enclose line 14 within Test.startTest() and Test.stoptest ().

C.  

Query the Administrator user into memory and enclose lines 14 and 15 within the System,runAs (user)

method.

D.  

Add @IsTest(seeAllData=True) to line 12 and enclose lines 14 and 15 within Test.startTest () and test.stopTest()

Discussion 0
Question # 24

Consider the following code snippet:

Question # 24

Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code?

Choose 2 answers

Options:

A.  

Create a Named Credential, endPoint_NC, to store the endpoint and credentials.

B.  

Store the URL of the endpoint in a custom Label named endPointURL.

C.  

Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.

D.  

Use req.setEndpoint(Label.endPointURL);.

Discussion 0
Question # 25

Universal containers needs to integrate with several external systems. The process is initiated when a record is created in Salesforce. The remote systems do not require Salesforce to wait for a response before continuing.

What is the recommended best solution to accomplish this?

Options:

A.  

Trigger with callout

B.  

Platform event

C.  

PushTopic event

D.  

Outbound message

Discussion 0
Question # 26

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors?

Options:

A.  

Ensure queries do not exceed governor limits.

B.  

Ensure variables are marked as Transient.

C.  

Ensure properties are marked as private.

D.  

Ensure profiles have access to the Visualforce page.

Discussion 0
Question # 27

An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) Opportunity records need to be loaded into the Salesforce instance.

When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass Loading the Opportunities, but the daily users still need to have the Contract records created.

What is the most extendable way to update the Apex trigger to accomplish this?

Options:

A.  

Add a validation rule to the Contract to prevent Contract creation by the user who loads the data.

B.  

Add the Profile ID of the user who loads the data to the trigger, so the trigger will not fire for this user.

C.  

Use a list custom setting to disable the trigger for the user who loads the data.

D.  

Use a hierarchy custom setting to skip executing the logic inside the trigger for the user who loads the data.

Discussion 0
Question # 28

A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning Page?

Options:

A.  

Salesforce Lightning Inspector Storage Tab

B.  

Salesforce Lightning Inspector Actions Tab

C.  

Salesforce Lightning Inspector Event Log Tab

D.  

Salesforce Lightning Inspector Transactions Tab

Discussion 0
Question # 29

Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to wait for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems.

Based on these requirements, which method should a developer use to create the records in Salesforce?

Options:

A.  

REST API request using composite/vbatch/

B.  

REST API request using composite/tree/

C.  

Apex web services

D.  

Bulk API 2.0

Discussion 0
Question # 30

A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen.

Which functionality consideration impacts the final decision?

Options:

A.  

Does the screen need to be accessible from the lightning Experience UI?

B.  

Will the screen make use of a JavaScript framework?

C.  

Does the screen need to be rendered as a PDF without using a third-party application?

D.  

Will the screen be accessed via a mobile app?

Discussion 0
Question # 31

A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.

What should the developer use to store and package the custom configuration settings for the app?

Options:

A.  

Custom Settings

B.  

Custom Metadata

C.  

Custom Objects

D.  

Process Builder

Discussion 0
Question # 32

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered.

Question # 32

What should the developer do to ensure that users do not overwrite each other’s updates to the same Account if they make updates at the same time?

Options:

A.  

Use CastiCase.update(account, false).

B.  

Add a try/catch block around the update.

C.  

Use upsert instead of update.

D.  

Use FOR UPDATE in a SOQL query.

Discussion 0
Question # 33

A developer created the code to perform an HTP GET request to an external system.

Question # 33

When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint

Which recommended approach should the developer implement to the callout

exception?

Options:

A.  

create a remote site setting configuration that includes the endpoint.

B.  

Annotate the getERPCatalogContents method With @Future (Callout-true)

C.  

use the setHeader () method to specify Basic Authentication.

D.  

Change the access modifier for ERPCatelog from Public to global

Discussion 0
Question # 34

The following code segment is railed from a Trigger handler class from the Opportunity trigger:

Question # 34

Which two changes should improve this code and make it more efficient? Choose 2 answers

Options:

A.  

Move the DML outside of the for loop.

B.  

Move the SOQL to fetch the account record outside of the for loop.

C.  

Move business logic inside the Opportunity trigger.

D.  

Use Triginstead.old instead of Trigger.new.

Discussion 0
Question # 35

A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?

Options:

A.  

Custom Metadata

B.  

Custom Object

C.  

Custom Setting

D.  

Custom Variable

Discussion 0
Question # 36

A company uses Salesforce to sell products to customers. They also have an external product information management (P1M) system that If the system of record for products.

A developer received these requirements

• Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce.

• The PricebookEntry should be created in a Pricebooki that is specified in a custom setting.

What should the developer use to satisfy these requirements?

Options:

A.  

Apex REST

B.  

Event Monitoring

C.  

Invocated Action

D.  

Sobject Tree

Discussion 0
Question # 37

A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.

Users report that they receive a ''Maximum view state size limit'' error message under certain conditions.

According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers

Options:

A.  

Use the transient keyword in the Apex controller for variables that do not maintain state.

B.  

Use the final keyword in the controller for variables that will not change.

C.  

Refine any SQQL queries to return only data relevant to the page.

D.  

Use the private keyword in the controller for variables

E.  

Use filters and pagination to reduce the amount of data.

Discussion 0
Question # 38

A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to SI,000,000. However, this criteria value can change over time.

There is a new requirement to also display high value opportunities In a Lightning web component.

Which two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated in more than one place?

Choose 2 answers

Options:

A.  

Use custom metadata to hold the high value amount.

B.  

Call the trigger from the Lightning web component.

C.  

Leave the business logic code Inside the trigger for efficiency.

D.  

Create a helper class that fetches the high value opportunities.

Discussion 0
Question # 39

Consider the following code snippet:

A developer created the following test class to provide the proper code coverage for the snippet above:

However, when the test runs, no data is returned and the assertion fails.

However, when the test runs, no data is returned and the assertion fails.

Which edit should the developer make to ensure the test class runs successfully?

Options:

A.  

Enclose the method call within Test. startTest () and Test , stop Test ()

B.  

Implement the seeAllData=true attribute in the @isTest annotation.

C.  

Implement the without sharing keyword in the searchfeature Apex class.

D.  

Implement the setFixedSearchResults method in the test class.

Discussion 0
Question # 40

Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.

What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers

Options:

A.  

Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.

B.  

Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.

C.  

Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.

D.  

Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.

Discussion 0
Question # 41

Question # 41

Refer to the code segment above.

When following best prachces for writing Apex triggers, which two lines are wrong or cause for concern?

Choose 2 answers

Options:

A.  

Lines 6

B.  

Line 11

C.  

Line 16

D.  

Line 20

Discussion 0
Question # 42

Question # 42

Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers

Options:

A.  

Use a Map accountMap instead of List accountList.

B.  

Use a Map to cache the results of the Region__c query by Id.

C.  

Move the Region__c query to outside the loop.

D.  

Remove the last line updating accountList as it is not needed.

Discussion 0
Question # 43

The Salesforce admin at cloud kicks created a custom object called Region_ c to store all postal zip codes in the United States and the Cloud Kicks sales region the Zip code belong to.

Object Name:

Question # 43

Fields:

Question # 43

Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead's zip code. Which code segment is the most efficient way to fulfill this request?

A)

Question # 43

B)

Question # 43

C)

Question # 43

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 44

A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.

What should the integration use to create new Order__c records that will automatically be related to the correct Account?

Options:

A.  

Upsert on the Account and specify the ERP_Customer_ID__c.

B.  

Merge on the Order__c object and specify the ERP_Customer_ID__c.

C.  

Insert on the Order__c object followed by an update on the Order__c object.

D.  

Upsert on the Order__c object and specify the ERP_Customer_ID__c.

Discussion 0
Question # 45

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items.

Both custom objects have a CurrencylsoCode Text field that contains the currency code they should use. If a Catalog's CurrencylsoCode changes, all of its Catalog Items' CurrencylsoCodes should be changed as well.

What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog's CurrencylsoCode changes^5

Options:

A.  

An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencylsoCode is different

B.  

An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencylsoCode is different

C.  

A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different

D.  

A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencylsoCode is different

Discussion 0
Question # 46

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.

Question # 46

What must be added to display the total?

Options:

A.  

Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.

B.  

Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.

C.  

Add Total: {quantity * UnitPrice} in the template.

D.  

Add Total; {multiple quantit,y unitprice)} in the template.

Discussion 0
Question # 47

A developer created a class that implement he Queueable interface, as follows:

As part of the deployment process, the developer is asked to create a corresponding test class.

Which two actions should the developer take to successfully execute the test class?

Choose 2 answers

Options:

A.  

Ensure the running user of the test class has, at least, the View All permission on the Order object

B.  

Enclose System.enqueueJob (new orderQueueable Job ( }) within Test. starttest and Test, stoptest ()

C.  

Implement seeAllData-true to ensure the Queueable )ob is able to run in bulk mode.

D.  

Implement Test.isRunningtest ( ) to prevent chaining jobs during test execution.

Discussion 0
Question # 48

Which use case can only be performed by using asynchronous Apex?

Options:

A.  

Scheduling a batch process to complete in the future

B.  

Processing high volumes of records

C.  

Updating a record after the completion of an insert

D.  

Calling a web service from an Apex trigger

Discussion 0
Question # 49

Consider the following code snippet:

Question # 49

Which governor limit is likely to be exceeded when the trigger runs when a scope of 200 newly inserted accounts?

Options:

A.  

Total number of DML statements issued

B.  

Total number of records processed as a result of DML

C.  

Total number of SOQL queries issued

D.  

Total number of SOQL queries issued

Discussion 0
Question # 50

A developer is asked to create a Lightning web component that will be invoked via button on a record page. The component must be displayed in a model dialog.

Which three steps should the developer take to achieve this?

Choose 3 answers

Options:

A.  

Add a tarqetConfig anf set targets to lightning_RecordAction.

B.  

In targetConfigs, add Lightning_Apppage as a target.

C.  

Set action Type to screenAction.

D.  

In target, add lightning_RecordAction as a target.

E.  

Set eventType to action.

Discussion 0
Question # 51

For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and, over time, they predict they will have hundreds of millions of records.

What should a developer use to implement this?

Options:

A.  

Field Audit Trail

B.  

Setup Audit Trail

C.  

Field History Tracking

D.  

Big objects

Discussion 0
Question # 52

Universal Containers requested the addition of a third-party Map widget to an existing Lightning web component.

Which two actions should the developer take to implement this requirement?

Choose 2 answers

Options:

A.  

Import the third-party JavaScript module directly Into the component.

B.  

Use a content distribution network and Include

Web Analytics Made Easy - StatCounter

Copyright © 2014-2024 Exams4sure. All Rights Reserved