dpd2 Flashcards

1
Q

Which type of controller is best suited when you want all of the basic DML functions from an object’s normal new/edit page and want to include multiple records?
Standard Controllerwrong
Standard List/Set Controller
Controller Extensions
Custom Controller

A

Standard List/Set Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created.

Which consideration should be checked to resolve the issue?
Ensure the Apex Classes are on the same API version.
Ensure Process Builder processes are inactive.
Ensure the sandbox is on the same release as production.
Ensure Workflow Rules are inactive.

A

Ensure the sandbox is on the same release as production.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Within the System.Limit class, what would you call to get the number of calls made in your transaction?
get [typeOfLimit] ―> (Ex. getDXLStaterr.ents () )
getLimit [typeOf Limit] ―> (Ex. getLirr.it DXLSt at err.ents () )

A

get [typeOfLimit] ―> (Ex. getDXLStaterr.ents () )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An org has a custom object, Registeration_c that has a lookup relationship to the Opportunity object.

What should a developer use to create a stand-alone Vlsualforce page that displays the Registration__c records related to an Opportunity.
A standard controller with a controller extension
A controler extension
A custom controler
A standard controller

A

A standard controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How should a developer assert that a trigger with an asynchronous process has successfully run?
Create at test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.
Insert records into Salesforce, use seeAllData-true, then perform assertions.
Create all test data, use @future In the test class, then perform assertions.
Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,

A

Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

System. QueryException: List has more than one row after Assignment on Account.
System. LimitException: To many SOQL Queries on Account.
System. QueryException: To many DML Statement errors on Contactwrong
System. LimitException: Too many SOQL Queries on Contract

A

System. QueryException: List has more than one row after Assignment on Account.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Universal Containers has a Visualforce page that displays a table every Container_ c being rented by a gives Account.. failing because some of the customers rent over 100,000 containers.

What should a developer change about the Visualforce page to help with the page load errors?
Implement pagination with an OffsetController.
Implement pagination with a StandardSetController.
Use lazy loading and a transient List variable.wrong
Use JavaScript remoting with SOQL Offset

A

Implement pagination with a StandardSetController.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user’s locale.

What is the most effective approach to ensure values displayed respect the user’s locale settings?
Use the FOR VIEW clause in the SOQL Query.wrong
Use REGEX expressions to format the values retrieved via SOQ
Use the FORMAT() function in the SOQL query.
Use a wrapper class to format the values retrieved via SOQ

A

Use the FORMAT() function in the SOQL query

How well did you know this?
1
Not at all
2
3
4
5
Perfectly