Salesforce Certified Platform Developer I v1.0

Page:    1 / 29   
Exam contains 430 questions

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.)

  • A. action
  • B. renderAs
  • C. standardController
  • D. readOnly
  • E. extensions


Answer : ABC

Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?

  • A. The API name is not changed and there are no other impacts.
  • B. The API name of the field and the reference in the test class is changed.
  • C. The API name of the field is changed, and a warning is issued to update the class.
  • D. The API name of the field and the reference in the test class is updated.


Answer : C

When is an Apex Trigger required instead of a Process Builder Process?

  • A. When a record needs to be created
  • B. When multiple records related to the triggering record need to be updated
  • C. When a post to Chatter needs to be created
  • D. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.


Answer : D

A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the
Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?

  • A. Create and populate a custom field on the parent object marked as Unique.
  • B. Create a custom field on the child object of type External Relationship.
  • C. Create and populate a custom field on the parent object marked as an External ID.
  • D. Create a custom field on the child object of type Foreign Key.


Answer : D

A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes.
How should the developer design the Apex classes?

  • A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
  • B. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
  • C. Have each class implement an interface that defines method getTextSummary() that returns the summary.
  • D. Have each class define method getTextSummary() that returns the summary.


Answer : C

Which approach should a developer use to add pagination to a Visualforce page?

  • A. A StandardController
  • B. The Action attribute for a page
  • C. The extensions attribute for a page
  • D. A StandardSetController


Answer : D

A developer is asked to create a PDF quote document formatted using the company's branding guidelines, and automatically save it to the Opportunity record.
Which two ways should a developer create this functionality? (Choose two.)

  • A. Install an application from the AppExchange to generate documents.
  • B. Create a Visualforce page with custom styling.
  • C. Create an email template and use it in Process Builder.
  • D. Create a visual flow that implements the companyג€™s formatting.


Answer : AB

Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

  • A. REST resource path URL
  • B. Workbench REST Explorer
  • C. Developer Console REST tab
  • D. Force.com IDE REST Explorer tab


Answer : B

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

  • A. Create a test class that provides coverage of the Visualforce page.
  • B. Create a test page that provides coverage of the Visualforce page.
  • C. Create a test page that provides coverage of the custom controller.
  • D. Create a test class that provides coverage of the custom controller.


Answer : D

What is a benefit of using an after insert trigger over using a before insert trigger?

  • A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
  • B. An after insert trigger allows a developer to insert other objects that reference the new record.
  • C. An after insert trigger allows a developer to make a callout to an external service.
  • D. An after insert trigger allows a developer to modify fields in the new record without a query.


Answer : B

The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job.
What should a developer do to meet these requirements?

  • A. Create a lookup field on the Construction Job object to the Machinery object.
  • B. Create a lookup field on the Machinery object to the Construction Job object.
  • C. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
  • D. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.


Answer : A

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

  • A. Use collections to store all fields from a related object and not just minimally required fields.
  • B. Use methods from the ג€Limitsג€ class to monitor governor limits.
  • C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
  • D. Use variables within Apex classes to store large amounts of data.


Answer : BC

Which set of roll-up types are available when creating a roll-up summary field?

  • A. COUNT, SUM, MIN, MAX
  • B. AVERAGE, SUM, MIN, MAX
  • C. SUM, MIN, MAX
  • D. AVRAGE, COUNT, SUM, MIN, MAX


Answer : A

What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

  • A. Account0.Phone=333-8781, Account1.Phone=333-8780
  • B. Account0.Phone=888-1515, Account1.Phone=999-2525
  • C. Account0.Phone=333-8780, Account1.Phone=333-8781
  • D. Account0.Phone=888-1515, Account1.Phone=999-1515


Answer : C

Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

  • A. <apex:stylesheet> tag
  • B. Inline CSS
  • C. <apex:style>tag
  • D. <apex:stylesheets>tag
  • E. A static resource


Answer : ABE

Page:    1 / 29   
Exam contains 430 questions

Talk to us!


Have any questions or issues ? Please dont hesitate to contact us

Certlibrary.com is owned by MBS Tech Limited: Room 1905 Nam Wo Hong Building, 148 Wing Lok Street, Sheung Wan, Hong Kong. Company registration number: 2310926
Certlibrary doesn't offer Real Microsoft Exam Questions. Certlibrary Materials do not contain actual questions and answers from Cisco's Certification Exams.
CFA Institute does not endorse, promote or warrant the accuracy or quality of Certlibrary. CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute.
Terms & Conditions | Privacy Policy