0% found this document useful (0 votes)
192 views11 pages

PDI Mod 3 Printable PDF

This document provides an overview of the user interface section of the Platform Developer I certification exam, focusing on Visualforce. It includes practice questions to help prepare for the exam. The exam tests knowledge of Visualforce pages, controllers, and the Lightning Component framework. Interactive flashcards and scenario-based questions are included to allow users to practice common question types found on the exam.

Uploaded by

samya222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
192 views11 pages

PDI Mod 3 Printable PDF

This document provides an overview of the user interface section of the Platform Developer I certification exam, focusing on Visualforce. It includes practice questions to help prepare for the exam. The exam tests knowledge of Visualforce pages, controllers, and the Lightning Component framework. Interactive flashcards and scenario-based questions are included to allow users to practice common question types found on the exam.

Uploaded by

samya222
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Platform Developer I Certification Prep: User Interface

Unit 1: Study Up on Visualforce


Learning Objectives
After completing this unit, you'll be able to:

• Describe how to display Salesforce data using a Visualforce page.


• Describe the benefits of the Lightning Component framework.

Key Topics
This module prepares you for the user interface section of the Platform Developer I exam, which makes up
10% of the overall exam. This section of the exam tests these topics.

• Visualforce pages
• Visualforce controllers
• Lightning Component framework

This module includes a number of interactive, real-world, scenario-based questions that are a lot like the ones
you can encounter as a Salesforce developer. Looking at these scenarios helps prepare you to take the user
interface section of the Platform Developer I exam. As you tackle the practice questions, you get immediate
feedback on your answers, along with detailed information on why your answers are correct (or incorrect).

The module includes two units on user interfaces. This unit focuses on Visualforce.

Exam Practice Questions


Ready to jump in? The sample tool below is not scored—it’s just an easy way to quiz yourself. To use it, read
the scenario on the left side, then click on the answer you think is correct. Some questions may have more
than one correct answer. Click submit, and you get a pop-up telling you whether the answer you chose is
correct or incorrect, and why. When you reach the end, you can review the answers or retake the questions.

1
Platform Developer I Certification Prep: User Interface

Scenario 1

The Review__c object has a lookup relationship up to the Job_Application__c object. The Job_Application__c
object has a master-detail relationship up to the Position__c object. The relationship field names are based on
the auto-populated defaults. What is the recommended way to display field data from the related Review__c
records on a Visualforce page for a single Position__c record?

ANSWER FEEDBACK

A. UTILIZE THE STANDARD CONTROLLER Incorrect. You cannot access child record information
FOR POSITION__C AND EXPRESSION using only a standard controller. You need to use a
SYNTAX IN THE PAGE TO DISPLAY controller extension.
RELATED REVIEW__C DATA THROUGH
THE JOB_APPLICATION__C OBJECT.

B. UTILIZE THE STANDARD CONTROLLER Incorrect. Cross-object formula fields cannot access child
FOR POSITION__C AND CROSS-OBJECT records, only the parent fields.
FORMULA FIELDS ON THE
JOB_APPLICATION__C OBJECT TO
DISPLAY REVIEW__C DATA.

C. UTILIZE THE STANDARD CONTROLLER Incorrect. Cross-object formula fields cannot access child
FOR POSITION__C AND CROSS-OBJECT records, only the parent fields.
FORMULA FIELDS ON THE REVIEW__C
OBJECT TO DISPLAY REVIEW__C DATA.

D. UTILIZE THE STANDARD CONTROLLER Correct. A controller extension is the way to query the
FOR POSITION__C AND A CONTROLLER Review child records while keeping the standard
EXTENSION TO QUERY FOR REVIEW__C controller functionality.
DATA.

2
Platform Developer I Certification Prep: User Interface

Scenario 2

What are two capabilities of a StandardSetController? (Select two answers.)

ANSWER FEEDBACK

A. IT ALLOWS PAGES TO PERFORM MASS Correct. The StandardSetController class also


UPDATES OF RECORDS. contains a prototype object. This is a single
sObject contained within the
StandardSetController class. If the prototype
object's fields are set, those values are used
during the save action, meaning that the values
are applied to every record in the set
controller's collection. This is useful for writing
pages that perform mass updates

B. IT ALLOWS PAGES TO PERFORM Correct. StandardSetControllers have built-in


PAGINATION WITH LARGE RECORD SETS. pagination that helps reduce the number of
records displayed on the page.

C. IT EXTENDS THE FUNCTIONALITY OF A Incorrect. Controller extension classes are the ones
STANDARD OR CUSTOM CONTROLLER. that extend the functionality of a standard or
custom controller.

D. IT ENFORCES FIELD-LEVEL SECURITY WHEN Incorrect. The StandardSetController does not


READING LARGE RECORD SETS. enforce field-level security.

3
Platform Developer I Certification Prep: User Interface

Scenario 3

A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object.
How can a developer display data from the parent record on the page?

ANSWER FEEDBACK

A. USE SOQL ON THE VISUALFORCE PAGE TO Incorrect. You would need a controller extension
QUERY FOR DATA FROM THE PARENT RECORD. to query for the parent data. It is unnecessary
since you can use merge field syntax.

B. ADD A SECOND STANDARD CONTROLLER TO Incorrect. You cannot have two standard
THE PAGE FOR THE PARENT RECORD. controllers on a page.

