Salesforce Platform Developer I (legacy) — Question 124
Which three steps allow a custom SVG to be included in a Lightning web component? (Choose three.)
Answer options
- A. Upload the SVG as a static resource.
- B. Reference the getter in the HTML template.
- C. Import the SVG as a content asset file.
- D. Import the static resource and provide a getter for it in JavaScript.
- E. Reference the import in the HTML template.
Correct answer: A, B, D
Explanation
The correct steps include uploading the SVG as a static resource (A), referencing the getter in the HTML template (B), and importing the static resource with a getter in JavaScript (D). Options C and E are incorrect because importing the SVG as a content asset file is not a recognized method for including SVGs, and referencing the import in the HTML template does not directly apply to the process.