Salesforce Certified Platform Developer II (Plat-Dev-301) Exam Practice Test

Page: 1 / 14
Total 202 questions
Question 1

A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce.

This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate

the orders to the corresponding accounts.

Which two recommendations should make this process more efficient?

Choose 2 answers



Answer : A, D

Setting unique fields on related objects as External IDs allows for the creation of relationships during imports without needing Salesforce IDs. The upsert operation in Data Loader can then use these External IDs to relate records, which streamlines the process and avoids the need to export Salesforce IDs manually.


Data Loader Guide

Question 2

A company has reference data stored in multiple custom metadata records that represent default information and delete behavior for certain geographic regions.

When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information.

Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message.

Depending on company personnel resources, what are two ways to automate this?

Choose 2 answers



Answer : B, C

To automate the process based on the contact's address information and prevent deletion from flagged regions:

Flow Builder: Can be used to set default information on records when they are created.

Apex Trigger: Allows for complex logic to be executed before or after data manipulation operations, including insert and delete. It can be used to enforce rules such as preventing deletion.


Flow Builder: Salesforce Help Article

Apex Triggers: Apex Developer Guide

Question 3

An Aura component has a section that displays some information about an Account

and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.

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

A)

B)

C)

D)



Answer : A

To make the Aura component responsive, the developer should set multipleRows='true' to allow the layout items to wrap onto multiple rows on smaller devices. Additionally, setting the size attribute for different device sizes ensures that the layout adapts to the screen width.


Question 4

Universal Containers implements a private sharing model for the Convention Attendee co custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_c user lookup field on the object.

Management wants the event reviewer to automatically gain ReadWrite access to

every record they are assigned to.

What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?



Answer : B

Use Apex Managed Sharing with an after insert trigger. It allows dynamic record sharing based on user-defined criteria like the Event_Reviewer_c field.


Question 5

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?



Answer : C

Apex managed sharing is the correct feature to control the visibility and access to cases shared with external partners. It allows developers to programmatically create sharing records that grant access to users based on specific criteria, providing granular control over record sharing.


Question 6

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?



Answer : B

Use the @salesforce/i18n module with the firstDayOfWeek property. It provides locale-aware functionality essential for internationalization.


Question 7

A developer is responsible for formulating the deployment process for a Salesforce project. The project follows a source-driven development approach, and the developer wants to ensure efficient deployment and version control of the metadata changes.

Which tool or mechanism should be utilized for managing the source-driven deployment process?



Answer : D

Salesforce CLI with Salesforce DX is the best tool for managing a source-driven deployment process. It facilitates version control, scriptable deployment, and rollback, and is optimized for collaboration and continuous integration.


Page:    1 / 14   
Total 202 questions