CRT-450 Practice Questions Free – 50 Exam-Style Questions to Sharpen Your Skills
Are you preparing for the CRT-450 certification exam? Kickstart your success with our CRT-450 Practice Questions Free – a carefully selected set of 50 real exam-style questions to help you test your knowledge and identify areas for improvement.
Practicing with CRT-450 practice questions free gives you a powerful edge by allowing you to:
- Understand the exam structure and question formats
- Discover your strong and weak areas
- Build the confidence you need for test day success
Below, you will find 50 free CRT-450 practice questions designed to match the real exam in both difficulty and topic coverage. They’re ideal for self-assessment or final review. You can click on each Question to explore the details.
What can be used to delete components from production?
A. A change set deployment with a destructiveChanges XML file
B. A change set deployment with the delete option checked
C. An ant migration tool deployment with a destructiveChanges XML file and an empty package.xml file
D. An ant migration tool deployment with a desctuctiveChanges XML file and the components to delete in the package.xml file
Given the following code snippet, that is part of a custom controller for a Visualforce page:In which two ways can the try/catch be enclosed to enforce object-level permissions and prevent the DML statement from being executed if the current logged- in user does not have the appropriate level of access to the object? (Choose two.)
A. Use if(thisContact.OwnerId == User.Info.getUserId())
B. Use if(Schema.sObjectType.Contact.isAccessible())
C. Use if(Schema.sObjectType.Contact.fields.Is_Active__c.isUpdateable())
D. Use if(Schema.sObjectType.Contact.isUpdateable())
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.
A developer created a weather app that contains multiple Lightning web components that are in different DOM trees. One of the components, called Toggle, has a toggle for Fahrenheit or Celsius units. Another component, called Temperature, displays the current temperature in the unit selected in the Toggle component. When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, the information must be sent to the Temperature component so the temperature can be converted and displayed. What is the recommended way to accomplish this?
A. Create a custom event to handle the communication between components.
B. The Toggle component should call a method in the Temperature component.
C. Use Lightning Message Service to communicate between the components.
D. Use an application event to communicate between the components.
Which two components are available to deploy using the Metadata API? (Choose two.)
A. Lead Conversion Settings
B. Web-to-Case
C. Web-to-Lead
D. Case Settings
Which three tools can deploy metadata to production? (Choose three.)
A. Change Set from Developer Org
B. Force.com IDE
C. Data Loader
D. Change Set from Sandbox
E. Metadata API
An Approval Process is defined in the Expense_Item__c object. A business rule dictates that whenever a user changes the Status to `ËœSubmitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met?
A. Create a Process Builder on Expense_Report__c with an ‘Apex’ action type to submit all related Expense_Item__c records when the criteria is met.
B. Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and a trigger on Expense_Item__c to submit the records for approval.
C. Create two Process Builders, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
D. Create a Process Builder on Expense_Report__c with a ‘Submit for Approval’ action type to submit all related Expense_Item__c records when the criteria are met.
Which two practices should be used for processing records in a trigger? (Choose two.)
A. Use a Map to reduce the number of SOQL calls.
B. Use @future methods to handle DML operations.
C. Use a Set to ensure unique values in a query filter.
D. Use (callout=true) to update an external system.
Which feature should a developer use to update an inventory count on related Product records when the status of an Order is modified to indicate it is fulfilled?
A. Process Builder process
B. Lightning component
C. Visualforce page
D. Workflow rule
A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
A. Make an outbound web services call to the SOAP API.
B. Hardcode the ID as a constant in an Apex class.
C. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
D. Execute a SOQL query on the RecordType object.
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.
A developer is creating a Lightning web component to show a list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?
A. Use Lightning Data Service to get the collection of sales records.
B. use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
C. Use Lightning Locker Service to enforce sharing rules and field-level security.
D. Use Security.stripInaccessible to remove fields inaccessible to the current user.
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.
What are two benefits of the Lightning Component framework? (Choose two.)
A. It simplifies complexity when building pages, but not applications.
B. It provides an event-driven architecture for better decoupling between components.
C. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.
D. It allows faster PDF generation with Lightning components.
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation. What are two characteristics of declarative development over programmatic customization? (Choose two.)
A. Declarative development does not require Apex test classes.
B. Declarative development can be done using the Setup menu.
C. Declarative code logic does not require maintenance or review.
D. Declarative development has higher design limits and query limits.
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
Which action can a developer take to reduce the execution time of the following code?
A. Put the Account loop inside the Contact loop.
B. Create an Apex helper class for SOQL.
C. Add a GROUP BY clause to the Contact SOQL.
D. Use a Map<Id List for allContacts.
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.
Requirements state that a child record is deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema builder to support these requirements?
A. Master-Detail relationship
B. Child relationship
C. Lookup relationship from the parent to the child
D. Lookup relationship from the child to the parent
Which message is logged by the code below?
A. Generic Exception
B. List Exception
C. NullPointer Exception
D. No message is logged.
What are three characteristics of change set deployments? (Choose three.)
A. Change sets can deploy custom settings data.
B. Change sets can only be used between related organizations.
C. Deployment is done in a one-way, single transaction.
D. Sending a change set between two orgs requires a deployment connection.
E. Change sets can be used to transfer records.
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.
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.
A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?
A. Declare maxAttempts as a private static variable on a helper class.
B. Declare maxAttempts as a variable on a helper class.
C. Declare maxAttempts as a member variable on the trigger definition.
D. Declare maxAttempts as a constant using the static and final keywords.
An org has a single account named `ËœNoContacts' that has no related contacts. Given the query: List accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=`ËœNoContacts']; What is the result of running this Apex?
A. accounts[0].contacts is invalid Apex.
B. accounts[0].contacts is an empty Apex.
C. accounts[0].contacts is Null.
D. A QueryException is thrown.
Assuming that name is a String obtained by an
A.
B.
C.
D.
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?
A. Create a lookup field on the Construction Job object to the Machinery object.
B. Create a lookup field on the Machinery object to the Construction Job object.
C. Create a junction object with Master-Detail Relationship to both the Machinery object and the Construction Job object.
D. Create a Master-Detail Lookup on the Machinery object to the Construction Job object.
A company has a custom object named Region. Each Account in Salesforce can only be related to one Region at a time, but this relationship is optional. Which type of relationship should a developer use to relate an Account to a Region?
A. Parent-Child
B. Hierarchical
C. Lookup
D. Master-Detail
Which three web technologies can be integrated into a Visualforce page? (Choose three.)
A. JavaScript
B. CSS
C. Java
D. PHP
E. HTML
A developer wants to store a description of a product that can be entered on separate lines by a user during product setup and later displayed on a Visualforce page for shoppers. Which field type should the developer choose to ensure that the description will be searchable in the custom Apex SOQL queries that are written?
A. Text Area
B. Text
C. Text Area (Long)
D. Text Area (Rich)
A team of many developers work in their own individual orgs that have the same configuration as the production org. Which type of org is best suited for this scenario?
A. Developer Sandbox
B. Developer Edition
C. Full Sandbox
D. Partner Developer Edition
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.
From which two locations can a developer determine the overall code coverage for a sandbox? (Choose two.)
A. The Apex Test Execution page
B. The Test Suite Run panel of the Developer Console
C. The Apex classes setup page
D. The Tests tab of the Developer Console
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
A. As a List with each value as an element in the list
B. As a String with each value separated by a comma
C. As a String with each value separated by a semicolon
D. As a Set with each value as an element in the set
What is a benefit of developing applications in a multi-tenant environment?
A. Enforced unit testing and code coverage best practices
B. Access to predefined computing resources
C. Unlimited processing power and memory
D. Preconfigured storage for big data
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
A recursive transaction is initiated by a DML statement creating records for these two objects: 1. Accounts 2. Contacts The Account trigger hits a stack depth of 16. Which statement is true regarding the outcome of the transaction?
A. The transaction fails and all the changes are rolled back.
B. The transaction succeeds as long as the Contact trigger stack depth is less than 16.
C. The transaction fails only if the Contact trigger stack depth is greater or equal to 16.
D. The transaction succeeds and all changes are committed to the database.
A developer must create an Apex class, ContactController, that a Lightning component can use to search for Contact records. Users of the Lightning component should only be able to search for Contact records to which they have access. Which two will restrict the records correctly? (Choose two.)
A. public class ContactController
B. public with sharing class ContactController
C. public without sharing class ContactController
D. public inherited sharing class ContactController
Which two statements are true about Apex code executed in Anonymous Blocks? (Choose two.)
A. The code runs with the permissions of the user specified in the runAs() statement.
B. The code runs with the permissions of the logged in user.
C. The code runs in system mode having access to all objects and fields.
D. All DML operations are automatically rolled back.
E. Successful DML operations are automatically committed.
A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user’s default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user’s default record type?
A. Use the Schema.userInfo.Opportunity.getDefaultRecordType() method.
B. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method.
C. Create the opportunity and check the opportunity.recordType, which will have the record ID of the current user’s default record type, before inserting.
D. Use Opportunity.SObjectType.getDescribe().getRecordTypeInfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() is true.
What are two best practices when it comes to Lightning Web Component events? (Choose two.)
A. Use event.detail to communicate data to elements in the same shadow tree.
B. Use CustomEvent to pass data from a child to a parent component.
C. Use event.target to communicate data to elements that aren’t in the same shadow tree.
D. Use events configured with bubbles: false and composed: false.
Which standard field is required when creating a new Contact record?
A. LastName
B. Name
C. AccountId
D. FirstName
A developer has a requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis. Which class definition should be used to successfully implement this requirement?
A. global inherited sharing class ProcessAccountProcessor implements Database.Batchable, Schedulable
B. global inherited sharing class ProcessAccountProcessor implements Schedulable
C. global inherited sharing class ProcessAccountProcesscr implements Database.Batchable
D. global inherited sharing class ProcessAccountProcessor implements Queueable
A developer needs to provide a way to mass edit, update, and delete records from a list view. In which two ways can this be accomplished? (Choose two.)
A. Create a new Visualforce page and Apex Controller for the list view that provides mass edit, update, and delete functionality.
B. Download a managed package from the AppExchange that provides customizable Enhanced List Views and buttons.
C. Download an unmanaged package from the AppExchange that provides customizable mass edit, update, and delete functionality.
D. Configure the user interface and enable both inline editing and enhanced lists.
How should a developer avoid hitting the governor limits in test methods?
A. Use @TestVisible on methods that create records.
B. Use Test.loadData() to load data from a static resource.
C. Use @IsTest (SeeAllData=true) to use existing data.
D. Use Test.startTest() to reset governor limits.
In the following example, which sharing context myMethod execute when it is invoked? public Class myClass { public void myMethod() { /* implementation */ } }
A. Sharing rules will not be enforced for the running user.
B. Sharing rules will be inherited from the calling context.
C. Sharing rules will be enforced for the running user.
D. Sharing rules will be enforced by the instantiating class.
Which two declarative process automation features can be directly invoked when a field value changes on a record? (Choose two.)
A. Cloud Flow Designer flows
B. Process Builder processes
C. Validation rules
D. Workflow rules
A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components. Which annotation should a developer add to the Apex method to archive this?
A. @RemoteAction(cacheable=true)
B. @AuraEnabled
C. @RemoteAction
D. @AuraEnabled(cacheable=true)
A developer executes the following query in Apex to retrieve a list of contacts for each account: List accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ; Which two exceptions may occur when it executes? (Choose two.)
A. CPU limit exception due to the complexity of the query.
B. SOQL query row limit exception due to the number of contacts.
C. SOQL query limit exception due to the number of contacts.
D. SOQL query row limit exception due to the number of accounts.
A developer wants to improve runtime performance of Apex calls by caching results on the client. What is the most efficient way to implement this and follow best practices?
A. Decorate the server-side method with @AuraEnabled(storable=true).
B. Set a cookie in the browser for use upon return to the page.
C. Call the setStorable() method on the action in the JavaScript client-side code.
D. Decorate the server-side method with @AuraEnabled(cacheable=true).
Free Access Full CRT-450 Practice Questions Free
Want more hands-on practice? Click here to access the full bank of CRT-450 practice questions free and reinforce your understanding of all exam objectives.
We update our question sets regularly, so check back often for new and relevant content.
Good luck with your CRT-450 certification journey!