CRT-450 Exam Details

  • Exam Code
    :CRT-450
  • Exam Name
    :Salesforce Certified Platform Developer I (CRT-450)
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :629 Q&As
  • Last Updated
    :May 25, 2026

Salesforce CRT-450 Online Questions & Answers

  • Question 411:

    A developer uses a test setup method to create an account named 'test'. The first method deletes the account record. What must be done in the second test method to use the account?

    A. Use select id from account where name='test'
    B. Restore the account using an undelete statement
    C. Call the test setup method at the start of the test
    D. The account cannot be used in the second method

  • Question 412:

    Which three Salesforce resources can be accessed from a Lightning web component' Choose 3 answers

    A. SVG resources
    B. Third-party web components
    C. Content asset files
    D. Static resources
    E. All external libraries

  • Question 413:

    Given the following block code: try{ List retrievedRecords = [SELECT Id FROM Account WHERE Website = null]; }catch(Exception e){ //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?

    A. Check the state of the retrieveRecords variable and throw a custom exception if the variable is empty.
    B. Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty
    C. Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
    D. Replace the retrievedRecords variable declaration from a List of Account to a single Account.

  • Question 414:

    Which approach should a developer take to automatically add a "Maintenance Plan" to each Opportunity that includes an "Annual Subscription" when an opportunity is closed?

    A. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.
    B. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.
    C. Build an Opportunity trigger that adds a PriceBookEntry record.
    D. Build an Opportunity trigger that adds an OpportunityLineItem record.

  • Question 415:

    A developer needs to include a visualforce page in the detail section of a page layout for the account object, but does not see the page as an available option in the page layout editorwhich attribute must the developer include in the tag to ensure the visualforce page can be embedded in a page layout

    A. Controller="account"
    B. Extensions="accountcontroller"
    C. Standardcontroller="account"
    D. Action="accountid"

  • Question 416:

    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?

    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'))

  • Question 417:

    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?

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

  • Question 418:

    When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?

    A. Build an Account Assignment Rule.
    B. Build an Account custom Trigger.
    C. Build an account Approval Process
    D. Build an Account Workflow Rule.

  • Question 419:

    What are two use cases for executing Anonymous Apex code? Choose 2 answers

    A. To delete 15,000 inactive Accounts In a single transaction after a deployment
    B. To schedule an Apex class to run periodically
    C. To run a batch Apex class to update all Contacts
    D. To add unit test code coverage to an org

  • Question 420:

    What are two valid options for iterating through each Account in the collection List named AccountList? (Choose two.)

    A. for (Account theAccount : AccountList) {...}
    B. for(AccountList) {...}
    C. for (List L : AccountList) {...}
    D. for (Integer i=0; i < AccountList.Size(); i++) {...}

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CRT-450 exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.