Free DEX-450 Exam Braindumps
Programmatic Development using Apex and Visualforce in Lightning Experience Questions 226–230 (page: 47)

Updated On: 10-Feb-2026

A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?

  1. Assert that future dates are rejected by the method.
  2. Assert that past dates are accepted by the method.
  3. Assert that a null value is accepted by the method.
  4. Throwing a custom exception in the unit test.

Answer(s): A



A developer has created a Visualforce Page and Apex Controller that uses the With Sharing keyword. The page will be used of by Sales Managers and should only display Accounts owned by Sales Representatives who report to the running Sales Manager. The organization-wide sharing for Accounts is set to Private.

Which additional set of stops should the developer take?

  1. Create one Profile, two Permission Sets, and one Role.
  2. Create one Profile, one Permission Set, and one Role.
  3. Create one Profile, one Permission Set, and two Roles.
  4. Create two Profiles, one Permission Set, and one Role.

Answer(s): C



When would the use of Heroku Postgres be appropriate?

  1. To cache commonly accessed data for faster retrieval.
  2. To interconnect Microsoft SQL servers to Heroku Applications.
  3. To store and retrieve data using the Structured Query Language.
  4. To store user generated pictures and Word documents.

Answer(s): C



How can a custom type be identified as unique when added to a Set?

  1. Methods in the class must be static
  2. The class must implement the Equals and Hashcode methods
  3. Methods in the class must be global
  4. The class must have a method with the @InvocableMethod annotation

Answer(s): B



A sales manager wants to make sure that whenever an opportunity stage is changed to 'Closed Won', a new case will be of created for the support team to collect necessary information from the customer. How should a developer accomplish this?

  1. Create a Process Builder to create the new case.
  2. Set up a validation rule on the Opportunity Stage.
  3. Create a lookup field to the Case object on the opportunity object.
  4. Create a workflow rule to create the new case.

Answer(s): A



Viewing page 47 of 93
Viewing questions 231 - 235 out of 456 questions


Post your Comments and Discuss Salesforce DEX-450 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!