[2024] New PDI exam dumps Use Updated Salesforce Exam
Verified PDI Dumps Q&As - PDI Test Engine with Correct Answers
NEW QUESTION # 102
Which is a valid apex assignment?
- A. Integer = 5,0
- B. Float x = 5.0
- C. Integer x=5 * 1,0
- D. Double x = 5
Answer: D
NEW QUESTION # 103
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
- A. Write a class that extends WebserviceMock
- B. Write a class that implements the WebserviceMock interface.
- C. Write a classthat implements the HTTPCalloutMock interface.
- D. Write a class that extends HTTPCalloutMock.
Answer: C
NEW QUESTION # 104
Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a master-detail relationship with the standard Account object.
Based on some internal discussions, the UC administrator tried to change the master-detail relationship to a lookup relationship, but was not able to do so.
What is a possible reason that this change was not permitted?
- A. The organization wide default for the Vendor object is Public Read/Write.
- B. The Account object does not allow changing a field type for a custom field.
- C. The Account object has a roll-up summary field on the Vendor object.
- D. Some of the Vendor records have null for the Account field.
Answer: C
NEW QUESTION # 105
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 master-detail relationship to indicate that a person has an employer
- B. Create a lookup realtionship to indicate that a person has an employer
- C. Create a junction object to relate many people to many through lookup relationship
- D. Create a junction object to relate many people to many through master-detail relationship
Answer: A
NEW QUESTION # 106
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?
- A. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount);
} - B. Public class CheckPaymentProcessor extends PaymentProcessor {
public void pay(Decimal amount) {}
} - C. Public class CheckPaymentProcessor implements PaymentProcessor {
public void pay(Decimal amount) {}
} - D. Public class CheckPaymentProcessor implements PaymentProcessor {
public void pay(Decimal amount);
}
Answer: D
NEW QUESTION # 107
The sales management team requires that the lead source field of the Lead record be populated when Lead is converted. What would a developer use to ensure that a user populates the Lead source field?
- A. Workflow rule
- B. Validation rule
- C. Process builder
- D. Formula field
Answer: B
NEW QUESTION # 108
The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:
Which governor limit will likely be exceeded within the Apex transaction?
- A. Total number of records processed as a result of DML statements
- B. Total number of DML statement issued
- C. Total number of records retrieved by SOQL queries
- D. Total number of SOQL queries issued
Answer: C
NEW QUESTION # 109
Universal Container(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 ad to create the most efficient model that supports the business need?
- A. Add a Master-Detail field on the Global Address object to the Account object.
- B. Add a Master-Detail field on the Account object to the Global Address object
- C. Add a Lookup field on the Account object to the Global Address object.
- D. Add a Lookup field on the Global Address object to the Account object
Answer: B
NEW QUESTION # 110
A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?
- A. In a Controller Extension.
- B. In a Standard Extension.
- C. In a Standard Controller.
- D. In a Custom Controller.
Answer: A
NEW QUESTION # 111
From which 2 locations can a developer determine the overall code coverage for a sandbox?
- A. The test suite run panel of the developer console
- B. The apex classes setup page
- C. The apex test execution page
- D. The tests tab of the developer console
Answer: B,D
NEW QUESTION # 112
Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)
- A. Namespace
- B. Debug Statement
- C. Exception
- D. Time
Answer: A,D
NEW QUESTION # 113
A develop completed modification to a customized feature that is comprised of two elements:
Apex trigger
Trigger handler Apex class
What are two factors that the developer must take into account to properly deploy the modification to the production environment?
- A. At least one line of code must be executed for the Apex trigger.
- B. Apex classes must have at least 75% code coverage org-wide.
- C. All methods in the test classes must use @isTest.
- D. Test methods must be declared with the testMethod keyword.
Answer: A,B
NEW QUESTION # 114
A developer is creating an app that contains multiple Lightning web components.
One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
- A. Fire a notification.
- B. Call a method in the Apex controller.
- C. Update a property on the parent.
- D. Create a custom event.
Answer: D
NEW QUESTION # 115
What is an accurate constructor for a custom controller named "MyController"?
- A. public MyController (sObject obj) { account = (Account) obj; }
- B. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }
- C. public MyController (List objects) { accounts = (List ) objects; }
- D. public MyController () { account = new Account () ; }
Answer: D
NEW QUESTION # 116
A recursive transaction is limited by a DML statement creating records for these two objects:
1. Accounts
2. Contacts
The Account trigger hits a stack depth of 16.
Which statement is true regarding the outcome of the transaction?
- A. The transaction succeeds and all the changes are committed to the database.
- B. The transaction fails only if the Contact trigger stack depth is greater or equal to 16.
- C. The transaction fails and all the changes are rolled back.
- D. The transaction succeeds as long as the Contact trigger stack depth is less than 16.
Answer: A
NEW QUESTION # 117
What is the data type returned by the following SOSL search? {FIND 'Acme*' in name fields returning account,opportunity};
- A. List<List<Account>,List<Opportunity>
- B. Map<Id,sObject>
- C. List<List<sObject>>
- D. Map<sObject,sObject>
Answer: C
NEW QUESTION # 118
Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.
Which consideration should the developer be aware of when deciding between SOQ1 Mid SOSL ?
Choose 2 answers
- A. SOSL is able to return more records.
- B. SOQL is able to return more records.
- C. SOQL is faster for text searches.
- D. SOSL is faster for tent searches.
Answer: B,D
NEW QUESTION # 119
What should a developer use to implement an automate approval process submission for case?
- A. An assignment rules.
- B. A workflow rules.
- C. Scheduled apex.
- D. Process builder.
Answer: D
NEW QUESTION # 120
A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletion?
- A. Schena, sobjectType, Account, isDeletetable ()
- B. accountRec., isDeletable()
- C. Account, isDeletable ()
- D. AccountRec, ObjecType, ieDeletable ()
Answer: A
NEW QUESTION # 121
What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?
- A. By uploading the content in the Documents tab.
- B. By accessing the content from Chatter Files.
- C. By accessing the content from a third -party CON.
- D. By uploading the content as a Static Resource.
Answer: D
NEW QUESTION # 122
A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension.Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."What can the developer do to successfully deploy the new Visualforce page and extension?
- A. Select "Disable Parallel Apex Testing" to run all the tests.
- B. Add test methods to existing test classes from previous deployments.
- C. Select "Fast Deployment'' to bypass running all the tests.
- D. Create test classes to exercise the Visualforce page markup.
Answer: B
NEW QUESTION # 123
Which scenario is valid for execution by unit tests?
- A. Load data from a remote site with a callout.
5. Set the created date of a record using a system method.
Cc: Execute anonymous Apex as a different user. - B. Generate a Visualforce PDF with geccontentAsPDF ().
Answer: B
NEW QUESTION # 124
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.)
- A. Upsert myAccounts Foreign_Key__c;
- B. Database.upsert(myAccounts).Foreign_Key__c;
- C. Database.upsert (myAccounts, Foreign_Key__c);
- D. Upsert myAccounts(Foreign_Key__c);
Answer: A,C
NEW QUESTION # 125
......
Pass Your PDI Dumps as PDF Updated on 2024 With 171 Questions: https://www.torrentvalid.com/PDI-valid-braindumps-torrent.html
Salesforce PDI Real Exam Questions and Answers FREE: https://drive.google.com/open?id=1VjB6OhVxBCctX1zpbPYNirEtdVbp-ILg