Salesforce Certified Platform Developer I v1.0 (CRT-450)

Page:    1 / 17   
Total 253 questions

What are two uses for External IDs? (Choose two.)

  • A. To create relationships between records imported from an external system.
  • B. To create a record in a development environment with the same Salesforce ID as in another environment
  • C. To identify the sObject type in Salesforce
  • D. To prevent an import from creating duplicate records using Upsert


Answer : AD

A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.
Which step should the developer take to resolve the issue and properly test the exception?

  • A. Use try/catch within the unit test to catch the exception.
  • B. Use the finally bloc within the unit test to populate the exception.
  • C. Use the database methods with all or none set to FALSE.
  • D. Use Test.isRunningTest() within the custom controller.


Answer : A

Which SOQL query successfully returns the Accounts grouped by name?

  • A. SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name
  • B. SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name
  • C. SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name
  • D. SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5


Answer : B

For which three items can a trace flag be configured? (Choose three.)

  • A. Apex Trigger
  • B. Apex Class
  • C. Process Builder
  • D. User
  • E. Visualforce


Answer : ABD

A developer is asked to create a custom Visualforce page that will be used as a dashboard component.
Which three are valid controller options for this page? (Choose three.)

  • A. Use a standard controller.
  • B. Use a standard controller with extensions.
  • C. Use a custom controller with extensions.
  • D. Do not specify a controller.
  • E. Use a custom controller.


Answer : ABE

A Platform Developer needs to implement a declarative solution that will display the most recent Closed Won date for all Opportunity records associated with an
Account.
Which field is required to achieve this declaratively?

  • A. Roll-up summary field on the Opportunity object
  • B. Cross-object formula field on the Opportunity object
  • C. Roll-up summary field on the Account object
  • D. Cross-object formula field on the Account object


Answer : C

Which three statements are true regarding the @isTest annotation? (Choose three.)

  • A. A method annotated @isTest(SeeAllData=true) in a class annotated @isTest(SeeAllData=false) has access to all org data.
  • B. A method annotated @isTest(SeeAllData=false) in a class annotated @isTest(SeeAllData=true) has access to all org data.
  • C. A class containing test methods counts toward the Apex code limit regardless of any @isTest annotation.
  • D. Products and Pricebooks are visible in a test even if a class is annotated @isTest(SeeAllData=false).
  • E. Profiles are visible in a test even if a class is annotated @isTest(SeeAllData=false).


Answer : BCE

What is the data type returned by the following SOSL search?
[FIND ג€˜Acme*ג€™ IN NAME FIELDS RETURNING Account, Opportunity];

  • A. List<List<Account>, List<Opportunity>>
  • B. Map<sObject, sObject>
  • C. List<List<sObject>>
  • D. Map<Id, sObject>


Answer : C

A company wants to create an employee rating program that allows employees to rate each other. An employeeג€™s average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records.
Which two actions should a developer take to accomplish this task? (Choose two.)

  • A. Create a trigger on the Rating object that updates a fields on the Employee object.
  • B. Create a lookup relationship between the Rating and Employee object.
  • C. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
  • D. Create a master-detail relationship between the Rating and Employee objects.


Answer : CD

Which two SOSL searches will return records matching search criteria contained in any of the searchable text fields on an object? (Choose two.)

  • A. [FIND ג€˜Acme*ג€™ IN ANY FIELDS RETURNING Account, Opportunity];
  • B. [FIND ג€˜Acme*ג€™ RETURNING Account, Opportunity];
  • C. [FIND ג€˜Acme*ג€™ IN ALL FIELDS RETURNING Account, Opportunity];
  • D. [FIND ג€˜Acme*ג€™ IN TEXT FIELDS RETURNING Account, Opportunity];


Answer : BC

For which example task should a developer use a trigger rather than a workflow rule?

  • A. To set the Name field of an expense report record to Expense and the Date when it is saved
  • B. To send an email to a hiring manager when a candidate accepts a job offer
  • C. To notify an external system that a record has been modified
  • D. To set the primary Contact on an Account record when it is saved


Answer : D

Which feature should a developer use to update an inventory count on related Product records when the status of an Order is modified to indicate it is fulfilled?

  • A. Process Builder process
  • B. Lightning component
  • C. Visualforce page
  • D. Workflow rule


Answer : A

A developer has JavaScript code that needs to be called by controller functions in multiple Aura components by extending a new abstract component.
Which resource in the abstract Aura component bundle allows the developer to achieve this?

  • A. helper.js
  • B. controller.js
  • C. superRender.js
  • D. renderer.js


Answer : A

Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?

  • A. Sandbox template
  • B. Data Loader
  • C. Data Import Wizard
  • D. Salesforce-to-Salesforce


Answer : C

Which two components are available to deploy using the Metadata API? (Choose two.)

  • A. Lead Conversion Settings
  • B. Web-to-Case
  • C. Web-to-Lead
  • D. Case Settings


Answer : AD

Page:    1 / 17   
Total 253 questions