โ† All HAC Flashcard Decks

DevOps & Deployment Flashcards

7 cards from real HAC practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 DevOps & Deployment flashcards as text
  1. A HubSpot administrator wants to automate deployments using CI/CD pipelines. Which authentication method is recommended for the HubSpot CLI in automated environments?

    Answer: Personal access key stored as a CI environment variable

    Personal access keys can be injected as environment variables (HUBSPOT_PORTAL_ID and HUBSPOT_PERSONAL_ACCESS_KEY) for headless CLI authentication in CI/CD.

  2. Which HubSpot CLI command downloads existing portal assets to your local machine for version control?

    Answer: hs fetch

    `hs fetch` retrieves files from a HubSpot portal to the local filesystem, enabling you to track them in Git.

  3. What is the purpose of the `--initial` flag when running `hs fetch`?

    Answer: It fetches all files from the portal, including those not yet tracked locally

    The `--initial` flag on `hs fetch` pulls down all assets from the portal for an initial local setup of the project.

  4. In a GitHub Actions workflow for HubSpot deployments, which environment variable does the CLI check for the portal ID when no config file is present?

    Answer: HUBSPOT_PORTAL_ID

    The HubSpot CLI reads `HUBSPOT_PORTAL_ID` (along with `HUBSPOT_PERSONAL_ACCESS_KEY`) as environment-variable-based auth for headless runs.

  5. A team wants multiple developers to collaborate on HubSpot CMS theme files. What is the best practice for managing this?

    Answer: Use a Git repository with each developer working locally via HubSpot CLI, deploying to a shared sandbox

    Version-controlling theme files in Git and using individual developer sandboxes with CLI deployment is the standard collaborative workflow for HubSpot CMS.

  6. When deploying a HubSpot project with `hs project deploy`, what happens if the build step encounters an error?

    Answer: The deployment is aborted and the previous version remains live

    A failed build prevents deployment entirely, so the live portal continues running the last successfully deployed version.

  7. Which HubSpot CLI command lists all available secrets stored for a portal?

    Answer: hs secrets list

    `hs secrets list` displays the names (not values) of all secrets stored for the connected portal.

How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy