When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers.
Reveal answer details Close answer details
Correct answersA, B
Salesforce · CRT-450
Preview real exam questions, verified answers and available explanations before choosing a study plan.
|
Multiple choice
When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers. Reveal answer details Close answer detailsCorrect answersA, B
Single choice
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data. Which security consideration should the developer be aware of? Reveal answer details Close answer detailsCorrect answerA
Single choice
Opportunity opp=[SELECT Id,StageName FROM Opportunity LIMIT 1]; Given the code above,how can a developer get the label for the StageName field? Reveal answer details Close answer detailsCorrect answerB
Single choice
How should a developer avoid hitting the governor limits in test methods? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
What are two testing consideration when deploying code from a sandbox to production? Choose 2 answers Reveal answer details Close answer detailsCorrect answersB, C
Multiple choice
A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers Reveal answer details Close answer detailsCorrect answersA, C, E
Single choice
A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer is debugging the following code to determine why Accounts are not being created. Account a = new Account(Name = 'A'); How should the code be altered to help debug the issue? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Reveal answer details Close answer detailsCorrect answersA, B, C
Multiple choice
What is an accurate statement about variable scope? (Choose 3) Reveal answer details Close answer detailsCorrect answersA, B, C
Single choice
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? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which data structure is returned to a developer when performing a SOSL search? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Which statement should a developer avoid using inside procedural loops? (Choose 2) Reveal answer details Close answer detailsCorrect answersB, D
Single choice
Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement? Reveal answer details Close answer detailsCorrect answerD Explanation Scheduling a Data Export job is the best way to back up all the data and attachments in a Salesforce org once a month. The Data Export job can be scheduled to run at a certain frequency so that the data can be backed up on a regular basis. This makes it easy to restore the data in case of any emergency.
Multiple choice
Which two roll-up summary field types are required to find the average of values on detail records in a Master-Detail relationship? Reveal answer details Close answer detailsCorrect answersA, B
Single choice
A change set deployment from a sandbox to production fails due to a failure in a managed package unit test. The developer spoke with the manager package owner and they determined it is a false positive and can be ignored. What should the developer do to successfully deploy? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
What is a valid statement about Apex classes and interfaces? Choose 2 answers: Reveal answer details Close answer detailsCorrect answersB, D
Single choice
A Visualforce page uses the Contact standard controller. How can a developer display the Name from the parent Account record on the page? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
Universal Containers recently transitioned from Classic to Lightning Experience. One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on a user-initiated action on the Opportunity detail page. 1. Name Which two methods should the developer implement to fulfill the business requirement? (Choose two.) Reveal answer details Close answer detailsCorrect answersA, C
Multiple choice
How can a developer retrieve all Opportunity record type labels to populate a list collection?Choose 2 answers Reveal answer details Close answer detailsCorrect answersA, D
Single choice
When creating a record with a Quick Action, what is the easiest way to post a feed item? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
What are three characteristics of change set deployments? Choose 3 answers Reveal answer details Close answer detailsCorrect answersA, B, E
Multiple choice
Which two statements are valid regarding Apex classes and interfaces? (Choose two.) Reveal answer details Close answer detailsCorrect answersB, D
Single choice
As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should be used to meet this business requirement? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
Which two settings must be defined in order to update a record of a junction object? Choose 2 answers Reveal answer details Close answer detailsCorrect answersB, C
Single choice
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting, that application cannot be modified to be resubmitted to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer has the following code:try {List nameList;Account a;String s = a.Name;nameList.add(s);} catch What message will be logged? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer has the following class and trigger code public class insurancerates{ public static final decimal Which code segment should a developer insert at the xxx to set the basecost variable to the value of the class variable smokercharge? Reveal answer details Close answer detailsCorrect answerC
Single choice
A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo. Which is the correct definition of the Apex method that gets additional information? Reveal answer details Close answer detailsCorrect answerC
Single choice
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
A developer wants to invoke an outbound message when a record meets a specific criteria. Which three features satisfy this use case? (Choose three.) Reveal answer details Close answer detailsCorrect answersC, D, E
Single choice
Given the following Anonymous Block: ![]() What should a developer consider for an environment that has over 10,000 Case records? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'? Reveal answer details Close answer detailsCorrect answerB
Single choice
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? Reveal answer details Close answer detailsCorrect answerC
Single choice
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? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer wants to mark each Account in a List<Account> as either or Inactive based on the Which Apex technique should the developer use? Reveal answer details Close answer detailsCorrect answerD
Single choice
What is the order of operations when a record is saved in Salesforce? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. Which step should the developer take to resolve the issue and properly test the exception? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
What is a valid source and destination pair that can send or receive change sets? (Choose 2) Reveal answer details Close answer detailsCorrect answersB, C
Single choice
A developer needs to create an audit trail for records that are sent to the recycle bin. Which type of trigger is most appropriate to create? Reveal answer details Close answer detailsCorrect answerB
Multiple choice
A developer is implementing an Apex class for a financial system. Within the class, the variables In which two ways can the developer declare the variables to ensure their value can only be assigned one time? (Choose two.) Reveal answer details Close answer detailsCorrect answersB, C
Multiple choice
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.) Reveal answer details Close answer detailsCorrect answersA, D
Multiple choice
How can a developer avoid exceeding governor limits when using an Apex Trigger?choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Multiple choice
A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce. Which two actions will prevent the duplicate order records from being created in Salesforce? Choose 2 answers Reveal answer details Close answer detailsCorrect answersA, D
Single choice
Managed Packages can be created in which type of org? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
Which three options can be accomplished with formula fields? (Choose three.) Reveal answer details Close answer detailsCorrect answersA, C, E
Multiple choice
What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers: Reveal answer details Close answer detailsCorrect answersA, D
Multiple choice
A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key__c is known. Which two statements enable the developer to save the records to the database without an Id? (Choose two.) Reveal answer details Close answer detailsCorrect answersA, C
Single choice
A developer created a Visualforce page with a custom controller to show a list of accounts. The page uses What should the developer do to accomplish this? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
How can a developer refer to, or instantiate a PageReference in Apex? Choose 2 answers Reveal answer details Close answer detailsCorrect answersA, B
Single choice
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? Reveal answer details Close answer detailsCorrect answerD
Single choice
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? Reveal answer details Close answer detailsCorrect answerB
Multiple choice
From which 2 locations can a developer determine the overall code coverage for a sandbox? Reveal answer details Close answer detailsCorrect answersB, D
Single choice
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? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot? Reveal answer details Close answer detailsCorrect answerD
Single choice
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? Reveal answer details Close answer detailsCorrect answerA
Single choice
Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page? ![]() Reveal answer details Close answer detailsCorrect answerA
Multiple choice
A develop completed modification to a customized feature that is comprised of two elements: Apex trigger What are two factors that the developer must take into account to properly deploy the modification to the production environment? Reveal answer details Close answer detailsCorrect answersA, B
Multiple choice
A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2) Reveal answer details Close answer detailsCorrect answersC, D
Single choice
Which statement would a developer use when creating test data for products and pricebooks? Reveal answer details Close answer detailsCorrect answerA
Single choice
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? Reveal answer details Close answer detailsCorrect answerA
Single choice
Universal Containers (UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer add to create the most efficient model that supports the business need? Reveal answer details Close answer detailsCorrect answerC
Single choice
When would the use of Heroku Postgres be appropriate? Reveal answer details Close answer detailsCorrect answerC
Multiple choice
What is a capability of cross-object formula fields? Choose 3 answers Reveal answer details Close answer detailsCorrect answersA, B, E
Single choice
A developer has the following requirements: 1. Calculate the total amount on an Order. Which relationship implementation supports these requirements? Reveal answer details Close answer detailsCorrect answerD
Single choice
What is a benefit of the lightning component framework? Reveal answer details Close answer detailsCorrect answerD
Single choice
A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. ![]() Which is the correct implementation? ![]() Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation. What are two advantages of declarative development over programmatic customization? (Choose two.) Reveal answer details Close answer detailsCorrect answersB, D
Single choice
A developer runs the following anonymous code block in a Salesforce org with 100 accounts List acc= What is the debug output? Reveal answer details Close answer detailsCorrect answerC
Single choice
How can a custom type be identified as unique when added to a Set? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer created these three Rollup Summary fields in the custom object, Project_ct, ![]() The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to Implement the business requirement in order to minimize maintenance overhead? Reveal answer details Close answer detailsCorrect answerB
Single choice
Why would a developer use Test. Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Which two statement are acceptable for a developer to use Inside procedural loops? Reveal answer details Close answer detailsCorrect answersA, D
Multiple choice
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to effectively test the custom controller? (Choose three.) Reveal answer details Close answer detailsCorrect answersB, C, E
Multiple choice
What features are available when writing apex test classes?(Choose 2 Answers) Reveal answer details Close answer detailsCorrect answersC, E
Multiple choice
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers. Reveal answer details Close answer detailsCorrect answersC, D
Single choice
A developer must build an application that tracks which Accounts have purchased specific pieces of equipment that are represented as Products. Each Account could purchase many pieces of equipment. How should the developer track that an Account has purchased a piece of equipment? Reveal answer details Close answer detailsCorrect answerB
Single choice
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which tool should they use to deploy to the sandbox? Reveal answer details Close answer detailsCorrect answerC
Single choice
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality? Reveal answer details Close answer detailsCorrect answerA
Single choice
A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'? Reveal answer details Close answer detailsCorrect answerB
Multiple choice
Which two operations can be performed using a formula field? Choose 2 answers Reveal answer details Close answer detailsCorrect answersC, D
Multiple choice
When creating unit tests in Apex, which statement is accurate?Choose 2 Reveal answer details Close answer detailsCorrect answersB, D
Multiple choice
An apex trigger fails because it exceeds governor limits. Which two techniques should a developer use to resolve the problem? Choose 2 answers Reveal answer details Close answer detailsCorrect answersB, D
Multiple choice
What are three characteristics of static methods? (Choose three.) Reveal answer details Close answer detailsCorrect answersA, C, E
Multiple choice
Which three data types can be returned from an SOQL statement? Reveal answer details Close answer detailsCorrect answersB, D, E
Single choice
A developer has a requirement to create an Order when an Opportunity reaches a 'Closed-Won' status. Which tool should be used to implement this requirement? Reveal answer details Close answer detailsCorrect answerD
Single choice
A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method? Reveal answer details Close answer detailsCorrect answerB
Single choice
A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and to prevent orphan records? Reveal answer details Close answer detailsCorrect answerA
Single choice
What is a correct pattern to follow when programming in Apex on a Multi-tenant platform? Reveal answer details Close answer detailsCorrect answerC
Single choice
Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex? Reveal answer details Close answer detailsCorrect answerA
Multiple choice
What is the accurate statement about with sharing keyword? choose 2 answers Reveal answer details Close answer detailsCorrect answersA, B
Multiple choice
Which two are phases in the Salesforce Application Event propagation framework? (Choose two.) Reveal answer details Close answer detailsCorrect answersA, B |