Salesforce

CRT-450 practice test

Practice with 15 free Testara sample questions, or choose paid access to the full 232-question bank.

Provider
Salesforce
Question bank
232
Free sample
15 questions
Publisher
Testara

About this practice material

This page covers Testara's practice question bank for CRT-450, a certification listed under Salesforce. Questions use original, exam-style scenarios and are not questions from the official certification exam.

Testara is an independent practice platform and is not affiliated with, endorsed by, or authorized by Salesforce. The certification credential is issued by Salesforce, not Testara. Certification and provider names belong to their respective owners.

Start practicing

The guest demo does not save an attempt. Sign in before buying access.

Try 15 questions free

Available without signing in

Free sample questions

These 15 questions and their explanations are server-rendered so you can inspect the material before opening the interactive demo.

  1. Question 1 · 1

    A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for testing? (Choose two.)

    Choose all answers that apply.

    • Developer Sandbox
    • Full Sandbox
    • Developer Edition
    • Partial Sandbox
    • Developer Pro Sandbox
  2. Question 2 · 1

    A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?

    Choose one answer.

    • Text Area
    • Text
    • Text Area (Long)
    • Text Area (Rich)
  3. Question 3 · 1

    A developer wants multiple test classes to use the same set of test data. How should the developer create the test data?

    Choose one answer.

    • Reference a test utility class in each test class.
    • Define variables for test records in each test class.
    • Create a Test Setup method for each test class.
    • Use the SeeAllData=true annotation in each test class.
  4. Question 4 · 1

    A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? (Choose two.)

    Choose all answers that apply.

    • Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().
    • Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues ().
    • Use Schema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().
    • Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues ().
  5. Question 5 · 1

    Which feature allows a developer to create test records for use in test classes?

    Choose one answer.

    • Documents
    • WebServiceTests
    • HttpCalloutMocks
    • Static Resources
  6. Question 6 · 1

    How many levels of child records can be returned in a single SOQL query from one parent object?

    Choose one answer.

    • 1
    • 3
    • 5
    • 7
  7. Question 7 · 1

    Which two declarative process automation features can be directly invoked when a field value changes on a record? (Choose two.)

    Choose all answers that apply.

    • Cloud Flow Designer flows
    • Process Builder processes
    • Validation rules
    • Workflow rules
  8. Question 8 · 1

    How can a developer warn users of SOQL governor limit violations in a trigger?

    Choose one answer.

    • Use Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of SOQL queries exceeds the limit.
    • Use PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of SOQL queries exceeds the limit.
    • Use Limits.getQueries() and display an error message before the number of SOQL queries exceeds the limit.
    • Use ApexMessage.Message() to display an error message after the number of SOQL queries exceeds the limit.
  9. Question 9 · 1

    Which control statement should a developer use to ensure that a loop body executes at least once?

    Choose one answer.

    • for (init_stmt; exit_condition; increment_stmt) {ג€¦}
    • do {ג€¦} while (condition)
    • while (condition) {ג€¦}
    • for (variable : list_or_set) {ג€¦}
  10. Question 10 · 1

    A developer creates a custom controller and custom Visualforce page by using the code block below. What can the user expect to see when accessing the custom page?

    Choose one answer.

    Question illustration 1
    • a, b, b
    • a, b, getMyString
    • a, a, a
    • b, a, getMyString
  11. Question 11 · 1

    A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master- Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?

    Choose one answer.

    • A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
    • A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
    • A Process Builder process that updates a field on the timecard when a timecard entry is created
    • An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
  12. Question 12 · 1

    An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements: update allContacts; update allCases; What is the result if the Case update exceeds the governor limit for maximum number of DML records?

    Choose one answer.

    • The Account save fails and no Contacts or Cases are updated.
    • The Account save succeeds and no Contacts or Cases are updated.
    • The Account save succeeds, Contacts are updated, but Cases are not.
    • The Account save is retried using a smaller trigger batch size.
  13. Question 13 · 1

    A company has a custom object named Region. Each Account in Salesforce can only be related to one Region at a time, but this relationship is optional. Which type of relationship should a developer use to relate an Account to a Region?

    Choose one answer.

    • Parent-Child
    • Hierarchical
    • Lookup
    • Master-Detail
  14. Question 14 · 1

    How can a developer get all of the available record types for the current user on the Case object?

    Choose one answer.

    • Use DescribeSObjectResult of the Case object.
    • Use SOQL to get all Cases.
    • Use DescribeFieldResult of the Case.RecordType field.
    • Use Case.getRecordTypes().
  15. Question 15 · 1

    A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create?

    Choose one answer.

    • after delete
    • after undelete
    • before undelete
    • before delete

Each purchase applies to this certification. Prices are one-time payments, not monthly subscriptions.

Starter

$29 USD one time

Full access to one certification's question bank in standard practice mode for 60 days.

  • Full question bank for one certification
  • 60 days of access
  • Standard practice mode
  • Question notes and community discussions
  • Attempt scores and answer review

Professional

$49 USD one time

Full access to one certification's question bank, custom test controls and advanced analytics for 60 days.

  • Custom test builder
  • Timers and question selection
  • Randomized question and answer order
  • Advanced performance and weak-question analytics
  • Priority customer support
Try 15 questions free