SFDC Forum
Quiz by , created more than 1 year ago

Quiz on SFDC PD1 Practice Set 2, created by SFDC Forum on 08/29/2018.

697
0
0
SFDC Forum
Created by SFDC Forum about 6 years ago
Close

SFDC PD1 Practice Set 2

Question 1 of 10

1

A developer needs to create a visualforce page that displays case data. The page will be used by both support reps and support managers. The support rep profile does not allow visibility of the customer_Satisfaction_c Field, but the support manager profile does. How can the developer create the page to enforce field level security and keep future maintenance to a minimum?

Select one of the following:

  • Create one visualforce page for use by both profiles

  • Use a new support manager permission sets

  • Create a separate visualforce page for each profile

  • Use a custom controller that has the with sharing keywords

Explanation

Question 2 of 10

1

A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<Account> accounts = [ Select ID, Name, (Select ID, Name from Contacts) from Account];
Which two exceptions may occur when it executes? Choose 2 answers

Select one or more of the following:

  • SOQL query limit exception due to the number of queries

  • CPU limit exception due to the complexity of the query

  • SOQL query limit exception due to the number of contacts

  • SOQL query limit exception due to the number of accounts

Explanation

Question 3 of 10

1

Which three options allow a developer to use stylesheets?

Select one or more of the following:

  • A static resource

  • <Apex:stylesheet>tag

  • <apex:stylesheets>tag

  • Inline CSS

  • <apex:style>tag

Explanation

Question 4 of 10

1

A platform developer needs to write an apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allows the developer to dynamically determine the ID of the required Record Type by its name? Choose 2 answers

Select one or more of the following:

  • Hardcode the ID as a constant in an Apex class

  • Execute a SOQL query on the RecordType Object

  • Use the getRecordTypeInfosByName()method in the DescribeSObjectResult Class.

  • Make an outbound web service call to the SOAP API.

Explanation

Question 5 of 10

1

Which SOQL query successfully returns the Accounts grouped by name?

Select one of the following:

  • Select type, Max(CreatedDate) FROM Account GROUP BY Name

  • Select Name, Max(CreatedDate) FROM Account GROUP BY Name

  • Select Id,type, Max(CreatedDate) FROM Account GROUP BY Name

  • Select type, Name Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5

Explanation

Question 6 of 10

1

Which approach should a developer use to add pagination to a visualforce page?

Select one of the following:

  • The extension attribute for a page

  • A standardController

  • The action attribute for a page

  • A StandardSetController

Explanation

Question 7 of 10

1

A Developer needs to test an invoicing system integration. After reviewing the numbers of transaction required for the test, the developer estimates that the test data will total about 2GB of data storage. Production data is not required for integration testing. Which two environments meet the requirements for testing? Choose 2 answers

Select one or more of the following:

  • Full sandbox

  • Developer sandbox

  • Developer Pro Sandbox

  • Developer Edition

  • Partial Sandbox

Explanation

Question 8 of 10

1

How should a developer prevent a recursive trigger?

Select one of the following:

  • Use a private Boolean variable

  • Use a “one trigger per object” pattern.

  • Use a trigger handler

  • Use a static Boolean variable

Explanation

Question 9 of 10

1

What is a capability of the <ltng:require> Tag that is used for loading external javascript libraries in lightning components? Choose 3 answers

Select one or more of the following:

  • Loading scripts in parallel

  • One-time loading from duplicate scripts

  • Loading files from documents

  • Specifying loading order

  • Loading externally hosted scripts

Explanation

Question 10 of 10

1

What is a requirement for a class to be used as a custom visualforce controller?

Select one of the following:

  • Any top-level Apex class that has a constructor that returns a PageReference

  • Any top-level Apex class that implements the controller interface

  • Any top-level Apex class that has a default, no-argument constructor

  • Any top-level Apex class that extends a PageReference

Explanation