CRT-450 Free Exam Study Guide! (Updated 238 Questions)
CRT-450 Dumps for Salesforce Developers Certified Exam Questions and Answer
NEW QUESTION # 52
Which aspect of Apex programming is limited due to multitenancy?
- A. The number of records processed in a loop
- B. The number of active Apex classes
- C. The number of records returned from database queries
- D. The number of methods in an Apex class
Answer: C
Explanation:
Explanation/Reference:
NEW QUESTION # 53
What si the debug output of the following apex code? Decimal thevalue; system.debug(thevalue);
- A. Undefined
- B. Null
- C. 0
- D. 0.0
Answer: B
NEW QUESTION # 54
What is the impact of declaring an Apex class using the "without sharing" keywords?
- A. Sharing restrictions for the current user are bypassed.
- B. Only records owned by the current user can be updated.
- C. Records created by the class cannot have sharing rules.
- D. The class can only be used by users with developer rights.
Answer: A
NEW QUESTION # 55
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. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
- B. Make an outbound web services call to the SOAP API.
- C. Execute a SOQL query on the RecordType object.
- D. Hardcode the ID as a constant in an Apex class.
Answer: A,C
NEW QUESTION # 56
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers
- A. Read access on the primary relationship
- B. Read/Write access on the secondary relationship
- C. Read/Write access on the primary relationship
- D. Read/Write access on the junction object
Answer: C,D
Explanation:
In order to update a record of a junction object, you must have Read/Write access on the primary relationship and Read/Write access on the junction object. A junction object is a custom object that is used to create a many-to-many relationship between two other objects via two master-detail relationships. The primary relationship is the first master-detail relationship that is created on the junction object, and the secondary relationship is the second master-detail relationship that is created on the junction object. To update a record of a junction object, you need to have Read/Write access on both the junction object and the primary relationship, because:
* Read/Write access on the junction object allows you to modify the fields and values of the junction object record, such as the name, description, or custom fields.
* Read/Write access on the primary relationship allows you to change the parent record of the junction object record, which is also known as reparenting. Reparenting is the process of moving a child record from one parent record to another in a master-detail relationship. Reparenting is not allowed by default in master-detail relationships, but it can be enabled by selecting the Allow reparenting option on the relationship field.
Read access on the primary relationship and Read/Write access on the secondary relationship are not sufficient to update a record of a junction object, because:
* Read access on the primary relationship does not allow you to change the parent record of the junction object record, which may be necessary for some updates. For example, if you want to move an OrderItem record from one Order record to another, you need to have Read/Write access on the primary relationship between OrderItem and Order.
* Read/Write access on the secondary relationship does not affect the update of the junction object record, because the secondary relationship is not involved in the update operation. The secondary relationship is only used to associate the junction object record with another parent record, but it does not allow you to modify the junction object record itself.
References: Junction Object, Reparent Records in Master-Detail Relationships, Prepare for Your Salesforce Platform Developer I Credential
NEW QUESTION # 57
As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.
Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers
- A. Visualforce Pages
- B. Vlsualforce Components
- C. Aura Components
- D. Lightning Web Components
Answer: C,D
Explanation:
Aura Components and Lightning Web Components are two technologies that are built on a framework that fully supports the business requirement of building a responsive application capable of responding to touch events, that will be executed on stateful clients. Both technologies are part of the Lightning Component Framework, which is a modern UI framework for developing dynamic web apps for mobile and desktop devices. The Lightning Component Framework uses standard web technologies, such as HTML, CSS, JavaScript, and Web Components, to create reusable and interoperable components that can adapt to different screen sizes, devices, and orientations. The framework also provides features such as data binding, event handling, state management, and server-side integration, to enable developers to create rich and interactive user interfaces.
Aura Components are the original technology for creating Lightning components. They use a custom XML-based markup language, Aura, to define the component structure and behavior. Aura Components can respond to touch events using the ui:input component, which provides a generic input element that can handle different input types, such as text, number, date, checkbox, radio, toggle, and email. The ui:input component also supports touch gestures, such as swipe, tap, and pinch, by using the ontouchstart, ontouchend, ontouchmove, and ontouchcancel attributes. Aura Components are stateful, meaning that they maintain their state on the client-side and communicate with the server only when necessary. This reduces the network traffic and improves the performance and user experience.
Lightning Web Components are the newer technology for creating Lightning components. They use standard HTML, CSS, and JavaScript to define the component structure and behavior. Lightning Web Components can respond to touch events using the standard HTML input element, which provides a native input element that can handle different input types, such as text, number, date, checkbox, radio, toggle, and email. The input element also supports touch gestures, such as swipe, tap, and pinch, by using the standard touch event listeners, such as touchstart, touchend, touchmove, and touchcancel. Lightning Web Components are also stateful, meaning that they maintain their state on the client-side and communicate with the server only when necessary. This reduces the network traffic and improves the performance and user experience.
Visualforce Components and Visualforce Pages are two technologies that are not built on a framework that fully supports the business requirement of building a responsive application capable of responding to touch events, that will be executed on stateful clients. Visualforce Components are reusable UI elements that can be used in Visualforce Pages. Visualforce Pages are web pages that can display and interact with Salesforce data and logic. Visualforce Components and Pages use a custom XML-based markup language, Visualforce, to define the UI elements and behavior. Visualforce Components and Pages can be made responsive by using the Salesforce Lightning Design System (SLDS), which is a collection of design guidelines, components, and resources that enable developers to create consistent and beautiful user interfaces across devices. However, Visualforce Components and Pages do not have native support for touch events, and require custom JavaScript code to handle them. Visualforce Components and Pages are also stateless, meaning that they do not maintain their state on the client-side and communicate with the server on every request. This increases the network traffic and affects the performance and user experience.
References:
* Lightning Component Framework
* Aura Components Developer Guide
* Lightning Web Components Developer Guide
* Visualforce Developer Guide
* Salesforce Lightning Design System
NEW QUESTION # 58
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.
How can the developer make sure that validation rule violations are displayed?
- A. Add custom controller attributes to display the message.
- B. Perform the DML using the Database.upsert()method.
- C. Include <apex:messages>on the Visualforce page.
- D. Use a try/catch with a custom exception class.
Answer: C
Explanation:
Explanation/Reference:
NEW QUESTION # 59
Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.
Which consideration should the developer be aware of when deciding between SOQL and SOSL?
Choose 2 answers
- A. SOSL is able to return more records.
- B. SOSL is faster for tent searches.
- C. SOQL is able to return more records.
- D. SOQL is faster for text searches.
Answer: A,B
Explanation:
SOSL and SOQL are two different types of search languages in Salesforce. SOSL is a programmatic way of performing a text-based search against the search index, while SOQL is the equivalent of a SELECT SQL statement and searches the org database1. The developer should consider the following factors when deciding between SOQL and SOSL2:
* The number of records to be returned: SOSL can return up to 2,000 records from multiple objects, while SOQL can return up to 50,000 records from a single object or from multiple objects that are related to one another1.
* The speed of text searches: SOSL is generally faster than SOQL for text searches, especially if the search expression uses a CONTAINS term. SOSL can tokenize multiple terms within a field and build a search index from this, which makes SOSL searches more efficient and relevant1.
* The knowledge of the object or field: SOSL is useful when the developer does not know which object or field the data resides in, and wants to retrieve data for a specific term across multiple objects and fields. SOQL is useful when the developer knows which objects the data resides in, and wants to retrieve data from a single object or from multiple objects that are related to one another1.
* The type of data to be retrieved: SOSL supports text, email, and phone fields, and can retrieve data that is in Chinese, Japanese, Korean, or Thai. SOQL supports number, date, or checkbox fields, and can retrieve data from big objects1. References:
* Introduction to SOQL and SOSL | SOQL and SOSL Reference | Salesforce Developers
* Difference between SOSL and SOQL search types - Salesforce
NEW QUESTION # 60
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
- A. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
- B. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.
- C. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
- D. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
Answer: C,D
NEW QUESTION # 61
What are three ways for a developer to execute tests in an org? Choose 3.
- A. Tooling API
- B. Salesforce DX
- C. Metadata API.
- D. Setup Menu
- E. Bulk API
Answer: A,B,D
Explanation:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_testing.htm https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_apextestsuite.htm
NEW QUESTION # 62
Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.
When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce page.
What can the developer use to meet this business requirement?
- A. Controller extension
- B. Custom controller
- C. Validation rule
- D. Apex trigger
Answer: B
Explanation:
A custom controller is an Apex class that uses the default, no-argument constructor for the outer, top-level class. You cannot create a custom controller constructor that includes parameters. A custom controller is needed to perform complex validation that involves multiple objects and then redirect the user to another Visualforce page upon success. A custom controller can override the standard actions of a standard controller, such as save, edit, view, or delete, and define new actions. A custom controller runs in system mode, so the user's permissions and field-level security do not apply. References: You can find more information about custom controllers in the Visualforce Developer Guide and the Apex Developer Guide on Salesforce's official website.
NEW QUESTION # 63
A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records.
Which two actions should a developer take to accomplish this task? (Choose two.)
- A. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
- B. Create a master-detail relationship between the Rating and Employee objects.
- C. Create a lookup relationship between the Rating and Employee object.
- D. Create a trigger on the Rating object that updates a fields on the Employee object.
Answer: A,B
Explanation:
Explanation/Reference:
NEW QUESTION # 64
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.
When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?
- A. @future
- B. @InvocableMethod
- C. @AuraEnaled
- D. @RemoteAction
Answer: B
Explanation:
The @InvocableMethod annotation is used to identify a method in an Apex class that can be called from a flow, a bot, or an NBA strategy. It is a helpful annotation to provide a seamless admin-friendly way to call the Apex code using simple flows. Invoking Apex from flow is a significant option for providing design patterns that can solve many business problems while also providing great user experience. The other annotations are not suitable for this scenario, as they have different purposes and limitations. For example, the @future annotation is used to execute a method asynchronously, the @RemoteAction annotation is used to expose a method to a Visualforce page, and the @AuraEnabled annotation is used to enable a method to be called from a Lightning web component or an Aura component. References: Annotations, How to Invoke Apex from Flows Using InvocableMethod Annotation, Salesforce Flow
NEW QUESTION # 65
What are three characteristics of change set deployments? (Choose three.)
- A. They can be used only between related organizations.
- B. They can be used to transfer records.
- C. They require a deployment connection.
- D. They can be used to deploy custom settings data.
- E. They use an all or none deployment model.
Answer: A,C,E
NEW QUESTION # 66
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 the developer add to the Apex method to achieve this?
- A.

