ads

Tuesday, 28 November 2017

General Coding Questions


Q: Where can a component be displayed?
A: After you create a component, you will want to display it somewhere. There are a number of possibilities.
  • Lightning Experience: Display your component in the Lightning Experience using the App Builder. You can edit the home page, edit a record detail page or create/edit a new app page to include it. Alternatively, you can create a custom Lightning tab that references your component and add that tab to your Lightning navigation.
  • Salesforce1 Mobile app: Display your component in the Salesforce1 Mobile app by creating a custom Lightning tab that references it and adding that tab in your mobile navigation.
  • Template-based community: Display your component in your template-based (e.g. Napili) community using the Community Builder.
  • Standalone Lightning app: Create a standalone Lightning app (e.g. myapp.app) and include your component in this app. Access your Lightning app by URL.

Q: Do I always create an app bundle first?
A: Not necessarily, you can start with a Component bundle.

Q: How much Javascript do I need to know to develop Lightning Components?
A: You need at least intermediate-level JavaScript knowledge.

Q: Are Lightning Components intended only for mobile apps?
A: Components have been built to be mobile first, but with responsive design in mind. With Lightning you can build responsive apps fast for desktop, mobile and tablets.

Q: How do I deploy components to my production org?
A: You can develop Lightning Components in a sandbox or Developer Edition org and then deploy them to any organization that supports Apex using managed packages, Force.com IDE, Force.com Migration Tool or Change Sets. NOTE: We don’t recommend changing your development process to use namespaces and managed packages if you aren’t already using them.

