Salesforce Certified Platform Developer II Certified Platform Developer II Dumps in PDF

Free Salesforce Certified Platform Developer II Real Questions (page: 5)

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?

  1. Remove the Apex Class from the Integration User's Profile.
  2. Use the Database method with allOrNone set to False.
  3. Use a Try/Catch block after the insert statement.
  4. Deactivate the Trigger before the Integration runs.

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?

  1. The mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements.
  2. There will be no error, since each trigger fires within its own context and each trigger does not exceed the limit of the number of records processed by DML statements.
  3. There will be no error, since the limit on the number of records processed by DML statements is 50,000.
  4. The mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements.

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?

  1. Add a before insert trigger on Account to set the value of the required field.
  2. Create a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.
  3. Change the required field to be a validation rule that excludes the System Administrator profile.
  4. Add the required field to the data setup for all of the unit tests.

Answer(s): B



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?

  1. Add an onerror event handler to the tag.
  2. Add an error-view component to the markup.
  3. Use an AuraHandledException in a try/catch block.
  4. Use ProcessBuilder to catch the error.

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?

  1. Account a = controller.getAccount('TestAccount');
    System.assertEquals( 'TestAccount', a.Name );
  2. MyRemoter remote = new MyRemoter();
    Account a = remote.getAccount('TestAccount');
    System.assertEquals( 'TestAccount', a.Name );
  3. MyRemoter remote = new MyRemoter('TestAccount');
    Account a = remote.getAccount ();
    System.assertEquals( 'TestAccount', a.Name );
  4. Account a = MyRemoter.getAccount('TestAccount');
    System.assertEquals( 'TestAccount', a.Name );

Answer(s): D



Share your comments for Salesforce Certified Platform Developer II exam with other users:

S
Sanyog Deshpande
9/14/2023 7:05:00 AM

good practice

T
Tyron
9/8/2023 12:12:00 AM

so far it is really informative

B
beast
7/30/2023 2:22:00 PM

hi i want it please please upload it

M
Mirex
5/26/2023 3:45:00 AM

am preparing for exam ,just nice questions

E
exampei
8/7/2023 8:05:00 AM

please upload c_tadm_23 exam

A
Anonymous
9/12/2023 12:50:00 PM

can we get tdvan4 vantage data engineering pdf?

A
Aish
10/11/2023 5:51:00 AM

want to clear the exam.

S
Smaranika
6/22/2023 8:42:00 AM

could you please upload the dumps of sap c_sac_2302

B
Blessious Phiri
8/15/2023 1:56:00 PM

asm management configuration is about storage

L
Lewis
7/6/2023 8:49:00 PM

kool thumb up

M
Moreece
5/15/2023 8:44:00 AM

just passed the az-500 exam this last friday. most of the questions in this exam dumps are in the exam. i bought the full version and noticed some of the questions which were answered wrong in the free version are all corrected in the full version. this site is good but i wish the had it in an interactive version like a test engine simulator.

T
Terry
5/24/2023 4:41:00 PM

i can practice for exam

E
Emerys
7/29/2023 6:55:00 AM

please i need this exam.

G
Goni Mala
9/2/2023 12:27:00 PM

i need the dump

L
Lenny
9/29/2023 11:30:00 AM

i want it bad, even if cs6 maybe retired, i want to learn cs6

M
MilfSlayer
12/28/2023 8:32:00 PM

i hate comptia with all my heart with their "choose the best" answer format as an argument could be made on every question. they say "the "comptia way", lmao no this right here boys is the comptia way 100%. take it from someone whos failed this exam twice but can configure an entire complex network that these are the questions that are on the test 100% no questions asked. the pbqs are dead on! nice work

S
Swati Raj
11/14/2023 6:28:00 AM

very good materials

K
Ko Htet
10/17/2023 1:28:00 AM

thanks for your support.

P
Philippe
1/22/2023 10:24:00 AM

iam impressed with the quality of these dumps. they questions and answers were easy to understand and the xengine app was very helpful to use.

S
Sam
8/31/2023 10:32:00 AM

not bad but you question database from isaca

B
Brijesh kr
6/29/2023 4:07:00 AM

awesome contents

J
JM
12/19/2023 1:22:00 PM

answer to 134 is casb. while data loss prevention is the goal, in order to implement dlp in cloud applications you need to deploy a casb.

N
Neo
7/26/2023 9:36:00 AM

are these brain dumps sufficient enough to go write exam after practicing them? or does one need more material this wont be enough?

B
Bilal
8/22/2023 6:33:00 AM

i did attend the required cources and i need to be sure that i am ready to take the exam, i would ask you please to share the questions, to be sure that i am fit to proceed with taking the exam.

J
John
11/12/2023 8:48:00 PM

why only give explanations on some, and not all questions and their respective answers?

B
Biswa
11/20/2023 8:50:00 AM

refresh db knowledge

S
Shalini Sharma
10/17/2023 8:29:00 AM

interested for sap certification

E
ethan
9/24/2023 12:38:00 PM

could you please upload practice questions for scr exam ?

V
vijay joshi
8/19/2023 3:15:00 AM

please upload free oracle cloud infrastructure 2023 foundations associate exam braindumps

A
Ayodele Talabi
8/25/2023 9:25:00 PM

sweating! they are tricky

R
Romero
3/23/2022 4:20:00 PM

i never use these dumps sites but i had to do it for this exam as it is impossible to pass without using these question dumps.

J
John Kennedy
9/20/2023 3:33:00 AM

good practice and well sites.

N
Nenad
7/12/2022 11:05:00 PM

passed my first exam last week and pass the second exam this morning. thank you sir for all the help and these brian dumps.

L
Lucky
10/31/2023 2:01:00 PM

does anyone who attended exam csa 8.8, can confirm these questions are really coming ? or these are just for practicing?

AI Tutor 👋 I’m here to help!