Salesforce crt-450 practice test

Exam Title: Salesforce Certified Platform Developer I

Last update: Dec 12 ,2025
Question 1

A developer needs to confirm that a Contact trigger works correctly without changing the
organization's dat
a. what should the developer do to test the Contact trigger?

  • A. Use the New button on the Salesforce Contacts Tab to create a new Contact record.
  • B. Use the Open execute Anonymous feature on the Developer Console to run an 'insert Contact' DML statement
  • C. Use Deploy from the VSCode IDE to display an 'insert Contact' Apex class.
  • D. Use the Test menu on the Developer Console to run all test classes for the Contact trigger
Answer:

D


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 2

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 injections? Choose 2 answers

  • A. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\''; List<Account> results = Database.query(query);
  • B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\''; List<Account> results = Database.query(query);
  • C. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\''; List<Account> results = Database.query(query);
  • D. String query = '%' + name + '%'; List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
Answer:

BD


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 3

A team of developers is working on a source-driven project that allows them to work independently,
with many different org configurations. Which type of Salesforce orgs should they use for their
development?

  • A. Developer sandboxes
  • B. Scratch orgs
  • C. Full Copy sandboxes
  • D. Developer orgs
Answer:

B


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 4

Which code displays the content of Visualforce page as PDF?

  • A. <apex:page renderAs=”pdf”>
  • B. <apex:page readeras’’ application/pdf’’>
  • C. <apex:page readerAs= ‘’application/pdf’’>
  • D. <apex:page contentype ‘’ application/pdf’’)
Answer:

A


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 5

A developer needs to implement the functionality for a service agent to gather multiple
pieces of information from a customer in order to send a replacement credit card.
Which automation tool meets these requirements?

  • A. Flow Builder
Answer:

A


vote your answer:
A
A 0
Comments
Question 6

What does the Lightning Component framework provide to developers?

  • A. Extended governor limits for applications
  • B. Prebuilt component that can be reused.
  • C. Templates to create custom components.
  • D. Support for Classic and Lightning UIS.
Answer:

B


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 7

Which two are phases in the Salesforce Application Event propagation framework? Choose
2 answers

  • A. Bubble
  • B. Default
  • C. Capture
Answer:

B, C


vote your answer:
A
B
C
A 0 B 0 C 0
Comments
Question 8

A developer must create a DrawList class that provides capabilities defined in the Sortable and
Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); }
Which is the correct implementation?

  • A. Public class DrawList implements Sortable, Implements Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/} ]
  • B. Public class DrawList extends Sortable, Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/} }
  • C. Public class DrawList implements Sortable, Drawable { public void sort() { /*implementation*/} public void draw() { /*implementation*/} }
  • D. Public class DrawList extends Sortable, extends Sortable, extends Drawable { public void sort() { /*implementation*/ } public void draw() { /* implementation */}
Answer:

C


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 9

Given the following Anonymous Block:

Which one do you like?
What should a developer consider for an environment that has over 10,000 Case records?

  • A. The transaction will fail due to exceeding the governor limit.
  • B. The try/catch block will handle any DML exceptions thrown.
  • C. The transaction will succeed and changes will be committed.
  • D. The try/catch block will handle exceptions thrown by governor limits.
Answer:

C


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 10

A developer needs to prevent the creation of Request_c records when certain conditions exist in the
system. A RequestLogic class exists to checks the conditions. What is the correct implementation?

  • A. Trigger RequestTrigger on Request (after insert) { RequestLogic.validateRecords {trigger.new}; }
  • B. Trigger RequestTrigger on Request (before insert) { RequestLogic.validateRecords {trigger.new}; }
  • C. Trigger RequestTrigger on Request (before insert) { if (RequestLogic.isvalid{Request}) Request.addError {'Your request cannot be created at this time.'}; }
  • D. Trigger RequestTrigger on Request (after insert) { if (RequestLogic.isValid{Request}) Request.addError {'Your request cannot be created at this time.'}; }
Answer:

B


vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Page 1 out of 29
Viewing questions 1-10 out of 298
Go To
page 2