Q: How do I include external JavaScript libraries in my components?
A: You can use a RequireJS component or Loader component (https://github.com/rajaraodv/loadcomponent) to load external JS or CSS files.

Q: Can I integrate Lightning components with another framework, such as Angular?
A: Yes. You can include the working 3rd party code inside a Visualforce Page, embed the Visualforce Page inside a Lightning Component. This Lightning Component can be used as any other Lightning Component in various environments.
The use of 3rd party frameworks directly inside Lightning Components is not supported. Packages with components that directly include 3rd party frameworks submitted to the AppExchange security review will automatically fail. We strongly suggest that your review our security review requirements for components before submitting.

Q: How is Lightning aware of what record you are on if you embed it in Salesforce1? (i.e. how do you get the ID of the record you are on like in a standard controller)?
A: Your component just needs to implement the force:recordTab interface and the record and recordId will be automatically injected when your component is wired into record home.

Q: Are there any CSS (styles) provided by salesforce.com as part of the supported Lightning Components?

Namespace Questions


Q: What is Aura? Why do I see the aura: namespace in the code?
A: Aura is the open source technology that powers Lightning Components. The aura: namespace contains all of the basic building blocks for defining components and applications.

Q: Do I need a namespace to develop Lightning Components?
A: No. Lightning Components used to require a namespace, but that is no longer a requirement.

Q: Should I change my development process to start using namespaces and managed packages?
A: We don’t recommend changing your development process to use namespaces and managed packages if you aren’t already using them. That said, they are an important part of sophisticated development processes, so as your organization's processes mature, you should consider them for a variety of reasons.

Q: I already have a Developer Edition I use for a package I uploaded to the AppExchange. Should I use this namespaced org to create my Lightning Components or get a new one?
A: If Lightning Components are useful for your current app, you may want to use them in your existing org. If you're creating a separate app, you might want to consider using a new namespace for it. This best practice isn't particularly specific to Lightning Components.

Visualforce and Lightning


Q: Can I make a Lightning Component that shows up in both the mobile and the desktop user interfaces?
A: You can use Lightning Components directly in Lightning Experience, the Salesforce1 Mobile app, template-based communities, and custom standalone apps. Additionally, you can include Lightning components in a Visualforce page, allowing you to use them in Salesforce Classic, Console, and Visualforce-based communities.

Q: Visualforce already has components. How are Lightning Component different and why would I want to use them?
A: Visualforce components are page-centric and most of the work is done on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile-friendly.
See the User Interface Development Considerations unit of the Lightning Experience Development module on Trailhead for an in-depth explanation of this issue.

Q: What happens to my existing Visualforce Pages?
A: They’ll continue to be supported in the current UI and Lightning Experience. See the Trailhead module on this topic.

Q: Does Lightning work with Visualforce?
A: Yep. See Add Lightning Components to Visualforce Pages in the Lightning Components Developer's Guide for details.

Q: Will Lightning Components be replacing Visualforce?
A: Nope. See the User Interface Development Considerations unit of the Lightning Experience Development module on Trailhead for an in-depth explanation of this issue.

Q: Now that Lightning Components are GA, when would it still be appropriate to use Visualforce?
A: Visualforce provides the facility for delivering template-driven web pages and email messages. In addition, developers wishing to simply utilize a basic container and maintain more control over the lifecycle of the request may choose Visualforce pages. Finally, organizations that can’t use Apex code can’t use Lightning Components, but they can use Visualforce.
See the User Interface Development Considerations unit of the Lightning Experience Development module on Trailhead for an in-depth explanation of this issue.

General Lightning Questions


Q: What is Lightning?

A: Lightning is the collection of tools and technologies behind a significant upgrade to the Salesforce platform. Lightning includes:
  • Experience: A set of modern user interfaces optimized for speed. This includes the Lightning Experience, Salesforce1 Mobile app and template-based communities.
  • Lightning Component Framework: A JavaScript framework and set of standard components that allow you to build reusable components to customize the Lightning Experience, Salesforce1 Mobile app and template-based communities and build your own standalone apps.
  • Visual Building Tools: Drag-and-drop technologies for fast and easy app building & customizations. Use the Lightning App Builder to customize the Lightning Experience and Salesforce1 Mobile app. Use the Community Builder to customize template-based communities.
  • Lightning Exchange: A section of the AppExchange where you can find 70+ partner components to jumpstart your development.
  • Lightning Design System: Style guides and modern enterprise UX best practices to build pixel perfect apps that match the look and feel of the Lightning Experience and Salesforce1 Mobile app.

Q: Is Lightning an MVC framework?
A: No, it’s a component-based framework.

Q: When will Lightning Components be GA?
A: Lightning components are now GA (generally available) across all Salesforce-supported platforms.

Q: How do I use Lightning Components in Lightning Experience?
A: See the Using Lightning Components in Lightning Experience unit in the Lightning Experience Development module on Trailhead.

Q: How do I use Lightning Components with the Salesforce1 Mobile App?
A: Create a custom Lightning tab that points to your component and include that tab in your Salesforce1 Mobile navigation.

Q: If Lightning Experience or Salesforce1 uses Lightning Components, will those Lightning Components (for example, the calendar component, input fields, etc.) be exposed as “standard components” for developers to use in the future with standard Salesforce styling?
A: We will be releasing a majority of those components incrementally with each major release.

Q: Which parts of Lightning Components are server-side and which are client-side?
A: Lightning Components can use JavaScript on the client side and Apex on the server side.

Q: What is Lightning Locker Service?
Q. Can I make one component inherit styles/CSS from a parent component, or must I always define it in the component?
A. Yes, you can inherit styles.

Salesforce Certified Administrator - Winter '18 Release Exam

Salesforce Certified Administrator - Winter '18 Release Exam

1 .What functionality is available to users when adding files in Lightning Experience?

A. Create, share, and collaborate on documents with Quip without an external file
provider
B. Access an external file provider and request secure Quip access
C. Mass upload Quip documents using the data loader
D. Create a new Quip file and add security from a downloaded file in Chatter

Ans: A

2 .What functionality enables sales representatives to manage their own sales
territories in Lightning Experience?

A. Community Territory Management
B. Advanced Territory Management
C. Enterprise Territory Management
D. Corporate Territory Management

Ans: C

3. When does an emoji icon appear in the Chatter publisher in Lightning Experience?

A. When a user creates a new Chatter group
B. When a user creates a new Chatter profile
C. When a user creates new Chatter posts and comments
D. When a user creates a new Chatter Quip file

Ans:C

4. The sales teams at Universal Containers need to easily access the Sales
Pipeline Dashboard. How can an administrator accomplish this in Lightning Experience?

A. Create a embedded dashboard and add to the Home tab
B. Create a new object and add a dashboard component
C. Create a new component for each sales user and add to their profile
D. Create a cross object dashboard component and add to the record

Ans:- A

5. Which three functions are available to a Collaborative Forecast user in Lightning Experience?
Choose 3 answers

A. Designate a Delegated Forecast Administrator
B. Adjust their own Product Family Forecast
C. Create a Locked Forecast to prevent editing
D. Access Collaborative Forecasts in Lightning Sales Console
E. See User Quota Attainment information

Ans:- B,D,E

Salesforce Certified Platform Developer I – Winter ’18 Release Exam



1) What is the correct annotation to indicate test classes that can run in parallel?

A. @isTest
B. @isTest(runParallel=true)
C. @isTest(isParallelrun=true)
D. @isTest(isParallel=true)

Ans:D

2) Which two statements are true regarding Lightning component JavaScript code validation?
Choose 2 answers

