CRT-450 Practice Test

CRT-450 Practice Test practice questions, page 9 of 18, with answer review and explanations.

Question 41

The operation manager at a construction company uses a custom object called Machinery to manage the usage and maintenance of its cranes and other machinery. The manager wants to be able to assign machinery to different constructions jobs, and track the dates and costs associated with each job. More than one piece of machinery can be assigned to one construction job. What should a developer do to meet these requirements?

  1. Create a lookup field on the Construction Job object to the Machinery object.
  2. Create a lookup field on the Machinery object to the Construction Job object.
  3. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
  4. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.

Question 42

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

  1. Use collections to store all fields from a related object and not just minimally required fields.
  2. Use methods from the ג€Limitsג€ class to monitor governor limits.
  3. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
  4. Use variables within Apex classes to store large amounts of data.

Question 43

Which set of roll-up types are available when creating a roll-up summary field?

  1. COUNT, SUM, MIN, MAX
  2. AVERAGE, SUM, MIN, MAX
  3. SUM, MIN, MAX
  4. AVRAGE, COUNT, SUM, MIN, MAX

Question 44

What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

  1. Account0.Phone=333-8781, Account1.Phone=333-8780
  2. Account0.Phone=888-1515, Account1.Phone=999-2525
  3. Account0.Phone=333-8780, Account1.Phone=333-8781
  4. Account0.Phone=888-1515, Account1.Phone=999-1515

Question 45

Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

  1. <apex:stylesheet> tag
  2. Inline CSS
  3. <apex:style>tag
  4. <apex:stylesheets>tag
  5. A static resource