Recommend!!
Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
Salesforce
Exam Questions Platform-Developer-I
Platform Developer I
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Recommend!! Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
NEW QUESTION 1
Which scenario is valid for execution by unit tests?
A. Load data from a remote site with a callout.
B. Set the created date of a record using a system method.
C. Execute anonymous Apex as a different user.
D. Generate a Visualforce PDF with geccontentAsPDF ().
Answer: B
NEW QUESTION 2
What are two ways for a developer to execute tests in an org?
A. Tooling API
B. Developer console
C. Bulk API
D. Matadata API
Answer: AB
NEW QUESTION 3
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: B
NEW QUESTION 4
The following automations already exist on the Account object;
• A workflow rule that updates a field when a certain criteria is met
• A custom validation on a field
• A How that updates related contact records
A developer created a trigger on the Account object.
What should the developer consider while testing the trigger code?
A. The flow may be launched multiple times.
B. Workflow rules will fire only after the trigger has committed all DML operations to the database.
C. A workflow rule field update will cause the custom validation to run again.
D. The trigger may fire multiple times during a transaction.
Answer: D
NEW QUESTION 5
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: BCD
NEW QUESTION 6
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
NEW QUESTION 7
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be
presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.
What should a developer use to satisfy this requirement?
A. An Apex controller
B. An Apex REST class
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Recommend!! Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
C. An outbound message
D. An invocable method
Answer: B
NEW QUESTION 8
The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist:
• Rollup summary fields
• Custom validation rules
• Duplicate rules
A developer created a trigger on the Account object.
What two things should the developer consider while testing the trigger code? Choose 2 answers
A. Rollup summary fields can cause the parent record to go through Save.
B. The trigger may fire multiple times during a transaction.
C. Duplicate rules are executed once all DML operations commit to the database.
D. The validation rules will cause the trigger to fire again.
Answer: AB
NEW QUESTION 9
Which two are best practices when it comes to component and application event handling? (Choose two.)
A. Reuse the event logic in a component bundle, by putting the logic in the helper.
B. Use component events to communicate actions that should be handled at the application level.
C. Handle low-level events in the event handler and re-fire them as higher-level events.
D. Try to use application events as opposed to component events.
Answer: AC
NEW QUESTION 10
Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application
may apply for more than one job.
What should a developer implement to represent that an applicant has applied for a job?
A. Master-detail field from Applicant to Job
B. Formula field on Applicant that references Job
C. Junction object between Applicant and Job
D. Lookup field from Applicant to Job
Answer: A
NEW QUESTION 11
What should a developer use to script the deployment and unit test execution as part of continuous integration?
A. Developer Console
B. Execute Anonymous
C. Salesforce CLI
D. VS Code
Answer: C
NEW QUESTION 12
Which action may cause triggers to fire?
A. Updates to Feed Items
B. Renaming or replacing a picklist entry
C. Changing a user's default division when the transfer division option is checked
D. Cascading delete operations
Answer: A
NEW QUESTION 13
How does the Lightning Component framework help developers implement solutions faster?
A. By providing an Agile process with default steps
B. By providing code review standards and processes
C. By providing device-awareness for mobile and desktops
D. By providing change history and version control
Answer: C
NEW QUESTION 14
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting
vulnerability?
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Recommend!! Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
A. ApexPages.currentPage() .getParameters() .get('url_param')
B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
C. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
D. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
Answer: B
NEW QUESTION 15
A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the
test?
A. Use Anonymous Apex to create the required data.
B. Use Test.loadDataO < > and reference a CSV file in a static resource.
C. Use SOQL to query the org for the required data.
D. Use Test.loadDataO and reference a JSON file in Documents.
Answer: B
NEW QUESTION 16
A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the
OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through
different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce.
Which two actions will prevent the duplicate order records from being created in Salesforce? Choose 2 answers
A. Ensure that the order number in the OMS is unique.
B. Use the order number from the OMS as an external ID.
C. Use the email on the contact record as an external ID.
D. Write a before trigger on the order object to delete any duplicates.
Answer: AD
NEW QUESTION 17
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without
sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems =
new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId =
:thisOppId)]; } return oppLineItems; } }
The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor
limit?
A. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
B. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.
C. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
D. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
Answer: D
NEW QUESTION 18
A developer considers the following snippet of code:
Based on this code, what is the value of x?
A. 3
B. 1
C. 4
D. 2
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Recommend!! Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
Answer: C
NEW QUESTION 19
A developer is implementing an Apex class for a financial system. Within the class, the variables ‘creditAmount’ and ‘debtAmount’ should not be able to change
once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers
A. Use the static keyword and assign its value in the class constructor.
B. Use the final keyword and assign its value in the class constructor.
C. Use the static keyword and assign its value in a static initializer.
D. Use the final keyword and assign its value when declaring the variable.
Answer: BD
NEW QUESTION 20
The Job_Application__c custom object has a field that is a Master-Detail relationship to the Contact object, where the Contact object is the Master. As part of a
feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is ‘Technology’ while also retrieving
the contact’s Job_Application__c records.
Based on the object’s relationships, what is the most efficient statement to retrieve the list of contacts?
A. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHERE Account.Industry = ‘Technology’];
B. [SELECT Id, (SELECT Id FROM Job_Applications_r) FROM Contact WHEREAccounts.Industry = ‘Technology’];
C. [SELECT Id, (SELECT Id FROM Job_Applications_c) FROM Contact WHERE Accounts.Industry = ‘Technology’];
D. [SELECT Id, (SELECT Id FROM Job_Application_c) FROM Contact WHERE Account.Industry = ‘Technology’];
Answer: B
NEW QUESTION 21
......
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Recommend!! Get the Full Platform-Developer-I dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/Platform-Developer-I-exam-dumps.html (169 New Questions)
Thank You for Trying Our Product
We offer two products:
1st - We have Practice Tests Software with Actual Exam Questions
2nd - Questons and Answers in PDF Format
Platform-Developer-I Practice Exam Features:
* Platform-Developer-I Questions and Answers Updated Frequently
* Platform-Developer-I Practice Questions Verified by Expert Senior Certified Staff
* Platform-Developer-I Most Realistic Questions that Guarantee you a Pass on Your FirstTry
* Platform-Developer-I Practice Test Questions in Multiple Choice Formats and Updatesfor 1 Year
100% Actual & Verified — Instant Download, Please Click
Order The Platform-Developer-I Practice Test Here
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
Powered by TCPDF (www.tcpdf.org)