A. The validation service ensures good software design and prevent bugs.
B. Code validations are applied only to components set to API version 41.0 and later.
C. Code validations can be temporariy disabled by setting the component version to API 40.0 or earlier.
D. Code validations enforce all ESlint rules.

Ans:B,C

3) Which Content Security Policy (CSP) configuration is required to access the Streaming API and call Apex methods from within a Lightning container component?

A. CSP set to Lightning
B. CSP set to minimum
C. CSP set to custom
D. CSP set to low

Ans:D
4) In which two ways does Lightning Data Service (LDS) eliminate redundant server calls in Lightning Components?
Choose 2 answers

A. LDS identifies requests that involve the same record data and sends a single shared data request that updates all relevant components.
B. LDS can be configured as a publisher hub with simple Apex code.
C. LDS acts as a publisher hub that notifies components of data changes.
D. LDS allows each component within an app to make independent, but concurrent, calls to perform CRUD operations on the same record data.

Ans:A,C
5) In which two ways does Salesforce DX facilitate source-driven development?
Choose 2 answers

A. Salesforce DX shifts the source of truth from the org to the version control system.
B. Salesforce DX provides an efficient, end-to-end life cycle designed for waterfall development.
C. Salesforce DX allows agile, local test runs.
D. Salesforce DX provides an integrated, end-to-end life cycle designed for high-performance agile development.
Ans:A,D

6) What are two valid scenarios for automatic recompilation of Apex classes?
Choose 2 answers

A. Specific Apex classes are automatically recompiled before completing a metadata deploy.
B. All Apex classes are automatically recompiled before a package is installed.
C. All Apex classes are automatically recompiled before completing a metadata deploy.
D. All Apex classes are automatically recompiled when Apex transactions are run.

Ans:B,C

Salesforce Certified Platform App Builder – Winter ’18 Release Exam


Salesforce Certified Platform App Builder – Winter ’18 Release Exam

1. How can a App Builder add a Flow-based Customer Survey in a Customer Community?

A. Create a Login Flow for Community Users
B. Create a Visualforce page with an embedded Flow
C. Add a Flow Quick Action to the page layout
D. Add a Flow Component to a Community page

Ans:D


2. How can an App Builder implement File privacy on records in Lightning Experience?

A. Add file privacy feature on Content Deliveries setting
B. Enable private file settings from Salesforce Files setting
C. Add the file privacy on Records field to the Files page layout
D. Add the file privacy permission to a Permission Set

Ans:C

3. How can an App Builder reference a Queue in the Lightning Process Builder?

A. Build a process on Queue that finds and changes the owner
B. Update Records Action Type and a value of the Queue Name
C. Add a Lookup(Queue) field to the Case and set the Owner to the Queue
D. Use the Queue Label

Ans:C

4. In which way have Lightning Bar Chart Dashboard components been enhanced?

A. Donut Charts can have up to four measures
B. Pie Charts can have up to four measures
C. Horizontal Bar Charts can have up to four measures
D. Line Charts can have up to four measures

Ans:C

5. How can an App Builder configure a Lightning Page so that a Page component only displays for Accounts in Europe?

A. Add a component that only supports dynamic display
B. Set the component visibility by Profile and Record Type
C. Add a component to a new page layout for Eurpoean Accounts
D. Add filter conditions and logic to the component properties

Ans:D

Thursday, 17 August 2017

Salesforce Certified Administrator – Summer ’17 Release Exam

Que 1:-Which two Chatter Groups will show a seen-by count of people who viewed the post, in the Lightning Experience? Choose 2 answers
A. Restricted
B. Private
C. Unlisted
D. Public
Que 2:-How can an administrator allow users to choose different views of a dashboard in Lightning Experience?
A. Dashboard filters
B. Dashboard designer
C. Report filters
D. Report creator
Que 3:-Where are the files and related records attached when a sales user converts a lead?
A. Contact, account, person account, opportunity records
B. Contact, account, opportunity, quote records
C. Contact, account, opportunity records
D. Contact, account, person account records
Que 4:-What action can be taken in Lightning, if you receive an approval request that someone else should approve?
A. Delete the associated record
B. Change Approval Entry Criteria
C. Edit Approval Process Manager
D. Re-assign the approval request

Que 5:-Which two features best describe the new Lightning-optimized Log a Call action? Choose 2 answers

A. Autolink the Call Log to the Case
B. Autolink the Audit Log to the Case
C. Autopopulate the Case Contact
D. Autopopulate the Case Team

Salesforce Certified Platform App Builder – Summer ’17 Release Exam

Que 1. Which tool will help the consultant see if Apex or visualforce code is running an out of date API version?


