Salesforce Developer I Summer’18 Release Exam

Which Visualforce code can a developer use to provide Lightning look and feel to Visualforce pages?

A) in the element
B) lightningStylesheets = “true” in the element
C) lightningStylesheets = “true” in the element
D) apex:includeLightning = “True” int he element

Answer: C

How can a developer detect the current user’s Salesforce user interface type in JavaScript on a Visualforce page?

A) Use the UserInfo.getUITheme() function
B) Use the UITheme.getUITheme() function
C) Use the Organization.getSettings() function
D) Use the SessionManagement.getCurrentSession() function

Answer: B

Which class enables a developer to test platform events in Apex unit tests?

A) Use the @IsTest annotation
B) Use the HTTPCalloutMock class
C) Use the EventBus.TestBroker class
D) Use the @RemoteAction annotation

Answer: C

Which Apex method eliminates the need for a SOQL query to determine the developer name for a record type?

A) System.RecordTypeId.getDeveloperName()
B) Schema.RecordTypeInfo.getRecordTypeId()
C) System.String.getDeveloperName()
D) Schema.RecordTypeInfo.getDeveloperName()

Answer: D

How can a developer troubleshoot governor limit problems in transactions that include multiple flows?

A) Use breakpoints in Developer Console
B) Add system.debug() statements to the flow
C) Set the workflow debug level to Finer in the debug log
D) Add flow screen to display limits during the flow

Answer: C

What can a developer reference to ensure that a consistent value is used in the criteria for multiple validation rules?

A) A list custom setting in the validation rules
B) A global value set in the validation rules
C) A custom permission in the validation rules
D) A custom metadata type in the validation rules

Answer: D

Which statement is true about the new Lightning URL format?

A) URLs that use /one/ in email templates must be update
B) Components with existing URLs that use /one/ will continue to work
C) The change applies to all Salesforce apps, console apps, mobile versions and communities
D) Installed Lightning components will automatically translate the old URL to new format

Answer: B

How can a developer redirect a user to a Lightning page from a Visualforce page?

A) Generate a URL using UserInfo.getUITheme()
B) Generate a URL using PageRference.getURL()
C) Generate a URL in the format /lightning/r/sObject/sObjectID
D) Generate a URL in the format /one/

Answer: C


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.