nerdexam
HashiCorp

VAULT-ASSOCIATE-002 · Question #5

Your DevOps team would like to provision VMs in GCP via a CICD pipeline. They would like to integrate Vault to protect the credentials used by the tool. Which secrets engine would you recommend?

The correct answer is A. Google Cloud Secrets Engine. For provisioning GCP resources within a CI/CD pipeline, the Google Cloud Secrets Engine is the most appropriate choice as it dynamically generates short-lived GCP service account keys or OAuth tokens, enhancing security.

Submitted by yuki_2020· Apr 18, 2026Integrate Vault

Question

Your DevOps team would like to provision VMs in GCP via a CICD pipeline. They would like to integrate Vault to protect the credentials used by the tool. Which secrets engine would you recommend?

Options

  • AGoogle Cloud Secrets Engine
  • BIdentity secrets engine
  • CKey/Value secrets engine version 2
  • DSSH secrets engine

How the community answered

(51 responses)
  • A
    86% (44)
  • B
    2% (1)
  • C
    4% (2)
  • D
    8% (4)

Why each option

For provisioning GCP resources within a CI/CD pipeline, the Google Cloud Secrets Engine is the most appropriate choice as it dynamically generates short-lived GCP service account keys or OAuth tokens, enhancing security.

AGoogle Cloud Secrets EngineCorrect

The Google Cloud Secrets Engine is purpose-built to integrate with Google Cloud Platform, allowing Vault to dynamically generate temporary service account keys or OAuth 2.0 tokens with precisely defined scopes and roles. This dynamic credential generation is ideal for CI/CD pipelines, as it eliminates the need to hardcode long-lived GCP credentials, significantly improving security by reducing the window of exposure for compromised access keys.

BIdentity secrets engine

The Identity secrets engine is for managing Vault's internal identity system and aliases, not for generating credentials for external cloud providers like GCP.

CKey/Value secrets engine version 2

While the Key/Value secrets engine (v2) can store static GCP credentials, it does not offer the dynamic, short-lived, and auto-rotation benefits that the dedicated Google Cloud Secrets Engine provides, which is crucial for CI/CD security.

DSSH secrets engine

The SSH secrets engine is used for generating one-time SSH credentials or signing SSH keys, which is unrelated to provisioning VMs in GCP.

Concept tested: Vault secrets engines for cloud integration

Source: https://www.vaultproject.io/docs/secrets/gcp

Topics

#Google Cloud Secrets Engine#Dynamic Secrets#Cloud Credentials#CICD Integration

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice