Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

PDII Exam Dumps - Salesforce Certified Platform Developer II ( Plat-Dev-301 )

Searching for workable clues to ace the Salesforce PDII Exam? You’re on the right place! ExamCert has realistic, trusted and authentic exam prep tools to help you achieve your desired credential. ExamCert’s PDII PDF Study Guide, Testing Engine and Exam Dumps follow a reliable exam preparation strategy, providing you the most relevant and updated study material that is crafted in an easy to learn format of questions and answers. ExamCert’s study tools aim at simplifying all complex and confusing concepts of the exam and introduce you to the real exam scenario and practice it with the help of its testing engine and real exam dumps

Go to page:
Question # 17

Consider the following code snippet:

HTML

<template for:each={orders.data} for:item="order">

</template>

How should the component communicate to the component that an order has been selected by the user?

A.

Create and dispatch a custom event.

B.

Create and fire a component event.

C.

Create and fire an application event.

D.

Create and fire a standard DOM event.

Full Access
Question # 18

The use of the transient keyword in Visualforce page helps with which performance issue?

A.

Reduces view state

B.

Improves query performance

C.

Reduces load times

D.

Improves page transfers

Full Access
Question # 19

A developer writes a Lightning web component that displays a dropdown list of all custom objects in the org. An Apex method prepares and returns data to the component. What should the developer do to determine which objects to include in the response?

A.

Import the list of all custom objects from @salesforce/schema.

B.

Check the getObjectType() value for 'Custom' or 'Standard' on the sObject describe result.

C.

Check the isCustom() value on the sObject describe result.

D.

Use the getCustomObjects() method from the Schema class.

Full Access
Question # 20

A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called Survey_Response__c do not belong to a list of blocked domains. The list of blocked domains is stored in a custom object for ease of maintenance by users. The Survey_Response__c object is populated via a custom Visualforce page. What is the optimal way to implement this?

A.

Implement the logic in validation rules on the Contact and the Survey_Response__c objects.

B.

Implement the logic in a helper class that is called by an Apex trigger on Contact and from the custom Visualforce page controller.

C.

Implement the logic in an Apex trigger on Contact and also implement the logic within the custom Visualforce page controller.

Full Access
Question # 21

Refer to the test method below:

Java

@isTest

static void testAccountUpdate() {

Account acct = new Account(Name = 'Test');

acct.Integration_Updated__c = false;

insert acct;

CalloutUtil.sendAccountUpdate(acct.Id);

Account acctAfter = [SELECT Id, Integration_Updated__c FROM Account WHERE Id = :acct.Id][0];

System.assert(true, acctAfter.Integration_Updated__c);

}

The test method calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts." What is the optimal way to fix this?

A.

Add if (!Test.isRunningTest()) around CalloutUtil.sendAccountUpdate.

B.

Add Test.startTest() before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

C.

Add Test.startTest() before and Test.setMock and Test.stopTest() after CalloutUtil.sendAccountUpdate.

D.

Add Test.startTest() and Test.setMock before and Test.stopTest() after CalloutUtil.sendAccountUpdate.

Full Access
Question # 22

Universal Containers is using a custom Salesforce application to manage customer support cases. The support team needs to collaborate with external partners to resolve certain cases. However, they want to control the visibility and access to the cases shared with the external partners. Which Salesforce feature can help achieve this requirement?

A.

Apex managed sharing23

B.

Sharing sets24

C.

Role hierarchy25

D.

Criteria-based sharing rules26

Full Access
Question # 23

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?

A.

Salesforce Lightning Inspector Storage tab12

B.

Salesforce Lightning Inspector Event Log tab34

C.

Salesforce Lightning Inspector Actions tab56

D.

Salesforce Lightning Inspector Transactions tab78

Full Access
Question # 24

An Aura component has a section that displays some information about an Account and it works well on the desktop, but we have to scroll horizontally to see the description field output on their mobile devices and tablets.

HTML

{!v.rec.Name}

{!v.rec.Description__c}

How should a developer change the component to be responsive for mobile and tablet devices?

A.

HTML

{!v.rec.Name}

{!v.rec.Description__c}

B.

1

HTML

{!v.rec.Name}

{!v.rec.Description__c}

C.

HTML

{!v.rec.Name}

{!v.rec.Description__c}

D.

HTML

{!v.rec.Name}

{!v.rec.Description__c}

Full Access
Go to page: