Salesforce Certified Platform Developer II Exam Practice Questions (P. 3)
- Full Access (424 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?
- ARemove the Apex Class from the Integration User's Profile.
- BUse the Database method with allOrNone set to False.
- CUse a Try/Catch block after the insert statement.Most Voted
- DDeactivate the Trigger before the Integration runs.
C

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #22
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?
- AThe mass update will fail, since the two triggers fire in the same context, thus exceeding the number of records processed by DML statements.Most Voted
- BThere 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.
- CThere will be no error, since the limit on the number of records processed by DML statements is 50,000.
- DThe mass update of Account address will succeed, but the Contact address updates will fail due to exceeding number of records processed by DML statements.
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #23
What is the optimal way for a developer to fix the issue?
- AAdd a before insert trigger on Account to set the value of the required field.
- BCreate a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.
- CChange the required field to be a validation rule that excludes the System Administrator profile.
- DAdd the required field to the data setup for all of the unit tests.
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #24
What should the developer do to ensure a more meaningful message?
- AAdd an onerror event handler to the tag.
- BAdd an error-view component to the markup.
- CUse an AuraHandledException in a try/catch block.
- DUse ProcessBuilder to catch the error.
C

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #25
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?
- AAccount a = controller.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );
- BMyRemoter remote = new MyRemoter(); Account a = remote.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );
- CMyRemoter remote = new MyRemoter('TestAccount'); Account a = remote.getAccount (); System.assertEquals( 'TestAccount', a.Name );
- DAccount a = MyRemoter.getAccount('TestAccount'); System.assertEquals( 'TestAccount', a.Name );
D

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #26
Which component should be added to the Visualforce page to display the message?
- A<apex:message for="info"/>
- B<apex:facet name="messages" />
- C<apex:pageMessage severity="info" />
- D<apex:pageMessages />
D

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #27
Which scenario necessitates that the callout be made in an @future method?
- AThe callouts will be made in an Apex Trigger.Most Voted
- BThe callouts will be made in an Apex Test class.
- CThe callout could take longer than 60 seconds to complete.
- DOver 10 callouts will be made in a single transaction.
A

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #28
What are two limitations to the data being returned by the Controller? (Choose two.)
- AA custom Apex Class can be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are serialized and returned.Most Voted
- BLists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
- CBasic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.Most Voted
- DOnly Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.
AC

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #29
- Aforce:lightningQuickActionMost Voted
- Blightning:quickAction
- Clightning:editAction
- Dforce:lightningEditAction
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
Question #30
Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer.
The pricing logic already exists in a third-party system. Instead of recreating this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce.
What is the optimal solution?
- AA Visualforce page that can make a real-time Apex callout to display and save the pricing back in SalesforceMost Voted
- BAn Apex trigger that upon saving the Order will make a real-time Apex callout, saving the pricing back in Salesforce
- CA Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce
- DAn ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce
B

Hi! Do you need help with this question ?
- Why isn't the A the right answer?
- Traducir la pregunta al español
Contributor get free access to an augmented ChatGPT 4 trained with the latest IT Questions.
All Pages