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?
Create a lookup field on the Construction Job object to the Machinery object.
Create a lookup field on the Machinery object to the Construction Job object.
Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
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.)
Use collections to store all fields from a related object and not just minimally required fields.
Use methods from the ג€Limitsג€ class to monitor governor limits.
Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
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?
COUNT, SUM, MIN, MAX
AVERAGE, SUM, MIN, MAX
SUM, MIN, MAX
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?
Account0.Phone=333-8781, Account1.Phone=333-8780
Account0.Phone=888-1515, Account1.Phone=999-2525
Account0.Phone=333-8780, Account1.Phone=333-8781
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.)