Question 19

A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a 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?

Correct Answer:A

Question 20

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for
the user who executes the code in the Salesforce organization?

Correct Answer:D

Question 21

A developer uses a before insert trigger on the Lead object to fetch the Territory c object, where the Territory c.PostalCode c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10,000 Lead records. The developer has the following code block: Line-01: for (Lead l : Trigger.new){Line-02: if (l.PostalCode != null) {Line-03: List terrList = [SELECT Id FROM Territory c WHERE PostalCode c = :l.PostalCode];Line-04: if(terrList.size() > 0) Line-05: l.Territory c = terrList[0].Id; Line-06: }Line-07: }Which line of code is causing the code block to fail?

Correct Answer:A

Question 22

A developer has the following code block:
public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost * XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?

Correct Answer:C

Question 23

What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?

Correct Answer:C

Question 24

Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers

Correct Answer:AD

START CRT-450 EXAM