A warm welcome to all the Salesforce Enthusiasts at Salesforce Trail

We are providing the Questions series for “Salesforce Platform Developer 1″

These Questions series are 100% genuine and designed to help all enthusiasts who want to become Salesforce Platform Developer 1 Certified.

This questions series will be divided into multiple parts stay connected with us to get more questions for “FREE

So Without any delay, let’s get started and provide you with the best practice questions.

Salesforce Platform Developer 1

Salesforce Platform Developer 1

Question: 1

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?

A. Use the Data Loader command line.
B. Create a Schedulable Apex class.
C. Schedule a report.
D. Define a Data Export scheduled job.

Answer: D

Explanation:
Scheduling a Data Export job is the best way to back up all the data and attachments in a Salesforce org once a month. The Data Export job can be scheduled to run at a certain frequency so that the data can be backed up on a regular basis. This makes it easy to restore the data in case of any
emergency.

Question: 2

What can be used to override the Account’s standard Edit button for Lightning Experience?

A. Lightning action
B. Lightning component
C. Lightning page
D. Lightning flow

Answer: B

Explanation:
A Lightning Component can be used to override the Account’s standard Edit button for Lightning Experience. This allows the developer to create a custom page with custom fields and custom functionality that can be used instead of the standard Edit page. It also allows for the creation of custom navigation and buttons to make the user experience more intuitive and efficient.

Question: 3

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

A. Production
B. Dev Hub
C. Environment Hub
D. Sandbox

Answer: B

Explanation: 

https://developer.salesforce.com/docs/atlas.enus.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm
When using SalesforceDX, a developer needs to enable Dev Hub in order to create and manage scratch orgs. A Dev Hub is a special type of org used by developers to store source code and other development-related artifacts. It is also used to create and manage scratch orgs, which are temporary orgs used for development and testing.
Reference: https://developer.salesforce.com/docs/atlas.enus.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm

Question: 4

Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology’ industry:

Salesforce pd1
which three statements are accurate about debug logs? Choose 3 answers

A. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
B. The maximum size of a debug log is 5 MB.
C. Only the 20 most recent debug logs for a user are kept.
D. Debug logs can be set for specific users, classes, and triggers.
E. System debug logs are retained for 24 hours.

Answer: C, D, E

Explanation:

Question: 5

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?

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.

Answer: D

Explanation:
Use the with sharing keyword on the class declaration. The with sharing keyword ensures that the Apex code respects the object-level, field-level, and record-level sharing settings for the user who is running the Apex code. This means that the code will only return records that the user has access to, according to their Sharing Settings. You can find more information about the with sharing keyword in
the official Salesforce documentation 

Question: 6

What are two use cases for executing Anonymous Apex code? Choose 2 answers

A. To delete 15,000 inactive Accounts In a single transaction after a deployment
B. To schedule an Apex class to run periodically
C. To run a batch Apex class to update all Contacts
D. To add unit test code coverage to an org

Answer: B, C

Question: 7

A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?

A. <apex: pageMessages />
B. <apex: pageMessage severity=”info’’/>
C. <Apex: facet name=’’ message’’/>
D. <Apex: message for=’’ info’’/>

Answer: A

Question: 8

When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers

A. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.
B. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
C. Developer and Developer Pro sandboxes have different storage limits.
D. Data import wizard is a client application provided by Salesforce.

Answer: C, D

Question: 9

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

A. Apex Flex Queue
B. Apex Jobs
C. Paused Flow Interviews component
D. Time-Based Workflow Monitor

Answer: A, B

Question: 10

Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV’s package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

A. Declare the class and method using the public access modifier.
B. Declare the class as global and use the public access modifier on the method.
C. Declare the class as public and use the global access modifier on the method.
D. Declare the class and method using the global access modifier.

Answer: D

Question: 11

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?

A. 1
B. 3
C. 4
D. 2

Answer: D

Question: 12

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
A. ernit()
B. fireEvent()
C. fire()
D. registerEvent()

Answer: C

Question: 13

A developer wants to mark each Account in a List<Account> as either or Inactive based on the LastModified field value being more than 90 days. Which Apex technique should the developer use?

A. A for loop, with a switch statement inside
B. A Switch statement, with a for loop inside
C. An If/else statement, with a for loop inside
D. A for loop, with an if/else statement inside

Answer: D

Question: 14

What are three characteristics of change set deployments?
Choose 3 answers

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.

Answer: B, C, D

Question: 15

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?

