Salesforce Platform Developer I Certification Practice Questions, Exams of Sales Management

A collection of multiple-choice questions and answers designed to help individuals prepare for the salesforce platform developer i certification exam. The questions cover various aspects of salesforce development, including apex programming, visualforce, data modeling, and workflow automation. This resource can be valuable for aspiring salesforce developers seeking to enhance their knowledge and test their understanding of key concepts.

Typology: Exams

2024/2025

Available from 11/11/2024

StudyAceSmart
StudyAceSmart 🇺🇸

3

(6)

1.9K documents

1 / 61

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Salesforce Platform Developer I/ 180 Quizzes
with Certified Solutions.
Which requirement needs to be implemented by using standard workflow instead of Process
Builder?
Choose 2 answers
A. Create activities at multiple intervals.
B. Send an outbound message without Apex code.
C. Copy an account address to its contacts.
D. Submit a contract for approval. - Answer: A, B
An org has different Apex Classes that provide Account -related functionality.
After a new validation rule is added to the object, many of the test methods fail.
What can be done to resolve the failures and reduce the number of code changes needed for
future validation rules?
Choose 2 answers:
Page 1 of 61
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download Salesforce Platform Developer I Certification Practice Questions and more Exams Sales Management in PDF only on Docsity!

Salesforce Platform Developer I/ 180 Quizzes

with Certified Solutions.

Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers A. Create activities at multiple intervals. B. Send an outbound message without Apex code. C. Copy an account address to its contacts. D. Submit a contract for approval. - Answer: A, B An org has different Apex Classes that provide Account -related functionality. After a new validation rule is added to the object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? Choose 2 answers:

A. Create a method that creates valid Account records, and call this method from within test methods. B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods. C. Create a method that performs a callout for a valid Account record, and call this method from within test methods. D Create a method that queries for valid Account records, and call this method from within test methods. - Answer: A, B Which component is available to deploy using Metadata API? Choose 2 answers A. Case Layout B. Account Layout C. Case Feed Layout D. ConsoleLayout - Answer: A, B In the code below, what type does Boolean inherit from? Boolean b= true; A. Enum B. Object C. String D. Class - Answer: B What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?

Line-02: if (l.PostalCode != null) { Line-03: List<Territory__c> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode]; Line-04: if(terrList.size() > 0) Line-05: l.Territory__c = terrList[0].Id; Line-06: } Line-07: } Which line of code is causing the code block to fail? A. Line-03: A SOQL query is located inside of the for loop code. B. Line-01: Trigger:new is not valid in a before insert Trigger. C. Line-02: A NullPointer exception is thrown if PostalCode is null. D. Line-05: The Lead in a before insert trigger cannot be updated. - Answer: A What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected? A. Create a process with Process Builder. B. Create a workflow rule with a field update. C. Create a Lightning Component. D. Create a Visualforce page. - Answer: A A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce. Which kind of relationship would a developer use to relate the Account to the Warehouse? A. One -to -Many

B. Lookup C. Master -Detail D. Parent -Child - Answer: B A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record? A. No changes are made to the data. B. Both the Apex Trigger and Workflow Rule are fired only once. C. The Workflow Rule is fired more than once. D. The Apex Trigger is fired more than once. - Answer: D What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers: A. More frequent refreshes. B. Only Includes necessary metadata. C. Use of change sets. D. Limited to 5 GB of data. - Answer: A, D In which order does SalesForce execute events upon saving a record? A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit C. Before Triggers; Validation Rules; ilter Triggers; Workflow Rules; Assignment Rules; Commit D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit - Answer: A

