← All PL 400 Flashcard Decks

PCF Controls (Power Apps Component Framework) Flashcards

7 cards from real PL 400 practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 PCF Controls (Power Apps Component Framework) flashcards as text
  1. What is the primary purpose of the Power Apps Component Framework (PCF)?

    Answer: To create custom, reusable UI controls for canvas and model-driven apps

    PCF enables pro developers to build custom, reusable UI controls that extend the default controls available in Power Apps canvas and model-driven apps.

  2. Which Power Apps CLI command is used to initialize a new PCF component project?

    Answer: pac pcf create

    The `pac pcf create` command scaffolds a new PCF project with the required folder structure, manifest, and TypeScript stub files.

  3. Which file serves as the contract between a PCF control and its host application by declaring properties and resources?

    Answer: ControlManifest.Input.xml

    ControlManifest.Input.xml defines the PCF control's properties, resources, and metadata that the host application uses to bind data and load the control.

  4. Which TypeScript interface must every PCF control class implement?

    Answer: ComponentFramework.StandardControl

    All PCF controls must implement `ComponentFramework.StandardControl`, which mandates the required lifecycle methods: init, updateView, getOutputs, and destroy.

  5. What is the role of the `init` method in a PCF control's lifecycle?

    Answer: To create DOM elements, set initial state, and register event listeners the first time the control loads

    The `init` method is invoked exactly once during a control's lifetime and is used to build the initial DOM structure, configure event listeners, and perform any one-time setup.

  6. What triggers the PCF framework to call a control's `updateView` method?

    Answer: Any change to an input property value or the host environment context

    `updateView` is invoked by the framework whenever an input property value or environment attribute changes, signaling the control to re-render its UI with the latest data.

  7. Which tool allows a PCF developer to test a control locally in a browser without deploying it to a Dataverse environment?

    Answer: The PCF test harness launched by running `npm start`

    Running `npm start` in a PCF project launches a local test harness — a lightweight browser-based environment that lets developers iterate and debug controls in isolation.