- B.

- C.

- D.

Answer: B
NEW QUESTION # 67
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. Use the System.Limits.getLimitQueries()method to ensure the number of queries is less than
100. - B. Use the System.Limits.getQueries()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. Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
Answer: B
NEW QUESTION # 68
What actions types should be configured to display a custom success message?
- A. Close a case.
- B. Update a record.
- C. Delete a record.
- D. Post a feed item.
Answer: B
NEW QUESTION # 69
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. Workflows can be used to check the record criteria and send an outbound message.
- B. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
- C. Process builder can be used to check the record criteria and send an outbound message without Apex Code.
- D. Approval Process has the capability to check the record criteria and send an outbound message without Apex Code.
- E. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
Answer: A,D,E
Explanation:
Explanation/Reference:
NEW QUESTION # 70
A developer writes the following code:
What is the result of the debug statement?
- A. 1, 100
- B. 1, 150
- C. 2, 200
- D. 2, 150
Answer: D
NEW QUESTION # 71
When would the use of Heroku Postgres be appropriate?
- A. To cache commonly accessed data for faster retrieval.
- B. To interconnect Microsoft SQL servers to Heroku Applications.
- C. To store and retrieve data using the Structured Query Language.
- D. To store user generated pictures and Word documents.
Answer: C
NEW QUESTION # 72
......
Use Real CRT-450 Dumps - 100% Free CRT-450 Exam Dumps: https://www.validvce.com/CRT-450-exam-collection.html
Realistic Verified CRT-450 exam dumps Q&As - CRT-450 Free Update: https://drive.google.com/open?id=1o_sjzymxpp0yovv9kLkpHpq2oBHctNCy
