Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your enterprise manages three separate Google Cloud environments (development, staging, and production) deployed across distinct GCP projects. The security team requires uniform Sensitive Data Protection (Cloud DLP) inspection rules—such as scanning for national identifiers, credentials, and sensitive customer data—across storage repositories in all environments. Currently, individual teams define inline inspection configurations inside their local continuous integration and continuous deployment (CI/CD) pipelines, which has caused severe configuration drift and high operational maintenance.
You need to implement a declarative Infrastructure as Code (IaC) configuration architecture that enforces standardized inspection policies across all environments, isolates deployment states, and allows policy updates without modifying downstream jobs. What should you do?
An InspectTemplate in Google Cloud's Sensitive Data Protection (Cloud DLP) service is a reusable configuration object that encapsulates inspection parameters, including built-in infoTypes, custom regex detectors, and likelihood thresholds. When created at the organization level (organizations/{org_id}/inspectTemplates), the template acts as a single, canonical policy definition that is accessible across all projects in the resource hierarchy.
InspectTemplate ensures that development, staging, and production environments execute the exact same detection logic.Centralized declarative templates combined with isolated state storage represent the Google Cloud recommended architecture for multi-environment governance. It ensures strict policy enforcement, prevents state locks or corruption across environments, and eliminates duplicate configuration maintenance.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.