A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors.Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
Answer(s): B
An environment has two Apex Triggers: an after-update trigger on Account and an after-update trigger on Contact. The Account after-update trigger fires whenever an Account’s address is updated, and it updates every associated Contact with that address. The Contact after-update trigger fires on every edit, and it updates every Campaign Member record related to the Contact with the Contact’s state.Consider the following: A mass update of 200 Account records’ addresses, where each Account has 50 Contacts. Each Contact has 1 Campaign Member. This means there are 10,000 Contact records across the Accounts and 10,000 Campaign Member records across the contacts.What will happen when the mass update occurs?
Answer(s): A
A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail.What is the optimal way for a developer to fix the issue?
A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?
Answer(s): C
global with sharing class MyRemoter { public String accountName { get; set; } public static Account account { get; set; } public AccountRemoter() {} @RemoteAction global static Account getAccount(String accountName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName]; return account; }}Consider the Apex class above that defines a RemoteAction used on a Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?
Answer(s): D
Post your Comments and Discuss Salesforce PDII exam dumps with other Community members:
Random Commented on August 01, 2025 great questions Anonymous
SFUsr Commented on July 27, 2025 great material Anonymous
papu Commented on July 27, 2025 nice material Anonymous
SP Commented on July 03, 2025 Good material for preparing PD2 exam Anonymous
SP Commented on July 03, 2025 Good for practice Anonymous
Anand Commented on June 27, 2025 Good for practice Anonymous
mam Commented on June 25, 2025 good question and exercise Anonymous
Priyanka Commented on June 16, 2025 I think the website functions well and gives very good practise questions , i found some of the other sites to be glitchy Anonymous
Sagar Dhawle Commented on June 16, 2025 Good For Practice ,nice questions Anonymous
Omar SAIDI Commented on June 03, 2025 Good for practice. FRANCE
Farooqi Commented on November 21, 2023 Good for practice. INDIA
Farooqi Commented on November 21, 2023 good for practice. INDIA