Community Q&A

PCDOE — frequently asked questions

Community-vetted answers to 26 common questions about this exam, each traced back to a specific practice question.

Questions from real practice questions

Each Q&A comes from a specific question — follow the link for the full analysis

Collecting Custom Logs from Unmodifiable GKE Pods

Why not use a sidecar container for logging?

Sidecars add complexity and require shared volumes. Fluentd DaemonSets are the native, scalable way to collect custom logs in GKE without touching the app container.

Can the default Stackdriver agent read custom files?

No, the default agent only captures stdout/stderr and predefined system logs. You must customize the Fluentd configuration to tail new file paths.

Granting Log Export Permissions in Google Cloud

Why isn't a custom role with logging.sinks.create sufficient?

While logging.sinks.create is needed, the configWriter role includes it plus other necessary permissions for managing sinks and metrics, making it the complete solution.

Can I use logging.viewer role to export logs?

No, logging.viewer only allows reading logs. Exporting requires creating sinks, which needs configWriter permissions.

Optimizing SLO Balance Between Reliability and Velocity

Why not tighten the SLO if the service is doing well?

Tightening the SLO (Option A) increases the cost of reliability without clear business benefit. The SRE framework suggests using stability to enable speed elsewhere.

What does the SLO Decision Matrix recommend for stable services?

It recommends treating reliability as a solved problem, allowing teams to increase release frequency or reduce reliability efforts to help other struggling services.

Cloud Run Traffic Splitting and Tagged Revisions for Testing

Why not use traffic splitting for testing?

Traffic splitting sends real user requests to the new version. If you need to test extensively without impacting users, you must isolate the new version completely using tags.

Is Green/Blue better than Tags?

Green/Blue involves managing two separate environments/services. Cloud Run Tags allow you to test different versions within the same service, which is more efficient for staged rollouts.

Configuring Cloud Logging for API IP Addresses in GCP

Why is VPC Flow Logs insufficient for logging each IP address?

VPC Flow Logs use a primary sampling rate that varies based on load, meaning some packets are dropped. This sampling prevents guaranteed logging of every single IP address.

Does enabling firewall logging impact performance significantly?

While firewall logging adds minimal overhead, it is the only native method listed that guarantees logging of every matching packet without requiring agents or complex mirroring setups.

Automating Integration Tests with Cloud Build and GitHub

Why is option C wrong if it uses Cloud Build?

Option C triggers tests after the merge. The requirement is to test BEFORE changes are accepted, meaning the gate must happen at the PR stage, not post-merge.

Do I need a specific folder path in Cloud Build?

While the option mentions a specific folder, the key differentiator is the trigger mechanism (PR vs Merge). Cloud Build can be configured to watch specific directories within a repo for efficiency.

Minimizing GKE Logging Costs with SYSTEM Mode

Why not use an exclusion filter instead of changing the logging mode?

Exclusion filters run after logs are ingested into Cloud Logging, so you still pay for ingestion and analysis. Changing the mode to SYSTEM prevents the logs from being sent at all.

Does --logging=SYSTEM affect developer ability to view logs?

No, developers can still use kubectl logs to view application logs directly from the GKE nodes, as these logs remain on the local filesystem even if not exported to Cloud Logging.

Cloud Deploy CD Pipeline with Manual QA

Why not use Canary deployment for manual QA?

Canary deployments shift a small percentage of traffic automatically. If QA must verify BEFORE any production traffic is processed, you cannot start a canary. You must deploy to a non-production stage first for manual checks.

What does 'standard deployment strategy' mean in Cloud Deploy?

It refers to deploying the new version to replace the old one (like a rolling update or blue/green) in the target environment, rather than gradually shifting traffic percentages as in a canary.

GKE Cluster and Namespace Design for Data Isolation

Why not create a separate cluster for each application?

Creating a cluster per application leads to exponential management overhead and high costs, violating the requirement to minimize operational burden.

How do namespaces protect data in GKE?

Namespaces provide logical isolation; when combined with RBAC and Network Policies, they prevent unauthorized cross-application access within the same cluster.

Configuring Cloud Build Triggers for Semantic Versioning

Why not use .* tag pattern?

Using .* triggers on all tags, including development ones, which violates the 'minimize overhead' requirement and risks deploying untested code.

Can I use branch patterns for releases?

No, the scenario specifies releases are tagged. Using branch patterns would ignore the tag-based deployment strategy required.

Centralized OpenTelemetry Monitoring with BindPlane

Why not use Managed Service for Prometheus?

Managed Service for Prometheus focuses on Prometheus-native metrics. The question specifies OpenTelemetry, and BindPlane is the dedicated tool for managing OTel collector fleets and routing.

What is the role of the scoping project here?

The scoping project allows you to manage permissions and configurations centrally for all member projects, simplifying the administrative overhead of cross-project monitoring.

Skaffold Multiple Profiles for GKE Replica Counts

Why not use Kustomize for replica counts?

Kustomize requires defining patches and managing additional files. For simple scalar overrides like replicas, raw YAML is more direct and reduces configuration overhead.

Can I use a single profile for both envs?

No, a single profile applies one set of configurations. Multiple profiles allow distinct settings (e.g., 2 vs 5 replicas) to be activated per environment.

Binary Authorization Attestor Implementation

Why is Option D insufficient for Binary Authorization?

Option D configures the policy but does not create the attestor or sign the images. Without signatures, no image passes the policy check.

Does Binary Authorization require manual intervention?

No, when integrated with Cloud Build, the signing process can be automated via the pipeline, minimizing manual effort as requested.