C. USE A ROLL-UP FORMULA FIELD ON THE Incorrect. Roll-up formula fields are used to
CHILD RECORD TO INCLUDE DATA FROM THE retrieve summarized data from child records when
PARENT RECORD. the relationship is master detail. In this case we
need the parent record’s information.

D. USE MERGE FIELD SYNTAX TO RETRIEVE Correct. You can use related merged fields to
DATA FROM THE PARENT RECORD. get the data from the parent record. The
relative fields are prepended to __r.

4
Platform Developer I Certification Prep: User Interface

Scenario 4

What are two reasons that a developer should use a custom Visualforce page in a Lightning Platform
application? (Select two answers.)

ANSWER FEEDBACK

A. TO GENERATE A PDF DOCUMENT WITH Correct. Currently a Visualforce page is


APPLICATION DATA required to render a PDF document.

B. TO CREATE COMPONENTS FOR DASHBOARDS Correct. You can embed a Visualforce page
AND LAYOUTS anywhere in your Salesforce dashboard as a
standard component.

C. TO DEPLOY COMPONENTS BETWEEN TWO Incorrect. You can do this using the standard
ORGANIZATIONS Salesforce UI.

D. TO MODIFY THE PAGE LAYOUT SETTINGS FOR Incorrect. You can do this using the standard
A CUSTOM OBJECT Salesforce UI.

5
Platform Developer I Certification Prep: User Interface

Exam Topic Flashcards


Each unit also includes interactive flashcards to help you to brush up on some of the key topics you’ll find on
this part of the exam.

Read the question or term on each card, then click on the card to reveal the correct answer. Click the right-
facing arrow to move to the next card, and the left facing arrow to return to the previous card.

Question/Term Answer/Definition

What is the preferred way to


reference web content such as
Upload the content as a static resource.
images, stylesheets, JavaScript, and
other libraries that are used in
Visualforce pages?

What is the name of the controller for


a Visualforce page that is used to The Opportunity StandardController for pre-
override the standard Opportunity built functionality
view button?

Which two tags do you use to load


<apex:includeScript> tag and <script>
external JavaScript files into a
tag
Visualforce page?

6
Platform Developer I Certification Prep: User Interface

Related Badges

Looking for more information? Explore these related badges.

Badge Content Type

Module

Lightning Experience Development

Next, let’s review the Lightning Component framework.

Unit 2: Review the Lightning Component Framework


Learning Objectives
After completing this unit, you'll be able to:

• Describe the benefits of the Lightning Component framework.


• Describe the resources that can be contained in a Lightning component.

Exam Practice Questions


This unit focuses on the Lightning Component framework. If you are ready to test your knowledge check out
the sample tool below.

The sample tool below is not scored—it’s just an easy way to quiz yourself. To use it, read the scenario on the
left side, then click on the answer you think is correct. Some questions may have more than one correct
answer. Click submit, and you get a pop-up telling you whether the answer you chose is correct or incorrect,
and why. When you reach the end, you can review the answers or retake the questions.

7
Platform Developer I Certification Prep: User Interface

Scenario 1
Which two resources can you include in a Lightning component bundle? (Select two answers.)

ANSWER FEEDBACK

A. ADOBE FLASH Incorrect. This is not part of the Lightning component


bundle.

B. HELPER Correct. A component bundle contains a component


or an app and all its related resources, including
helpers.

C. APEX CLASS Incorrect. This is not part of the Lightning component


bundle.

D. DOCUMENTATION Correct. A component bundle contains a component


or an app and all its related resources, including
documentation.

8
Platform Developer I Certification Prep: User Interface

Scenario 2
What is a benefit of the Lightning Component framework?

ANSWER FEEDBACK

A. IT AUTOMATICALLY REPLICATES THE Incorrect. The Lightning Component framework has a


CLASSIC SALESFORCE LOOK AND FEEL different look and feel called Salesforce Lightning Design
System (SLDS).

B. BETTER INTEGRATION WITH


SALESFORCE SITES Incorrect. The Lightning Component framework does not
provide a better integration with Sites.

C. MORE CENTRALIZED CONTROL VIA Incorrect. In the Lightning Component framework, most of
SERVER-SIDE LOGIC the logic is performed in the front end.

D. BETTER PERFORMANCE FOR CUSTOM Correct. The Lightning Component framework has
SALESFORCE MOBILE APPS out-of-the-box components that function seamlessly
with mobile devices.

9
Platform Developer I Certification Prep: User Interface

Exam Topic Flashcards


Use these interactive flashcards to review some key topics that you’ll find on the Lightning Component
framework part of the exam.

Read the question or term on each card, then click on the card to reveal the correct answer. Click the right-
facing arrow to move to the next card, and the left facing arrow to return to the previous card.

Question/Term Answer/Definition

Which tag do you use to display


<apex:outField>
individual fields from a record?

Lightning components are available Salesforce Mobile App, Communities, and


in what three products? Lightning Experience

What is the suffix for a Lightning


.cmp
Component resource?

10
Platform Developer I Certification Prep: User Interface

Related Badges
Looking for more information? Explore these related badges.

Badge Content Type

Module

Aura Components Core Concepts

Module

Aura Components Skills & Tools

Great work! That’s a wrap for the user interface section of the Platform Developer I exam. Happy studying.

11

You might also like