Salesforce Certified Platform Developer I PDF Exam Paper

Document Details

ZippyCognition337

Uploaded by ZippyCognition337

Tags

Salesforce Apex Lightning Web Components Software Development Exam

Summary

This document appears to be a past paper for the Salesforce Certified Platform Developer I exam. It contains multiple-choice questions covering topics such as Apex, Lightning Web Components, and Salesforce development best practices. Practice these questions to prepare for your exam.

Full Transcript

Here is the converted text content into a structured markdown format. ### Result: PASS | Topic | Percenta | | ------------------------------- | -------- | | Developer Fundamentals | 100% | | Process Automation and Logic | 88% | | User Interface...

Here is the converted text content into a structured markdown format. ### Result: PASS | Topic | Percenta | | ------------------------------- | -------- | | Developer Fundamentals | 100% | | Process Automation and Logic | 88% | | User Interface | 100% | | Testing, Debugging, and Deployment | 100% | Congratulations! You have successfully completed the certification exam to become a Si community of Certified Professionals! Exit Test ### Answers | | | | | | ----------- | ----------- | ----------- | ----------- | | 1. CB | 2. BD | 3. D | 4. C | | 5. DB | 6. C | 7. C | 8. BC | | 9. C | 10. D | 11. D | 12. AD | | 13. A | 14. C | 15. BDE | 16. B | | 17. A | 18. D | 19. DA | 20. B | | 21. CD | 22. C | 23. A | 24. C | | 25. B | 26. B | 27. C | 28. A | | 29. A | 30. C | 31. D | 32. D | | 33. A | 34. DC | 35. A | 36. A | | 37. A | 38. CD | 39. C | 40. DB | | 41. C | 42. DB | 43. DA | 44. AC | | 45. B | 46. B | 47. A | 48. AB | | 49. C | 50. A | 51. C | 52. D | | 53. A | 54. A | 55. B | 56. EAC | | 57. D | 58. AB | 59. C | 60. B | Submit Exa ### Salesforce Certified Platform Developer I Time Remaining Show **60 of 60**. The values 'High', `Medium`, and `Low` are identified as common values for multiple picklists across different objects. What is an approach a developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above? A. Create the Picklist on each object and select "Restrict picklist to the values defined in the value set". B. Create the Picklist on each object and use a Global Picklist Value Set containing the values. C. Create the Picklist on each object and add a validation rule to ensure data integrity. D. C Create the Picklist on each object as a required field and select "Display values alphabetically, not in the order entered". ### Salesforce Certified Platform Developer I Time Remaining Show **59 of 60**. A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot query performance? A. Visual Studio Code IDE B. AppExchange C. Developer Console D. Setup Menu Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **58 of 60**. As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients. Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers A. Aura Components B. Lightning Web Components C. Visualforce Pages D. Visualforce Components You must select exactly 2 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **57 of 60**. 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 `@IsTest(SeeAllData=true)` and delete the existing standard price book. B. Use `Test.loadData()` and a static resource to load a standard price book. C. Use `@TestVisible` to allow the test method to see the standard price book. D. Use `Test.getStandardPricebookId()` to get the standard price book ID. Mark this item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **56 of 60**. Which three steps allow a custom Scalable Vector Graphic (SVG) to be Included in a Lightning web component? Choose 3 answers A. Import the static resource and provide a JavaScript property for it. B. Reference the import in the HTML template. C. Reference the property in the HTML template. D. Import the SVG as a content asset file. E. Upload the SVG as a static resource. You must select exactly 3 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **55 of 60**. A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner. What is the most efficient way for a developer to implement this? A. Task actions B. Apex trigger on Task C. Auto-launched flow on Task D. Record-triggered flow on Opportunity Mark this item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **54 of 60**. A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used? A. `@AuraEnabled(cacheable=true)` `public static List<Opportunity> search (String term) {/* implementation*/ }` B. `@AuraEnabled(cacheable=false)` `public static List<Opportunity> search(String term) { /*implementation*/ }` C. `@AuraEnabled(cacheable=false)` `public List<Opportunity> search (String term) { /*implementation*/ }` D. `@AuraEnabled(cacheable=true)` `public List<Opportunity search (String term) { /*implementation*/ }` Time Remaining Show **53 of 60**. A developer is asked to write helper methods that create test data for unit tests. ```java 01: public TestUtils { 02: 03: public static Account createAccount() { 04: Account act = new Account(); 05: //...set some fields on acct... 06: return act; 07: } 08: //...other methods... 09:} ``` What should be changed in the TestUtils class so that its methods are only usable by unit test methods? A. Add `@ISTest` above line 03. B. Change `public` to `private` on line 01. C. Remove `static` from line 03. D. Add `@IsTest` above line 01. ### Salesforce Certified Platform Developer I Time Remaining Show **52 of 60**. What should a developer use to fix a Lightning web component bug in a sandbox? A. Execute Anonymous B. Developer Console C. Force.com IDE D VS Code Mark this item for later review. Comments: Please Provide Feedback here... ### Salesforce Certified Platform Developer I Time Remaining Show **51 of 60**. A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use Data Loader instead of Data Import Wizard? A. Data Import Wizard can not import all 500 records. B. Data Loader runs from the developer's browser. C. Data Import Wizard does not support Opportunities. D. Data Loader automatically relates Opportunities to Accounts. Mark this item for later review. Comments: Time Remaining Show **50 of 60**. A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug_c. As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able to report multiple bugs and bugs can also be reported by multiple companies. What is needed to allow this reporting? A. Junction object between Bug_c and Account B. Master-detail field on Bug_c to Account C. Roll-up summary field of Bug__c on Account D. Lookup field on Bug_c to Account Mark this item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **49 of 60**. A developer wants to mark each Account in a List<Account> as either Active or Inactive, based on the value in the LastModifiedDate field of each Account being greater than 90 days in the past. Which Apex technique should the developer use? A. A switch statement, with a for loop inside B. An if-else statement, with a for loop inside C. A for loop, with an if or if/else statement inside D. A for loop, with a switch statement inside Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **48 of 60**. A developer has identified a method in an Apex class that performs resource Intensive actions in memory by Iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? Choose 2 answers A. Use the `Database.Savepoint` method to enforce database integrity. B. Use the `system.Limit` class to monitor the current CPU governor limit consumption. C. Use partial DML statements to ensure only valid data is committed. D. Use the `@ReadOnly` annotation to bypass the number of rows returned by a SOQL. ### Salesforce Certified Platform Developer I Time Remaining Show **47 of 60**. Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted? A. `Database.insert(records, false)` B. `Database.insert(records, true)` C. insert records D. insert (records, false) Mark this item for later review. Comments: Please Provide Feedback here... ### Salesforce Certified Platform Developer I Time Remaining Show **46 of 60**. 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 own? A. Line Item has a re-parentable lookup field to Order. B. Line Item has a re-parentable master-detail field to Order. C. Order has a re-parentable master-detail field to Line Item. D. Order has a re-parentable lookup field to Line Item. * A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. ```java public interface Sortable ( void sort(); } public interface Drawable { void draw(); } ``` Which is the correct implementation? A. `public class DrawList extends Sortable, extends Drawable { public void sort() {/*implementation*/} public void draw() { /*implementation*/} }` B. `public class DrawList implements Sortable, Drawable { public void sort() {/*implementation*/} public void draw() { /*implementation*/} }` C. `public class DrawList implements Sortable, implements Drawable {` Time Remaining Show **44 of 60**. A developer is tasked to perform a security review of the `contactSearch` Apex class that exists in the system. Within the class, the developer Identifies the following method as a security threat: ```java List<Contact> performSearch(String lastName) { return Database.query('SELECT Id, FirstName, LastName FROM Contact WHERE LastName Like '%' + lastName + '%'); } ``` What are two ways the developer can update the method to prevent a SOQL injection attack! Choose 2 answers A. Use the escapeSingleQuotes method to sanitize the parameter before its use. B. Use a regular expression expression on the parameter to remove special characters. C. Use variable binding and replace the dynamic query with a static SOQL. D. Use the `@ReadOnly` annotation and the with sharing keyword on the class. ### Salesforce Certified Platform Developer I Time Remaining Show **43 of 60**. Which two actions may cause triggers to fire? Choose 2 answers A. Cascading delete operations B. Changing a user's default division when the transfer division option is checked C. Renaming or replacing a picklist entry D. Updates to FeedItem You must select exactly 2 responses. Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **42 of 60**. Which two are phases in the Aura application event propagation framework? Choose 2 answers A. Control B. Bubble C. Emit D. Default You must select exactly 2 responses. Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **41 of 60**. How can a developer check the test coverage of autolaunched Flows before deploying them in a change set? A. Use the ApexTestResult class. B. Use the Code Coverage Setup page. C. Use SOQL and the Tooling API. D. Use the Flow Properties page. Mark this item for later review. Comments: Please Provide Feedback here ### Salesforce Certified Platform Developer I Time Remaining Show **40 of 60**. What are two considerations for deploying from a sandbox to production? Choose 2 answers A. Should deploy during business hours to ensure feedback can be quickly addressed. B All triggers must have at least one line of test coverage. C. Unit tests must have calls to the System.assert method. D. At least 75% of Apex code must be covered by unit tests. You must select exactly 2 responses. Mark this item for later review. **39 of 60**. Given the following Anonymous block: ```java List<Case> casesToUpdate = new List<Case>(); for (Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]) { thisCase.Status = 'working'; casesToUpdate.add(thisCase); } try{ Database.update(casesToUpdate, false); } catch (Exception e) { System.debug(e.getMessage()); } ``` What should a developer consider for an environment that has over 10,000 Case records? A. The try-catch block will handle any DML exceptions thrown. B. The try-catch block will handle exceptions thrown by governor limits. C. The transaction will fail due to exceeding the governor limit. D. The transaction will succeed and changes will be committed. ### Salesforce Certified Platform Developer I Time Remaining Show **38 of 60**. A developer creates a custom exception as shown below: `public class ParityException extends Exception {}` What are two ways the developer can fire the exception in Apex? Choose 2 answers A. `new ParityException();` B. `new FarityException('parity does not match');` C. `throw new ParityException('parity does not match');` D. `throw new ParityException();` You must select exactly 2 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **37 of 60**. Which statement describes the execution order when triggers are associated to the same object and event? A. Trigger execution order cannot be guaranteed. B. Triggers are executed alphabetically by trigger name. C. Triggers are executed in the order they are created. D. Triggers are executed in the order they are modified. Mark this item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **36 of 60**. Universal Containers is developing a new Lightning web component for their marketing department. They want to ensure that the component is fine tuned and provides a seamless user experience. What are some benefits of using the Lightning Component framework? A. Easy Integration with third-party libraries B. Automatic support for accessibility standards C. Better performance due to client-side rendering D. Compatibility with all web browsers Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **35 of 60**. Given the following Apex statement: ```java Account myAccount = [SELECT Id, Name FROM Account]; ``` What occurs when more than one Account is returned by the SOQL query? A. An unhandled exception is thrown and the code terminates. B. The query fails and an error is written to the debug log. C. The variable, myAccount, is automatically cast to the List data type. D. The first Account returned is assigned to myAccount. Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **34 of 60**. What are two ways for a developer to execute tests in an org? Choose 2 answers A. Metadata API B. Bulk API C. Developer Console D. Tooling API You must select exactly 2 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **33 of 60**. Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner? A. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications. B. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application. C. Set the attribute enableLightning to true in the definition. D. Rewrite all Visualforce pages as Lightning components. ### Salesforce Certified Platform Developer I Time Remaining Show **32 of 60**. The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted. What should be done to ensure that a user populates the Lead Source field prior to converting a Lead? A. Create an after trigger on Lead. B. Use a formula field. C. Use Lead Conversion field mapping. D Use a validation rule. ### Salesforce Certified Platform Developer I Time Remaining Show **31 of 60**. Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component? A. `@AuraEnabled` B. `@RemoteAction` C. `@RemoteAction(cachcable=truc)` D `@AuraEnabled(cacheable=true)` Mark this item for later review. Comments: Please Provide Feedback here... ``` 30 of 60. Refer to the following Apex code: Integer x = 0; do { x = 1; x++; } while (x < 1); System.debug(x); What is the value of x when it is written to the debug log? A. 0 B. 1 C. 2 D. 3 Mark this item for later review. Comments: ``` Time Remaining Show **29 of 60**. The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: ```java @AuraEnabled public void static updateLeads() { for (Lead thisLead : [SELECT Origin_c FROM Lead]) { thisLead.LeadSource = thisLead.Origin__c; update thisLead; } } ``` Which governor limit will likely be exceeded within the Apex transaction? A. Total number of records retrieved by SOQL queries B. Total number of SOQL queries issued ### Salesforce Certified Platform Developer I Time Remaining Show **28 of 60**. A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner? A. An error condition formula on a validation rule on Opportunity B. An Apex trigger on the Opportunity object C. A record trigger flow on the Opportunity object D. An approval process on the Opportunity object Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **27 of 60**. An Apex method, getAccounts, that returns a list of Accounts given a searchTerm, is available for Lightning Web Components to use. What is the correct definition of a Lightning Web Component property that uses the getAccounts method? A. `@AuraEnabled(getAccounts, { searchTerm: '$searchTerm' }) accountList;` B. `@AuraEnabled(getAccounts, '$searchTerm') accountList;` C. `@wire(getAccountS, { searchTerm: '$searchTerm' }) accountList;` D. `@wire(getAccounts, '$searchTerm') accountList;` ### Salesforce Certified Platform Developer I Time Remaining Show **26 of 60**. A developer needs to prevent the creation of Request_c records when certain conditions exist in the system. A RequestLogic class exists that checks the conditions. What is the correct implementation? A. `trigger RequestTrigger on Request_c (after insert) { RequestLogic.validateRecords(trigger.new); }` B. `trigger RequestTrigger on Request_c (before insert) { RequestLogic.validateRecords(trigger.new); }` C. `trigger RequestTrigger on Request_c (before insert) {` ### Salesforce Certified Platform Developer I Time Remaining Show **25 of 60**. A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality. What should the developer use to satisfy this requirement in the most efficient manner? A. Lightning Component B. Screen-based flow C. Approval process D. Apex trigger ### Salesforce Certified Platform Developer I Time Remaining Show **24 of 60**. 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:pageMessage severity="info" />` B. `<apex:facet name="messages" />` C. `<apex:pageMessages />` D. `<apex:message for="info"/>` ### Salesforce Certified Platform Developer I Time Remaining Show **23 of 60**. Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation. What would be the best solution for this requirement? A. Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If It Is Invalid B. Submit a REST API Callout with a JSON payload and validate the fields on a third party system * C. Use an Approval Process to enforce the completion of a valid email address using an outbound message action. ```java public static List<Lead> obtainAllFields(Set<Id> leadIds) { List<Lead> result = new List<Lead>(); for (Id leadId : leadIds) { result.add([SELECT FIELDS(STANDARD) FROM Lead WHERE Id = :leadId]); } return result; } ``` Given the multi-tenant architecture of the Salesforce platform, what is a best practice a developer should implement and ensure successful execution of the method? A. Avoid using variables as query filters. B. Avoid returning an empty List of records. C. Avoid performing queries inside for loops. D. Avoid executing queries without a limit clause. ### Salesforce Certified Platform Developer I Time Remaining Show **21 of 60**. 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 this component available? Choose 2 answers A. Add `<masterLabel>Account</masterLabel>` to the statusComponent.js-meta.xml file. B. Add `<target>lightning Record Page</target>` to the statusComponent.js file. C Set `isExposed` to true in the statusComponent.js-meta.xml file. ### Salesforce Certified Platform Developer I Time Remaining Show **20 of 60**. A custom object Trainer_c has a lookup field to another custom object Gym_c. Which SOQL query will get the record for the Viridian City Gym and all it's trainers? A. `SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_C WHERE Name = 'Viridian City Gym'` B. `SELECT id, (SELECT ID FROM Trainers_r) FROM Gym WHERE Name 'Viridian City Gym'` C. `SELECT Id, (SELECT Id FROM Trainers_c) FROM Gym_C WHERE Name = 'Viridian City Gym'` D. `SELECT ID FROM Trainer_C WHERE Gym_r.Name = 'Viridian City Gym'` Mark this item for later review ### Salesforce Certified Platform Developer I Time Remaining Show **19 of 60**. What are two characteristics related to formulas? Choose 2 answers A. Formulas are calculated at runtime and are not stored in the database. B. Formulas can reference themselves. C. Fields that are used in a formula field can be deleted or edited without editing the formula. D. Formulas can reference values in related objects. You must select exactly 2 responses. Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **18 of 60**. While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed? A. Use the without sharing keyword. B. Use the with sharing keyword. C. Use the inherited sharing keyword. D Use the WITH SECURITY ENFORCED clause within the SOQL. Mark this Item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **17 of 60**. What is an example of a polymorphic lookup field in Salesforce? A. The WhatId field on the standard Event object B. A custom field, Link_c, on the standard Contact object that looks up to an Account or a Campaign C. The LeadId and ContactId fields on the standard Campaign Member object D. The ParentId field on the standard Account object Mark this item for later review. Comments: Please Provide Feedback here... ### Salesforce Certified Platform Developer I Time Remaining Show **16 of 60**. A Salesforce administrator used Flow Builder to create a flow named "accountOnboarding". The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component? A. aura:flow B. lightning:flow C. aura:flow D. lightning-flow Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **15 of 60**. 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 three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers A. insert pageRef; B. Test.setCurrentPage (pageRef); C. `public ExtendedController(ApexPages.StandardController cntrl) {}` D. `ApexPages.currentPage().getParameters().put('input', 'TestValue');` E. `String nextPage controller.save().getUrl();` ### Salesforce Certified Platform Developer I Time Remaining Show **14 of 60**. Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI). What should the UC development team use to automatically run tests as part of their CI process? A. Force.com Toolkit B. Visual Studio Code C. Salesforce CLI D. Developer Console Mark this item for later review **13 of 60**. The OrderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet: ```java public class without sharing OrderHelper{ //code implementation } ``` A developer needs to create a constant named DELIVERY_MULTIPLIER with a value of 4.15. The value of the constant should not change at any time in the code. How should the developer declare the DELIVERY_MULTIPLIER constant to meet the business objectives? A. `static final decim.IVERY_MULTIEMULTIPLIER = 4.15;` B. `static decimal DEDELIVERY MULTLIER = 4.15;` **12 of 60**. Assuming that name is a String obtained by an <apex: inputText> tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers A. String query = '%' + name + '%'; List<Account> results = Database.query(query); B. String query = 'SELECT Id FROM Account WHERE Name LIKE \'' + name.noquotes 0 + '\''; List<Accounts results = Database.query(query); C. String query = 'SELECT Id FROM Account WHERE Name LIKE '%' + name + '%'; ; List<Account> results = Database.query(query); D. String query = 'SELECT Id FROM Account WHERE Name LIKE \'' + String.escapesingleQuotes (name) + '\''; List<Account> results Database.query(query); 11 of 60. Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout. ```xml <apex: page standardController="Account"> <!-- additional UI elements --> <apex:commandButton action="{!save)" value="Save"/> </apex:page> ``` When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce page. What can the developer use to meet this business requirement? A. Validation rule B. Apex trigger C. Custom controller D Controller extension ### Salesforce Certified Platform Developer I Time Remaining Show **10 of 60**. What should a developer do to check the code coverage of a class after running all tests? A. View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup. B. Select and run the class on the Apex Test Execution page in the Developer Console. C. View the Code Coverage column in the list view on the Apex Classes page. D View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab. Mark this item for later review. Comments: Time Remaining Show **9 of 60**. 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? Declare the class as global and use the public access modifier on the method. Declare the class and method using the public access modifier. 1. Declare the class as public and use the global access modifier on the method. 2. Declare the class and method using the global access modifier. Mar his item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **8 of 60**. Which two characteristics are true for Lightning Web Component custom events? Choose 2 answers A. By default a custom event only propagates to its immediate container and to its immediate child component. B. By default a custom event only propagates to it's immediate container. C. Data may be passed in the payload of a custom event using a property called detail. D. Data may be passed in the payload of a custom event using @wire decorated properties. You must select exactly 2 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **7 of 60**. A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated. What is the most appropriate debugging approach to troubleshoot the issue? A. Disable the trigger in production and test to see if the issue still occurs. B. Review the Historical Event logs to identify the source of the issue. C. Add system.debug statements to the code to track the execution flow and identify the issue. D. Use the Apex Interactive Debugger to step through the code and identify the Issue. Mark this item for later review. ### Salesforce Certified Platform Developer I Time Remaining Show **6 of 60**. Universal Containers wants to back up all of the data and attachments in its Salesforce org once a month. Which approach should a developer use to meet this requirement? A. Use the Data Loader command line. B. Schedule a report. C. Define a Data Export scheduled job. D. Create a Schedulable Apex class. Mark this item for later review. Comments: ### Salesforce Certified Platform Developer I Time Remaining Show **5 of 60**. A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose 2 answers A. Change Sets B. VSCode C. Developer Console D. SFDX CLI You must select exactly 2 responses. ### Salesforce Certified Platform Developer I Time Remaining Show **4 of 60**. A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user's default record type? A. Use the schema.userInfo.Opportunity.getDefaultRecordType() method. B. Create the opportunity and check the opportunity.recordType, which will have the record ID of the current user's default record type, before inserting. C Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() Is true. D. Query the Profile where the ID equals userInfo.getFrofileID() and then use the profile.Opportunity.getDefaultRecordType() method. ### Me Relianlmmy Show **3 of 60**. A software company uses the following objects and relationships: * Case: to handle customer support issues * Defect_c: a custom object to represent known issues with the company's software * Case_Defect_c: a junction object between Case and Defect_c to represent that a defect is a cause of a customer issue Case and Defect_c have Private organization-wide defaults. What should be done to share a specific Case_Defect_c record with a user? A. Share the Case Defect c record. B. Share the parent Defect_c record. C. Share the parent Case record. D Share the parent Case and Defect_c records. **2 of 60**. Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system when the user presses a custom button on the Opportunity detail page. Example values are as follows: Name Amount Account Which two

Use Quizgecko on...
Browser
Browser