AP-222 practice question 5 of 10

A customer wants to view multi- level data related to an Account, such as all the inspections performed and the regulatory violations found. They want to see this on the Account page layout. What solution should the technical consultant use?

Full set: 112 questions
Answer options
A: Use a Lightning Web component
B: Use an Aura Lightning component
C: Use an AppExchange component
D: Use a Hierarchical View component Correct answer
Correct Answer:
D. Use a Hierarchical View component
Explanation

The Hierarchical View is a standard Lightning component provided with Public Sector Solutions specifically designed for this requirement. It allows users to see a record and its related child and grandchild records in a single, collapsible tree-grid view on a Lightning page. This component is the most direct and configuration-based solution to display multi-level data, such as an Account with its related inspections and their subsequent violations, without needing custom development.

Why Incorrect

A. A Lightning Web Component is a custom-coded solution. The standard Hierarchical View component should be used first as it meets the requirement out-of-the-box.
B. An Aura component is an older custom development framework. A standard component or a newer LWC would be preferred over creating a custom Aura component.
C. An AppExchange component is a third-party solution. A standard, included component like Hierarchical View should be the primary choice before seeking external packages.

References

1. Salesforce Help, Public Sector Solutions Documentation, "View Records in a Hierarchy". The documentation states, "Use the Hierarchical View component to see a record and its related child records in a hierarchical tree grid on a Lightning page."

2. Salesforce Help, Public Sector Solutions Documentation, "Add the Hierarchical View Component to a Lightning Page". This guide provides the steps for an administrator to configure this specific component to display multi-level data relationships, matching the scenario perfectly.

Scroll to Top