Free 2021 Salesforce Developers CRT-450 dumps are available on Google Drive shared by TopExamCollection
Welcome to download the newest TopExamCollection CRT-450 PDF dumps: https://www.topexamcollection.com/CRT-450-vce-collection.html ( 364 Q&As)
NEW QUESTION 99
A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?
- A. Nothing. The task is automatically displayed on the Account page.
- B. Nothing. The Task cannot be related to an Account and a Contact.
- C. Create an Account formula field that displays the Task information.
- D. Create a Workflow rule to relate the Task to the Contact's Account.
Answer: A
NEW QUESTION 100
Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers
- A. By using an object standard controller action
- B. By using the PageReference.getURL() method
- C. By using an object standard set controller action
- D. By using ApexPages.currentPage()
Answer: B,C
NEW QUESTION 101
A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:
Which type of exception will this trigger cause?
- A. A null reference exception
- B. A compile time exception
- C. A DML exception
- D. A limit exception when doing a bulk update
Answer: C
NEW QUESTION 102
Which statement would a developer use when creating test data for products and pricebooks?
- A. Id pricebookId = Test.getStandardPricebookId();
- B. List objList = Test.loadData(Account.sObjectType, 'myResource');
- C. IsTest(SeeAllData = false);
- D. Pricebook pb = new Pricebook();
Answer: A
NEW QUESTION 103
When are code coverage calculations updated?
- A. When unit tests are run on an organization.
- B. When a deployment is validated.
- C. When changes are made to an organization's configuration.
- D. When Apex code is saved.
Answer: A
NEW QUESTION 104
Which two platform features align to the Controller portion of MVC architecture? (Choose two.)
- A. Standard objects
- B. Date fields
- C. Workflow rules
- D. Process Builder actions
Answer: C,D
NEW QUESTION 105
A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?
- A. Assert that a null value is accepted by the method.
- B. Assert that past dates are accepted by the method.
- C. Throwing a custom exception in the unit test.
- D. Assert that future dates are rejected by the method.
Answer: D
NEW QUESTION 106
What can a Lightning Component contain in its resource bundle? Choose 2 answer
- A. Custom client side rendering behavior.
- B. Properties files with global settings
- C. CSS styles scoped to the component
- D. Build scripts for minification
Answer: A,C
NEW QUESTION 107
A developer has a 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. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
- B. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
- C. ApexPages.currentPage() .getParameters() .get('url_param')
- D. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
Answer: B
NEW QUESTION 108
A developer must create a DrawListclass that provides capabilities defined in the Sortableand Drawable interfaces.
Which is the correct implementation?
- A.

- B.

- C.

- D.

Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION 109
When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be updated based on the values in a PostalCodeToTimezone__ccustom object.
How should a developer implement this feature?
- A. Build an Account Workflow Rule.
- B. Build an Account Approval Process.
- C. Build an Account custom Trigger.
- D. Build an Account Assignment Rule.
Answer: C
NEW QUESTION 110
Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }
- A. Use a map <id,contact> for allaccounts
- B. Create an apex helper class for the SOQL
- C. Put the account loop inside the contact loop
- D. Add a group by clause to the contact SOQL
Answer: A
NEW QUESTION 111
Which statement should a developer avoid using inside procedural loops? (Choose 2)
- A. If(o.accountId == a.id)
- B. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];
- C. Update contactList;
- D. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
Answer: B,C
NEW QUESTION 112
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?
- A. For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'); }
- B. For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() +
'Contacts'; } - C. For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() +
'Contacts' } - D. For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() +
'Contacts'); }
Answer: B
NEW QUESTION 113
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 master-detail relationship
- B. Create a junction object to relate many people to many through lookup relationship
- C. Create a master-detail relationship to indicate that a person has an employer
- D. Create a lookup realtionship to indicate that a person has an employer
Answer: C
NEW QUESTION 114
What is an accurate constructor for a custom controller named "MyController"?
- A. public MyController () { account = new Account () ; }
- B. public MyController (List objects) { accounts = (List ) objects; }
- C. public MyController (sObject obj) { account = (Account) obj; }
- D. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
Answer: A
NEW QUESTION 115
The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?
- A. Create the Picklist on each object and select "Restrict picklist to the values defined in the value set".
- B. Create the Picklist on each and add a validation rule to ensure data integrity.
- C. Create the Picklist on each object as a required field and select "Display values alphabeticaly, not in the order entered".
- D. Create the Picklist on each object and use a Global Picklist Value Set containing the Values.
Answer: D
NEW QUESTION 116
......
Tested Material Used To CRT-450: https://www.topexamcollection.com/CRT-450-vce-collection.html
Following are some new CRT-450 Real Exam Questions!: https://drive.google.com/open?id=1LApI2mFbuwJX6cO8eDJKx7Su-0d3hZbr

