Pass Your CRT-450 Exam Easily With 100% Exam Passing Guarantee [2023]
CRT-450 Dumps are Available for Instant Access from TrainingQuiz
NEW QUESTION 80
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 Engineering_Support__c to Opportunity.
- B. Master-detail field from Opportunity to Engineering_Support__c
- C. Lookup field from Engineering_support__c to Opportunity
- D. Lookup field from Opportunity to Engineering_Support__c
Answer: A
NEW QUESTION 81
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
A)
B)
C)
D)
- A. Option B
- B. Option C
- C. Option D
- D. Option A
Answer: B
NEW QUESTION 82
A developer is creating an enhancement to an application that will allow people to be related to their employer. Which data model provides the simplest solution to meet the requirements?
- A. Create a junction object to relate many people to many through lookup relationship
- B. Create a master-detail relationship to indicate that a person has an employer
- C. Create a lookup realtionship to indicate that a person has an employer
- D. Create a junction object to relate many people to many through master-detail relationship
Answer: B
NEW QUESTION 83
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?
- A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
- B. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
- C. Have each class implement an interface that defines method getTextSummary() that returns the summary.
- D. Have each class define method getTextSummary() that returns the summary.
Answer: C
NEW QUESTION 84
What is considered the primary purpose for creating Apex tests?
- A. To confirm every trigger in executed at least once
- B. To confirmall classes and triggers compile successfully
- C. To ensure every use case of the application is covered by a test
- D. To guarantee at least 50% of code is covered by unit tests before it is deployed
Answer: C
NEW QUESTION 85
What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)
- A. Loading scripts in parallel.
- B. One-time loading for duplicate scripts.
- C. Specifying loading order.
- D. Loading externally hosted scripts.
- E. Loading files from Documents.
Answer: A,B,C
NEW QUESTION 86
A developer uses an 'after update' trigger on the Account object to update all the Contacts related to the Account. The trigger code shown below is randomly failing.
List<Contacts> theContacts = new List<Contacts>(); for(Account a : Trigger.new){ for(Contact c : [SELECT Id, Account_Date__c FROM Contact WHERE AccountId = :a.Id]){ c.Account_Date__c = Date.today(); theContacts.add(c);
}
} updates theContacts;
Which line of code is causing the code block to fail?
- A. A SOQL query is located inside of the for loop.
- B. An exception is thrown if theContacts is empty
- C. The trigger processes more than 200 records in the for loop.
- D. An exception is thrown if Account_Date__c is null.
Answer: A
NEW QUESTION 87
A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?
- A. Use a custom controller that has the with sharing keywords.
- B. Create one Visualforce Page for use by both profiles.
- C. Create a separate Visualforce Page for each profile.
- D. Use a new Support Manager permission set.
Answer: A
NEW QUESTION 88
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x
< 150; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: C
NEW QUESTION 89
What is the proper process for an Apex Unit Test
- A. Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.
- B. Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.
- C. Create data for testing. Execute runAllTests(). Verify that the results are correct.
- D. Create data for testing. Call the method being tested. Verify that the results are correct.
Answer: D
NEW QUESTION 90
How should the developer overcome this problem? While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org.
- A. Use @TestVisible to allow the test method to see the standard Pricebook.
- B. Use Test.loaddata() and a Static Resource to load a standard Pricebook
- C. Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook.
- D. Use Test.getStandardPricebbokId()to get the standard Pricebook ID.
Answer: D
NEW QUESTION 91
Which two operations can be performed using a formula field? (Choose two.)
- A. Displaying the last four digits of an encrypted Social Security number
- B. Calculating a score on a Lead based on the information from another field
- C. Triggering a Process Builder
- D. Displaying an Image based on the Opportunity Amount
Answer: B,D
NEW QUESTION 92
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:
which three statements are accurate about debug logs?
Choose 3 answers
- A. The maximum size of a debug log is 5 MB.
- B. System debug logs are retained for 24 hours.
- C. Debug logs can be set for specific users, classes, and triggers.
- D. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
- E. Only the 20 most recent debug logs for a user are kept.
Answer: B,C,E
NEW QUESTION 93
Universal Containers (UC) decided it will not send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error.
What is the appropriate publish/subscribe logic to meet these requirements?
- A. Publish the error event using the addError()method and have the external system subscribe to the event using CometD.
- B. Publish the error event using the addError()method and write a trigger to subscribe to the event and notify the external system.
- C. Publish the error event using the Eventbus.publish()method and have the external system subscribe to the event using CometD.
- D. Have the external system subscribe to the BatchApexErrorevent, no publishing is necessary.
Answer: C
NEW QUESTION 94
A developer wants to retrieve the Contacts and Users with the email addres '[email protected]'. Which SOSL statement should the developer use?
- A. FIND {Email = '[email protected]'} RETURNING Contact (Email), User (Email)
- B. FIND {[email protected]} IN Email Fields RETURNING Contact (Email), User (Email)
- C. FIND Email IN Contact, User FOR {dev2uc.com}
- D. FIND {Email = '[email protected]'} IN Contact, User
Answer: B
NEW QUESTION 95
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 it's trainers?
- A. SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'
- B. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'
- C. SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'
- D. SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'
Answer: C
NEW QUESTION 96
A developer must create a Lightning component that allows users to input Contact record information to create a Contact record, including a Salary__ccustom field.
What should the developer use, along with a lightning-record-edit-form, so that Salary__cfield functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c?
- A.

- B.

- C.

- D.

Answer: C
Explanation:
Explanation/Reference:
NEW QUESTION 97
Universal Containers stores Orders and Line Items in Salesforce. For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?
- A. Lookup
- B. Master Detail
- C. Indirect lookup
- D. Direct Lookup
Answer: B
NEW QUESTION 98
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?
- A. Build an Account Workflow Rule.
- B. Build an Account Assignment Rule.
- C. Build an Account custom Trigger.
- D. Build an account Approval Process
Answer: C
NEW QUESTION 99
An org has a single account named 'NoContacts' that has no related contacts. Given the query:
List<Account> 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. A QueryException is thrown.
- C. accounts[0].contacts is Null.
- D. accounts[0].contacts is an empty Apex.
Answer: D
NEW QUESTION 100
A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?
- A. Mark the field as Required on the object's page layout.
- B. Set a validation rule to enforce a value is selected.
- C. Mark the field as Required on the field definition.
- D. Set "Use the first value in the list as the default value" as True.
Answer: C
NEW QUESTION 101
Which two statement are acceptable for a developer to use Inside procedural loops?
- A. Delete contactList
- B. Contact con =new contact()
- C. Contactlist.remove(i)
- D. Account a=[select id,name from account where id=:con.accountid limit 1]
Answer: B,C
NEW QUESTION 102
Which two statements accurately represent the MVC framework implementation in Salesforce? Choose 2 answers
- A. Lightning component HTML files represent the Model (M) part of the MVC framework.
- B. Validation rules enforce business rules and represent the Controller (C) part of the MVC framework
- C. Triggers that create records represent the Model (M) part of the MVC framework.
- D. Standard and Custom objects used in the app schema represent the View (V) part of the MVC framework
Answer: B,C
NEW QUESTION 103
......
Study resources for the Valid CRT-450 Braindumps: https://www.trainingquiz.com/CRT-450-practice-quiz.html
Latest Salesforce Developers CRT-450 Actual Free Exam Questions: https://drive.google.com/open?id=17A3t6KlY28HO_ZjI2GjbI4wF0lG5cKEV