What can the administrator do to associate an application with each job posting in the schema for the organization? A. Create a lookup relationship on both objects to a junction object called Job Posting Applications. B. Create a master-detail relationship in the Job Postings custom object to the Applications custom object. C. Create a master-detail relationship in the Application custom object to the Job Postings custom object. D. Create a lookup relationship in the Applications custom object to the Job Postings custom object. - Answer: C What is a characteristic of the Lightning Component Framework? Choose 2 answers: A. It has an event-driven architecture. B. It works with existing Visualforce pages. C. It includes responsive components. D. It uses XML as its data format. - Answer: A, C What is a capability of cross-object formula fields? Choose 3 answers A. Formula fields can reference fields from master-detail or lookup parent relationships. B. Formula fields can expose data the user does not have access to in a record. C. Formula fields can be used in three roll-up summaries per object. D. Formula fields can reference fields in a collect of records from a child relationship.

E. Formula fields can reference fields from objects that are up to 10 relationships away. - Answer: A, B, E A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization? A. Apex Triggers B. HTTP Callouts C. Apex Controllers D. Anonymous Blocks - Answer: D A developer created an Apex trigger using the Developer Console and now wants to debug code How can the developer accomplish this in the Developer Console? A. Select the Override Log Triggers checkbox for the trigger B. Add the user name in the Log Inspector. C. Open the Progress tab in the Developer Console. D. Open the logs tab in the Developer Console. - Answer: D Which data structure is returned to a developer when performing a SOSL search? A. A list of lists of sObjects. B. A map of sObject types to a list of sObjects C. A map of sObject types to a list oflists of sobjects D. a list of sObjects. - Answer: A How can a developer avoid exceeding governor limits when using an Apex Trigger?

B. Create an auto response rule to the candidate. C. Create a Process Builder with an outbound message action. D. Create a workflow rule with an outbound message action. - Answer: D A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and to prevent orphan records. A. Create a junction object to relate many engines to many parts though a master -detail relationship. B. Create a master -detail relationship to represent the one -to -many model of engines to parts C. Create a lookup relationship to represent how each part relates to the parent engine object. D. Create a junction object to relate many engines to many parts through a lookup relationship.

  • Answer: A What is the accurate statement about with sharing keyword? choose 2 answers A) Inner class donot inherit the sharing setting from the container class B) Both inner and outer class can be declared as with sharing C) Either inner class or outer classes can be declared as with sharing but not both D) Inner class inherit the sharing setting from the conatiner class - Answer: A, B How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers A. By using a PageReference with a partial or full URL. B. By using the Page object and a Visualforce page name. C. By using the ApexPages.Page() method with a Visualforce page name.

D. By using the PageReference.Page() method with a partial or full URL. - Answer: A, B Which standard field needs to be populated when a developer inserts new Contact records programmatically? A. Accountld B. Name C. LastName D. FirstName - Answer: C A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required." What can the developer do to successfully deploy the new Visualforce page and extension? A. Create test classes to exercise the Visualforce page markup. B. Select "Disable Parallel Apex Testing" to run all the tests. C. Add test methods to existing test classes from previous deployments. D. Select "Fast Deployment'' to bypass running all the tests. - Answer: C What is the minimum log level needed to see user generated debug statements? A. DEBUG B. FINE C. INFO D. WARN - Answer: A

choose 2 answers A. throw new RecordNotFoundException("problem occured"); B. throw new RecordNotFoundException(); C. throw RecordNotFoundException("problem occured"); D. throw RecordNotFoundException(); - Answer: A, B When creating unit tests in Apex, which statement is accurate? A. Unit tests with multiple methods result in all methods failing every time one method fails. B. Increased test coverage requires large test classes with many lines of code in one method. C. Triggers do not require any unit tests in order to deploy them from sandbox to production. D. System Assert statements that do not Increase code coverage contribute important feedback in unit tests - Answer: D public class customController { public string cString { get; set;} public string getStringMethod1(){ return cString; } public string getStringMethod2(){ if(cString == null) cString = 'Method2'; return cString; } } <apex:page controller="customController"> {!cString}, {!StringMethod1}, {!StringMethod2}, {!cString}

