CRT-450 Mock Test Free – 50 Realistic Questions to Prepare with Confidence.
Getting ready for your CRT-450 certification exam? Start your preparation the smart way with our CRT-450 Mock Test Free – a carefully crafted set of 50 realistic, exam-style questions to help you practice effectively and boost your confidence.
Using a mock test free for CRT-450 exam is one of the best ways to:
- Familiarize yourself with the actual exam format and question style
- Identify areas where you need more review
- Strengthen your time management and test-taking strategy
Below, you will find 50 free questions from our CRT-450 Mock Test Free resource. These questions are structured to reflect the real exam’s difficulty and content areas, helping you assess your readiness accurately.
Which three web technologies can be integrated into a Visualforce page? (Choose three.)
A. JavaScript
B. CSS
C. Java
D. PHP
E. HTML
While working in a sandbox, an Apex test falls when run in the Test Framework. However, running the Apex test logic in the Execute Anonymous window succeeds with no exceptions or errors. Why did the method fall in the sandbox test framework but succeed in the Developer Console?
A. The test method is calling an @future method.
B. The test method has a syntax error in the code.
C. The test method does not use System.runAs to execute as a specific user.
D. The test method relies on existing data in the sandbox.
When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items. What should a developer do to meet this requirement?
A. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
B. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
C. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
D. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.
When is an Apex Trigger required instead of a Process Builder Process?
A. When a record needs to be created
B. When multiple records related to the triggering record need to be updated
C. When a post to Chatter needs to be created
D. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.
Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage. Which two strategies can a developer use to accomplish this? (Choose two.)
A. Use an after-save flow.
B. Use a validation rule.
C. Use the Process Automation Settings.
D. Use a trigger.
How many levels of child records can be returned in a single SOQL query from one parent object?
A. 1
B. 3
C. 5
D. 7
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.)
A. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
B. Use mySObject.myObject.fields.getMap() to return a map of fields.
C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.
D. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.
What are two uses for External IDs? (Choose two.)
A. To create relationships between records imported from an external system.
B. To create a record in a development environment with the same Salesforce ID as in another environment
C. To identify the sObject type in Salesforce
D. To prevent an import from creating duplicate records using Upsert
Which statement results in an Apex compiler error?
A. Map lmap = new Map([Select ID from Lead Limit 8]);
B. Date d1 = Date.Today(), d2 = Date.ValueOf(‘2018-01-01’);
C. Integer a=5, b=6, c, d = 7;
D. List s = List{‘a’,’b’,’c’);
A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use Data Loader instead of Data Import Wizard?
A. Data Loader runs from the developer’s browser.
B. Data Loader automatically relates Opportunities to Accounts.
C. Data Import Wizard does not support Opportunities.
D. Data Import Wizard can not import all 500 records.
A custom object Trainer__c has a lookup field to another custom object Gym__c. Which SOQL query will get the record for the Viridian City Gym and all its trainers?
A. SELECT ID FROM Trainer__c WHERE Gym__r.Name = ‘Viridian City Gym’
B. SELECT Id, (SELECT Id FROM Trainers__c) FROM Gym__c WHERE Name = ‘Viridian City Gym’
C. SELECT Id, (SELECT Id FROM Trainer__c) FROM Gym__c WHERE Name = ‘Viridian City Gym’
D. SELECT Id, (SELECT Id FROM Trainers__r) FROM Gym__c WHERE Name = ‘Viridian City Gym’
Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c. Users should be able to associate multiple Engineering_Support__c records to a single Opportunity record. Additionally, aggregate information about the Engineering_Support__c records should be shown on the Opportunity record. What should a developer implement to support these requirements?
A. Master-detail field from Opportunity to Engineering_Support__c
B. Lookup field from Engineering_Support__c to Opportunity
C. Lookup field from Opportunity to Engineering_Support__c
D. Master-detail field from Engineering_Support__c to Opportunity
Which three statements are true regarding cross-object formulas? (Choose three.)
A. Cross-object formulas can reference fields from objects that are up to 10 relationships away.
B. Cross-object formulas can reference fields from master-detail or lookup relationships.
C. Cross-object formulas can reference child fields to perform an average.
D. Cross-object formulas can expose data the user does not have access to in a record.
E. Cross-object formulas can be referenced in roll-up summary fields.
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?
A. Use the schema describe calls to determine if the logged-in user has access to the Account object.
B. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
C. Use the with sharing keyword on the class declaration.
D. Use the without sharing keyword on the class declaration.
A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? (Choose two.)
A. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.
B. Use partial DML statements to ensure only valid data is committed.
C. Use the System.Limit class to monitor the current CPU governor limit consumption.
D. Use the Database.Savepoint method to enforce database integrity.
Application Events follow the traditional publish-subscribe model. Which method is used to fire an event?
A. registerEvent()
B. fireEvent()
C. emit()
D. fire()
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
A. tag
B. Inline CSS
C. tag
D. tag
E. A static resource
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
A. A custom exception class must extend the system Exception class.
B. A custom exception class can implement one or many interfaces.
C. A custom exception class cannot contain member variables or methods.
D. A custom exception class name must end with ג€Exceptionג€.
E. A custom exception class can extend other classes besides the Exception class.
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? (Choose two.)
A. SFDX CLI
B. Developer Console
C. Change Sets
D. VSCode
A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.Which is the correct implementation? A.
B.
C.
D.
A developer created a Lightning web component called StatusComponent to be inserted into the Account record page. Which two things should the developer do to make this component available? (Choose two.)
A. Add true to the statusComponent.js-meta.xml file.
B. Add lightning_RecordPage to the statusComponent.js file.
C. Add lightning_RecordPage to the statusComponent.js-meta.xml file.
D. Add Account to the statusComponent.js-meta.xml file.
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing_Structure__c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records. Which two approaches can the developer use to ensure Pricing_Structure__c records are available when the test class is executed? (Choose two.)
A. Use the Test.loadTest() method.
B. Use the @IsTest(SeeAllData=true) annotation.
C. Use a Test Data Factory class.
D. Use without sharing on the class declaration.
What is a benefit of developing applications in a multi-tenant environment?
A. Access to predefined computing resources
B. Enforced best practices for development
C. Unlimited processing power and memory
D. Default out-of-the-box configuration
Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? (Choose three.)
A. Flows
B. Roll-up summaries
C. Triggers
D. Relationships
E. Custom objects and fields
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a `maximum trigger depth exceeded` error occurs in certain situations. Which two reasons possibly explain the Account trigger firing recursively? (Choose two.)
A. Changes to Opportunities are causing cross-object workflow field updates to be made on the Account.
B. Changes to Opportunities are causing roll-up summary fields to update on the Account.
C. Changes are being made to the Account during an unrelated parallel save operation.
D. Changes are being made to the Account during Criteria Based Sharing evaluation.
A developer wants to invoke an outbound message when a record meets a specific criteria. Which three features satisfy this use case? (Choose three.)
A. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
B. Process builder can be used to check the record criteria and send an outbound message without Apex Code.
C. Approval Process has the capability to check the record criteria and send an outbound message without Apex Code.
D. Workflows can be used to check the record criteria and send an outbound message.
E. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)
A. Use a Visual Workflow.
B. Use a validation rule.
C. Use the Process Automation Settings.
D. Use a Trigger.
Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account]; What occurs when more than one Account is returned by the SOQL query?
A. The variable, myAccount, is automatically cast to the List data type.
B. The first Account returned is assigned to myAccount.
C. The query fails and an error is written to the debug log.
D. An unhandled exception is thrown and the code terminates.
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?
A.
B.
C.
D.
A developer has two custom controller extensions where each has a save() method.Which save() method will be called for the following Visualforce page?
A. ExtensionA save()
B. ExtensionB save()
C. standard controller save()
D. Runtime error will be generated
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?
A. Declare the class and method using the public access modifier.
B. Declare the class as global and use the public access modifier on the method.
C. Declare the class as public and use the global access modifier on the method.
D. Declare the class and method using the global access modifier.
Which approach should a developer take to automatically add a `Maintenance Plan` to each Opportunity that includes an `Annual Subscription` when an opportunity is closed?
A. Build a OpportunityLineItem trigger that adds a PriceBookEntry record.
B. Build an OpportunityLineItem trigger to add an OpportunityLineItem record.
C. Build an Opportunity trigger that adds a PriceBookEntry record.
D. Build an Opportunity trigger that adds an OpportunityLineItem record.
What are three considerations when using the @InvocableMethod annotation in Apex? (Choose three.)
A. A method using the @InvocableMethod annotation must be declared as static.
B. A method using the @InvocableMethod annotation can be declared as Public or Global.
C. A method using the @InvocableMethod annotation can have multiple input parameters.
D. A method using the @InvocableMethod annotation must define a return value.
E. Only one method using the @InvocableMethod annotation can be defined per Apex class.
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? (Choose two.)
A. Calling a method that makes a web service callout
B. Calling a method that is not annotated with cacheable=true
C. Calling a method with the click of a button
D. Calling a method that is external to the main controller for the Lighting web component
A Licensed_Professional__c custom object exists in the system with two Master-Detail fields for the following objects: Certification__c and Contact. Users with the `Certification Representative` role can access the Certification records they own and view the related Licensed Professionals records, however users with the `Sales Representative` role report they cannot view any Licensed Professional records even though they own the associated Contact record. What are two likely causes of users in the `Sales Representative` role not being able to access the Licensed Professional records? (Choose two.)
A. The organization has a private sharing model for Certification__c. and Certification__c is the primary relationship in the Licensed_Professional__c object.
B. The organization’s sharing rules for Licensed_Professional__c have not finished their recalculation process.
C. The organization recently modified the Sales Representative role to restrict Read/Write access to Licensed_Professional__c.
D. The organization has a private sharing model for Certification__c, and Contact is the primary relationship in the Licensed_Professional__c object.
Which governor limit applies to all the code in an Apex transaction?
A. Elapsed SOQL query time
B. Number of classes called
C. Number of new records created
D. Elapsed CPU time
Which situation prevents a developer from setting sharing rules for a custom object?
A. The object’s Sharing Settings is set to Public Read/Write.
B. The object is on the detail side of a Master-Detail relationship.
C. The developer is not a System Administrator.
D. The object is referenced in an Owner field of a Master-Detail relationship.
How many Accounts will be inserted by the following block of code?
A. 100
B. 150
C. 0
D. 500
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit.The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
A. Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
B. Use the System.Limits.getLimitQueries() method to ensure the number of queries is less than 100.
C. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.
D. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page. What should the developer do to deploy to production?
A. Create a test class that provides coverage of the Visualforce page.
B. Create a test page that provides coverage of the Visualforce page.
C. Create a test page that provides coverage of the custom controller.
D. Create a test class that provides coverage of the custom controller.
A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?
A. ApexPages.currentPage().getParameters().get(‘url_param’)
B. String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get(‘url_param’))
C. String.ValueOf(ApexPages.currentPage().getParameters().get(‘url_param’))
D. ApexPages.currentPage().getParameters().get(‘url_param’).escapeHtml4()
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
A. @RemoteAction(cacheable=true)
B. @AuraEnabled
C. @RemoteAction
D. @AuraEnabled(cacheable=true)
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class? A.B.
C.
D.
What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.)
A. Use the SOAP API to make a call to execute anonymous code.
B. Create a Visualforce page that uses a controller class that is declared without sharing.
C. Run code using the Anonymous Apex feature of the Developer’s IDE.
D. Type code into the Developer Console and execute it directly.
E. Create and execute a test method that does not specify a runAs() call.
Which three steps allow a custom SVG to be included in a Lightning web component? (Choose three.)
A. Upload the SVG as a static resource.
B. Reference the getter in the HTML template.
C. Import the SVG as a content asset file.
D. Import the static resource and provide a getter for it in JavaScript.
E. Reference the import in the HTML template.
An org has a data model with a Buyer__c object that has a lookup relationship to Region__c and a Supplier__c object has a lookup relationship to Region___c. How can a developer display data from the related Supplier__c records on a Visualforce page that has a standard controller for the Buyer__c object?
A. Use rollup formula fields on the Buyer__c object to reference the related Supplier__c records through the Region__c.
B. Use SOQL in a controller extension to query for related Supplier__c records.
C. Use a second standard controller for the Region__c object on a page to display the related Supplier__c records.
D. Use merge field syntax to retrieve the Supplier__c records related to the Buyer__c record through the Region__c.
What is the requirement for a class to be used as a custom Visualforce controller?
A. Any top-level Apex class that has a constructor that returns a PageReference
B. Any top-level Apex class that extends a PageReference
C. Any top-level Apex class that has a default, no-argument constructor
D. Any top-level Apex class that implements the controller interface
A company has been adding data to Salesforce and has not done a good job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together. Which two statements are valid considerations when using merge? (Choose two.)
A. The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record.
B. Merge is supported with accounts, contacts, cases, and leads.
C. External ID fields can be used with the merge method.
D. The field values on the master record are overwritten by the records being merged.
The Account object has a custom Percent field, Rating, defined with a length of 2 with 0 decimal places. An Account record has the value of 50% in its Rating field and is processed in the Apex code below after being retrieved from the database with SOQL.What is the value of acctScore after this code executes?
A. 5
B. 50
C. 500
D. 5000
Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job object that represents a job. Each applicant may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?
A. Lookup field from Applicant to Job
B. Junction object between Applicant and Job
C. Master-detail field from Applicant to Job
D. Formula field on Applicant that references Job
Access Full CRT-450 Mock Test Free
Want a full-length mock test experience? Click here to unlock the complete CRT-450 Mock Test Free set and get access to hundreds of additional practice questions covering all key topics.
We regularly update our question sets to stay aligned with the latest exam objectives—so check back often for fresh content!
Start practicing with our CRT-450 mock test free today—and take a major step toward exam success!