[Oct-2023] Latest Salesforce CRT-450 Certification Practice Test Questions
Verified CRT-450 Dumps Q&As - 1 Year Free & Quickly Updates
NEW QUESTION # 16
A developer has a unit test that is failing. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous Apex Tool. The code then executes without failing. Why did the unit test failed, but not the Execute Anonymous?
- A. The test method relies on existing data in the database
- B. The test method calls an @future method.
- C. The test method has a syntax error in the code.
- D. The test method use a try/catch block
Answer: A
NEW QUESTION # 17
What are two considerations for deciding to use a roll-up summary field? Choose 2 answer's partner.
- A. Roll-up summary fields do not cause validation rules on the parent object unless that object is edited separately.
- B. Roll-up cannot be performed on formula fields that use cross-object references or on-the-fly calculations such as NOW().
- C. Roll-up summary can be performed on formula fields, but if their formula contains an #Error result, it may affect the summary value.
- D. Roll-up cannot be performed on formula fields.
Answer: B,C
NEW QUESTION # 18
The Review_c object has a lookup relationship up to the Job_Application_c object. The Job_Application_c object has a master-detail relationship up to the Position_c object. The relationship field names are based on the auto-populated defaults.
What is the recommended way to display field data from the related Position_c record on a Visualforce page for a single Review_c record?
- A. Use the Standard Controller for Job_Application_c and a Controller Extension to query for Position_c data.
- B. Use the Standard Controller for Job_Application_c and cross-object Formula Fields on the Review_c object to display Position_c data.
- C. Use the Standard Controller for Review_c and cross-object Formula Fields on the Position_c object to display Position_c data.
- D. Use the Standard Controller for Review_c and expression syntax in the Page to display related Position_c data through the Job_Application_c object.
Answer: B
NEW QUESTION # 19
What is the return data type when ApexPages.currentPage().getParameters() is used to retrieve URL parameters from a visualforce controller?
- A. String[]
- B. Map
- C. List
- D. Enum
Answer: B
NEW QUESTION # 20
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List<OpportunityLineItem> getOpportunityProducts(Set<Id> opportunityIds){ List<OpportunitylineItem> oppLineItems = new List<OpportunityLineItem>(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } 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.getQueries() method to ensure the number of queries is less than 100.
- B. Use the System.Limits.getlimitQueries() 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. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
Answer: C
NEW QUESTION # 21
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?
- A. Increase the test class coverage on the helper class
- B. Create a test class and methods to cover the Apex trigger
- C. Run the tests using the 'Run All Tests' method.
- D. Remove the falling test methods from the test class.
Answer: D
NEW QUESTION # 22
code below deserializes input into a list of Accounts.
Which code modification should be made to insert the Accounts so that field-level security is respected?
- A. 01: Public with sharing class AcctCreator
- B. 05: Accts = database.stripinaccesible (accts, Database. CREATEABLE);
- C. 05: SobjectAcessDecision sd= Security,stripINaccessible(AccessType,CREATABLE,
- D. 05: If (SobjectType.Account, isCreatable())
Answer: A
NEW QUESTION # 23
A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) {
/*implementation*/ } } Which is the correct implementation?
- A. Public class CreditCardPayment implements Payment {
public override void makePayment(Decimal amount) { /*Implementation*/ }
} - B. Public class CreditCardPayment implements Payment {
public virtual void makePayment(Decimal amount) { /*implementation*/ }
} - C. Public class CreditcardPayment extends Payment {
public override void makePayment(Decimal amount) { /*implementation*/ }
} - D. Public class CreditCardPayment extends Payment {
public virtual void makePayment(Decimal amount) { /*implementation*/ }
}
Answer: C
NEW QUESTION # 24
Which two statements are true about Getter and Setter methods? (Choose two.)
- A. Setter methods are required to pass a value from a page to a controller.
- B. Setter methods always have to be declared global.
- C. There is no guarantee for the order in which Getter or Setter methods are executed.
- D. Getter methods can pass a value from a controller to a page.
Answer: A,C
NEW QUESTION # 25
When a task is created for a contact, how can a developer prevent the task from being included on the activity timeline of the contact's account record?
- A. By default,tasks do not display on the account activity timeline
- B. Create a task trigger to set the account field to NULL
- C. Use process builder to create a process to set the task account field to blank
- D. In activity settings,uncheck roll-up activities to a contact's primary account
Answer: D
NEW QUESTION # 26
What are two uses for External IDs? (Choose two.)
- A. To create relationships between records imported from an external system.
- B. To create a record in a development environment with the same Salesforce ID as in another environment
- C. To prevent an import from creating duplicate records using Upsert
- D. To identify the sObject type in Salesforce
Answer: A,C
NEW QUESTION # 27
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 and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers
- A. Use if (thisContact.Owner = = UserInfo.getuserId ( ) )
- B. Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )
- C. Use if (Schema, sobjectType, Contact, isUpdatable ( ) )
- D. Use if (Schema.sObjectType.Contact.isAccessible ( ) )
Answer: B,C
NEW QUESTION # 28
A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class.
Which code segment shows the correct declaration of the class and methods?
- A.

- B.

- C.

- D.

Answer: A
NEW QUESTION # 29
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 new Support Manager permission set.
- B. Create one Visualforce Page for use by both profiles.
- C. Use a custom controller that has the with sharing keywords.
- D. Create a separate Visualforce Page for each profile.
Answer: C
NEW QUESTION # 30
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or update.
The field update in the workflow rule is configured to not re-evaluate workflow rules. What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION # 31
What are three ways for 2 developer to execute tests in an org? Choose 3 answers
- A. Setup Menu
- B. Metadata APT
- C. SalesforceDX
- D. Tooling API
- E. Bulk API
Answer: A,C,D
NEW QUESTION # 32
Which declarative method helps ensure quality data? (Choose 3)
- A. Page Layouts
- B. Validation Rules
- C. Workflow alerts
- D. Lookup Filters
- E. Exception Handling
Answer: A,B,D
NEW QUESTION # 33
......
Salesforce CRT-450, also known as Salesforce Certified Platform Developer I, is a certification exam that validates the skills and knowledge of individuals working as developers on the Salesforce Platform. Salesforce Certified Platform Developer I certification exam is designed to assess the developer's ability to build custom applications, handle data and logic, and automate business processes using Salesforce technologies. The Salesforce CRT-450 certification exam is highly sought after by employers as it demonstrates the developer's expertise in the Salesforce ecosystem.
Latest 2023 Realistic Verified CRT-450 Dumps - 100% Free CRT-450 Exam Dumps: https://www.exams-boost.com/CRT-450-valid-materials.html
Get 2023 Updated Free Salesforce CRT-450 Exam Questions and Answer: https://drive.google.com/open?id=1m-eeSDQJsS3Gh52dolYiRkTjzWNfKu8f