</apex:page> What does the user see when accessing the custom page? A. getMyString, B. , , Method2, C.Method2, getMyString D. getMyString„ Method2, getMyString - Answer: B What is a valid Apex statement? A. Map conMap = (SELECT Name FROM Contact); B. Account[] acctList = new List{new Account()} C. Integer w, x, y = 123, z = 'abc', D private static constant Double rate = 775; - Answer: B A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL Which statement is unnecessary inside the unit test for the custom controller? A. public ExtendedController (ApexPages.StandardController cntrl) { } B. ApexPages.currentPage().getParameters().put('input', 'TestValue') C. Test.setCurrentPage(pageRef), D. String nextPage = controller.save().getUrl(); - Answer: D A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom visualforce page.

D. After Trigger execution. - Answer: B Which code represents the Controller in MVC architecture on the Force.com platform. Choose 2 answers A. JavaScript that is used to make a menu item display itself. B. StandardController system methods that are referenced by Visualforce. C. Custom Apex and JavaScript code that is used to manipulate data. D. A static resource that contains CSS and Images. - Answer: B, C A developer needs to provide a Visualforce page that lets users enter Product specific details during a Sales cycle. How can this be accomplished? Choose 2 answers provide Product data entry. A. Download a Managed Package from the AppExchange that provides a custom Visualforce page to modify. B. Create a new Visualforce page and an Apex controller to provide Product data entry. C. Copy the standard page and then make a Visualforce page for product data entry. D. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify. - Answer: B, D A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body? A. By accessing the Trigger.new context variable. B. By accessing the Trigger.newRecords context variable. C. By accessing the Trigger.newMap context variable.

D. By accessing the Tripper.newList context variable. - Answer: A A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount'); Insert myAccount; For (Integer x = 0; x < 250; x++) Account newAccount = new Account (Name='MyAccount' + x); try { Insert newAccount; } catch (Exception ex) { System.debug (ex) ; } insert new Account (Name='myAccount'); How many accounts are in the org after this code is run? A. 101 B. 100 C. 102 D. 252 - Answer: B The Review_c object have a lookup relationship to the job_Application_c object. The job_Application_c object has a master detail relationship up to the position_c object. The relationship is based on the auto populated defaults? What is the recommended way to display field data from the related Review _C records a Visualforce page for a single Position_c record?

B. if(Trigger.isRunning) dowork(); C. for (Trigger.isInsert t: Trigger.new) { dowork(); } D. if(Trigger.isInsert) dowork(); - Answer: D When would a developer use a custom controller instead of a controller extension? Choose 2 answers: A. When a Visualforce page needs to replace the functionality of a standard controller. B. When a Visualforce page does not reference a single primary object. C. When a Visualforce page should not enforce permissions or field-level security. D. When a Visualforce page needs to add new actions to a standard controller. - Answer: A, C What is a valid statement about Apex classes and interfaces? Choose 2 answers: A. The default modifier for a class is private. B. Exception classes must end with the word exception. C. A class can have multiple levels of inner classes. D. The default modifier for an interface is private. - Answer: A, B A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List childCases = new List();

for (Case parent : Trigger.new){ Case child = new Case(ParentId = parent.Id, Subject = parent.Subject); childCases.add(child); } insert childCases; What happens after the code block executes? A. Multiple child cases are created for each parent case in Trigger.new. B. child case is created for each parent case in Trigger.new. C. The trigger enters an infinite loop and eventually fails. D. The trigger fails if the Subject field on the parent is blank. - Answer: C A Developer wants to create a custom object to track Customer Invoices. How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to Account? A. The Account should have a Lookup relationship to the Invoice. B. The Invoice should have a Master -Detail relationship to the Account. C. The Account should have a Master -Detail relationship to the Invoice. D. The Invoice should have a Lookup relationship to the Account. - Answer: B What is a valid source and destination pair that can send or receive change sets? Choose 2 answers: A. Sandbox to production. B. Developer edition to sandbox. C. Developer edition to production.