Courseiva
User InterfacehardMultiple ChoiceObjective-mapped

SALESFORCE-PD1 User Interface Practice Question

A developer is building a Lightning Web Component that includes a custom wire adapter to fetch custom metadata. The wire adapter needs to react whenever a tracked property changes value. How should the developer wire the property?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Prefix the parameter passed to the wire adapter with a dollar sign ($) in the JavaScript file.

Wire adapters automatically provision data when reactive parameters (prefixed with $) change.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Prefix the parameter passed to the wire adapter with a dollar sign ($) in the JavaScript file.

    Why this is correct

    Correct because the $ prefix denotes a reactive property that triggers reprovisioning when changed.

  • Wrap the property in a standard JavaScript Proxy object.

    Why it's wrong here

    Incorrect because LWC handles reactivity internally without manual Proxy wrapping for wire parameters.

  • Decorate the parameter with @track and call this.updateWire() explicitly.

    Why it's wrong here

    Incorrect because @track does not drive wire adapters directly; the $ prefix does.

  • Invoke the refreshApex() method inside the component constructor.

    Why it's wrong here

    Incorrect because refreshApex refreshes data provisioned by an Apex wire adapter, not reactive parameter binding syntax.

About these practice questions

This SALESFORCE-PD1 question is part of Courseiva's 493-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Salesforce exam blueprint

This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SALESFORCE-PD1 exam.