Free DEX-450 Exam Braindumps (page: 9)

Page 8 of 115

How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

  1. Create a Sharing Rule comparing the custom object owner to the account owner.
  2. Create a validation rule on the custom object comparing the record owners on both records.
  3. Include the sharing related list on the custom object page layout.
  4. Ensure that the relationship between the objects is Master-Detail.

Answer(s): D



An org has a single account named `NoContacts' that has no related contacts. Given the query:
List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`NoContacts'];

What is the result of running this Apex?

  1. accounts[0].contacts is invalid Apex.
  2. accounts[0].contacts is an empty Apex.
  3. accounts[0].contacts is Null.
  4. A QueryException is thrown.

Answer(s): B



A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.

Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.)

  1. action
  2. renderAs
  3. standardController
  4. readOnly
  5. extensions

Answer(s): A,B,C



Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.

What is the end result?

  1. The API name is not changed and there are no other impacts.
  2. The API name of the field and the reference in the test class is changed.
  3. The API name of the field is changed, and a warning is issued to update the class.
  4. The API name of the field and the reference in the test class is updated.

Answer(s): C






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

DEX-450 Discussions & Posts