A.  Health Check
B.  Optimizer
C.  Lightning Experience Migration assistant
D.  Lightning Experience Readiness check


Que 2. Which two components are supported when building Lightning pages with the Lightning App Builder? (choose 2 answers)

A. Related Records
B. Social View
C. Chatter Feed
D. Flows


Que 3.  How can users see the change history of key fields in an object record?


A. Setup audit trail
B. History related list with field tracking
C. Historical Trend Reporting
D. Reporting Snapshot

Que 4.  What is a secure method of creating a single field from two encrypted fields?

A. Disable Shield Platform Encryption, create a formula using & to concatenate, then reenable Shield Platform Encryption.
B. Create a custom formula referencing the two encrypted field using & to concatenate.
C. Create the two source fields, use a formula with & to concatenate, populate the data into the two source fields, then encrypt the source fields.
D. Disable encryption on the two source fields, create a formula using & to concatenate, then reenable encryption on the two source fields


Que 5. What happens to an automated notification email generated by a process if another process subsequently modifies the same record?


A.  The email is queued and may send depending on the secondary process.
B.  The email is sent
C.  The email is sent twice

D.  The email is suppressed

Salesforce Certified Platform Developer I – Summer ’17 Release Exam

Que 1: How do the CSS enhancement to the Lightning Design System improve the developer experience?
A. Class names are abbreviated to reduce code length.
B. Class names are available in upper and lower case.
C. Uppercase is used to distinguish from custom class names.
D. Single dashes are used in class names to enable commenting.

Que 2: How can a validity check be performed on a component?
A. cmp.get() == true
B. cmp.get(“v.isValid”) == true
C. cmp.get() != null
D. cmp.get(“v.isValid”) != null

Que 3: What are the two considerations when overriding standard actions? Choose 2 answers
A. Overriding standard actions with a Lightning component applies only to Lightning Experience and Salesforce 1, but not to Salesforce Classic.
B. Overriding standard actions with a Visualforce page applies only to Salesforce Classic and Lightning Experience, but not to Salesforce1.
C. Overriding standard actions with a Visualforce page applies to Salesforce Classic, Lightning Experience, and Salesforce1.
D. Overriding standard actions with a Lightning component applies to Lightning Experience, Salesforce1, and Salesforce Classic.

Que 4: Which standard actions can be overridden with Lightning Components?
A. List, Edit, New, Delete
B. Tab, View, Edit, New
C. View, Edit, New, Delete
D. List, View, Edit, New
 Que 5: What is a consideration for Locker Service Enablement?
A. Locker Service is enabled for custom Lightning Components implementing the interface force:enforceLockerService
B. Locker Service is enabled for all custom lightning components with API version 40.0 or greater.
C. Locker Service is disabled for custom Lightning Components implementing the interface force:ignoreLockerService

D. Locker Service is disabled for all custom Lightning Components, regardless of the API version.

Wednesday, 19 July 2017

Salesforce Certified Administrator– Spring ’17 Release Exam

1.Universal Containers uses web-to-lead.
How can an Administrator help sales representatives focus on legitimate prospects rather than unqualified leads?

A. Use the web-to-lead encryption feature.
B. Use a Lead Source field on Web-to-Lead forms
C. Use the captcha widget to filter out spam.
D. Use rich text area (RTA) fields on Web-to-Lead forms.

Answer: C

2. Which two choices are available with email attachment settings?
Choose 2 answers?

A. Always send files as content delivery links.
B. Always send files as attachments.
C. Always send files as attachments, up to 5MB.
D. Always send files as attachments, up to 3MB.

Answer: A, D

3.What feature describes the capabilities of email-to-case record assignment to queues?

A. Assigning cases to queues overrides the default case owner.
B. Assigning cases to queues is supported only for Outlook routing addresses.
C. Assigning cases to queues is supported in Lightning only.
D. Assigning cases to queues uses the default case owner.

Answer: A


4.Which two Chatter Stream functionalities are available in Lightning Experience?
Choose 2 answers?

A. Create up to 25 entities per Chatter Stream.
B. Create up to 25 Chatter Streams in Lightning.
C. Create up to 5 Chatter Streams in Lightning.
D. Create up to 5 Chatter Streams in Lightning or Classic.

Answer: A, C


5.Which two features best describe the enhanced Contact search functionality?
Choose 2 answers?
A. Enter the Account name, and the first and last names of all related Contacts are returned.
B. Enter the first name and the Account name, and Contacts that match the search terms are returned.
C. Enter address, the Account name, and Contacts that match the search terms are returned.
D. Enter the last name and the Account name, and Contacts that match the search terms are returned.


Answer: B, D