A. Public class DrawList implements Sortable, Implements Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/}
]
B. Public class DrawList extends Sortable, Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/}
}
C. Public class DrawList implements Sortable, Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/}
}
D. Public class DrawList extends Sortable, extends Sortable, extends Drawable { public void sort() { /*implementation*/ } public void draw() { /* implementation */}

Answer: C

Question: 16

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?

A. Use Test.loadData ( )and a static resource to load a standard price book
B. Use @TestVisible to allow the test method to see the standard price book.
C. Use Test,getStandardPricebookid ( ) to get the standard price book ID.
D. Use @IsTest (SeeAllData=True) and delete the existing standard price book

Answer: C

Question: 17

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?

A. Developer sandboxes
B. Scratch orgs
C. Full Copy sandboxes
D. Developer orgs

Answer: B

Question: 18

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?

A. Add <isExposed> true</isExposed> to the statusComponent.js-meta ml file.
B. Add <target> lighting _RecordPage </target> to the statusComponent.js-meta ml file.
C. Add < masterLabel>Account</master Label> to the statusComponent.js-meta ml file.
D. Add<target> Lightning_RecordPage </target> to the statusComponent.js file.

Answer: A, B

Question: 19

A developer is migrating a Visualforce page into a Lightning web component.
The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.
Which security consideration should the developer be aware of?

A. Lightning Data Service handles sharing rules and field-level security.
B. Lightning Data Service ignores field-level security.
C. The with sharing keyword must be used to enforce sharing rules.
D. The isAccessible ( ) method must be used for field-level access checks

Answer: A

Question: 20

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

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.

Answer: A

Question: 21

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?
Choose 2 answers

A. The parent component can use a custom event to pass the data to the child component, B. The parent component can use the Apex controller class to send data to the child component.
C. The parent component can invoke a method in the child component
D. The parent component can use a public property to pass the data to the child component.

Answer: A, D

Question: 22

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

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.

Answer: B

Question: 23

How should a developer write unit tests for a private method in an Apex class?

A. Use the SeeAllData annotation.
B. Add a test method in the Apex class.
C. Use the TestVisible annotation.
D. Mark the Apex class as global.

Answer: C

Question: 24

What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components? Choose 3 answers

A. Loading files from Documents
B. One-time loading for duplicate scripts
C. Specifying loading order
D. Loading scripts In parallel
E. Loading externally hosted scripts

Answer: B,C, D

Question: 25

An org has an existing Flow that creates an Opportunity with an Update Records element. A developer update the Flow to also create a Contact and store the created Contact’s ID on the Opportunity.
Which update should the developer make in the Flow?

A. Add a new Get Records element.
B. Add a new Update Records element.
C. Add a new Quick Action element(of type Create).
D. Add a new Create Records element.

Answer: D

Question: 26

Which three resources in an Azure Component can contain JavaScript functions?

A. Controllers
B. helper
C. Design
D. Style
E. Renderer

Answer: A, B, E

Question: 27

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?

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.

Answer: C

Question: 28

Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called “Global Address”. Which field should the developer ad to create the most efficient model that supports the business need?

A. Add a Master-Detail field on the Account object to the Global Address object B. Add a Master-Detail field on the Global Address object to the Account object.
C. Add a Lookup field on the Account object to the Global Address object.
D. Add a Lookup field on the Global Address object to the Account object

Answer: B

Question: 29

What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers

A. A method using the @InvocableMethod annotation must define a return value.
B. A method using the @InvocableMethod annotation can have multiple input parameters.
C. A method using the @InvocableMethod annotation must be declared as static
D. A method using the @InvocableMethod annotation can be declared as Public or Global.
E. Only one method using the @InvocableMethod annotqation can be defined per Apex class.

Answer: C, D, E

Question: 30

which statement is true regarding execution order when triggers are associated to the same object and event?

A. Trigger execution order cannot be guaranteed.
B. executed In the order they are modified.
C. Triggers are executed alphabetically by trigger name.
D. Triggers are executed in the order they are created.

Answer: A

Share these Question Series with your friends and colleague

If you want more questions “PDF” of the Question Series of Salesforce Platform Developer 1

“DONT FORGET TO FOLLOW”

Follow us on:

INSTAGRAM – Salesforce Trail (@salesforcetrail)

FACEBOOK – Salesforce Trail (Facebook)

Comment “PDF” on the post or DM us.

Click on the Following Image to Redirect on Instagram

Resources

For more insights, trends, and news related to Salesforce, stay tuned with Salesforce Trail

Join Our WhatsApp Group – “Visit Here”

Join Our Telegram Group- “Visit Here”

Share.

2 Comments

Leave A Reply

Exit mobile version