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.
A DevOps team manages container images in Google Cloud Artifact Registry for microservices deployed across multiple Google Kubernetes Engine (GKE) clusters in us-central1 and us-east4. Frequent CI/CD pipeline builds have caused storage costs to escalate significantly.
The team must implement an automated repository configuration that satisfies the following requirements:
release- at all times, regardless of age.stable indefinitely.Which configuration should the DevOps team implement?
Artifact Registry is Google Cloud's fully managed universal package manager and container registry. It allows repositories to be created in single regions (such as us-central1) or multi-regions (such as us, europe, or asia). Artifact Registry includes native Cleanup Policies (lifecycle rules) that evaluate container image tags, version counts, and artifact ages without requiring custom scripts or external schedulers.
us multi-region automatically stores and replicates artifacts across multiple data centers in the United States, providing low-latency pulls to GKE clusters in us-central1 and us-east4 without needing custom replication syncs.mostRecentVersions with keepCount: 5 and tagPrefixes: ["release-"] guarantees that the 5 latest versions matching that tag prefix are preserved even if they would otherwise match deletion criteria.tagPrefixes: ["stable"] ensures that any version bearing the stable tag is never removed, as KEEP rules always take precedence over DELETE rules in Artifact Registry policy evaluation.tagState: "UNTAGGED" with olderThan: "14d" automatically cleans up intermediate and dangling layers after two weeks.gcloud, Terraform, or the Cloud Console using JSON/YAML policy definitions.This solution relies entirely on native, declarative Google Cloud Artifact Registry features, eliminating custom script maintenance while ensuring strict governance over image lifecycle costs and multi-region availability.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.