Salesforce CRT-450 Exam Practice Questions (P. 5)
- Full Access (440 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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?
What should a developer do to meet these requirements?
- ACreate a lookup field on the Construction Job object to the Machinery object.
- BCreate a lookup field on the Machinery object to the Construction Job object.
- CCreate a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.Most Voted
- DCreate a Master-Detail Lookup on the Machinery object to the Construction Job object.
Correct Answer:
A
A
send
light_mode
delete
Question #42
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)
- AUse collections to store all fields from a related object and not just minimally required fields.
- BUse methods from the ג€Limitsג€ class to monitor governor limits.
- CUse SOQL for loops to iterate data retrieved from queries that return a high number of rows.
- DUse variables within Apex classes to store large amounts of data.
Correct Answer:
BC
BC
send
light_mode
delete
Question #43
Which set of roll-up types are available when creating a roll-up summary field?
- ACOUNT, SUM, MIN, MAXMost Voted
- BAVERAGE, SUM, MIN, MAX
- CSUM, MIN, MAX
- DAVRAGE, COUNT, SUM, MIN, MAX
Correct Answer:
A
A
send
light_mode
delete
Question #44
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?


- AAccount0.Phone=333-8781, Account1.Phone=333-8780
- BAccount0.Phone=888-1515, Account1.Phone=999-2525
- CAccount0.Phone=333-8780, Account1.Phone=333-8781Most Voted
- DAccount0.Phone=888-1515, Account1.Phone=999-1515
Correct Answer:
C
C
send
light_mode
delete
Question #45
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
- A<apex:stylesheet> tag
- BInline CSS
- C<apex:style>tag
- D<apex:stylesheets>tag
- EA static resource
Correct Answer:
ABE
ABE
send
light_mode
delete
Question #46
A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;
Which two exceptions may occur when it executes? (Choose two.)
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;
Which two exceptions may occur when it executes? (Choose two.)
- ACPU limit exception due to the complexity of the query.
- BSOQL query row limit exception due to the number of contacts.Most Voted
- CSOQL query limit exception due to the number of contacts.
- DSOQL query row limit exception due to the number of accounts.Most Voted
Correct Answer:
CD
CD
send
light_mode
delete
Question #47
Which three tools can deploy metadata to production? (Choose three.)
- AChange Set from Developer Org
- BForce.com IDEMost Voted
- CData Loader
- DChange Set from SandboxMost Voted
- EMetadata APIMost Voted
Correct Answer:
ADE
ADE
send
light_mode
delete
Question #48
A developer needs to display all of the available fields for an object.
In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
- AUse myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
- BUse mySObject.myObject.fields.getMap() to return a map of fields.
- CUse Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.Most Voted
- DUse getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.Most Voted
Correct Answer:
BC
BC
send
light_mode
delete
Question #49
How should a developer avoid hitting the governor limits in test methods?
- AUse @TestVisible on methods that create records.
- BUse Test.loadData() to load data from a static resource.
- CUse @IsTest (SeeAllData=true) to use existing data.
- DUse Test.startTest() to reset governor limits.
Correct Answer:
D
D
send
light_mode
delete
Question #50
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
- ANumber maps to Decimal.Most Voted
- BNumber maps to Integer.
- CTextArea maps to List of type String.
- DDate/Time maps to Dateline.Most Voted
- ECheckbox maps to Boolean.Most Voted
Correct Answer:
ADE
ADE
send
light_mode
delete
All Pages