Question 290
A PostgreSQL-compatible transactional workload needs a high-performance managed platform and advanced analytics integration. Which Google Cloud database should be evaluated?
- Use Cloud SQL point-in-time recovery
- Use AlloyDB for PostgreSQL
- Use Cloud SQL
- Use BigQuery
Explanation
Correct Answer
B:AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; its effect directly addresses deploying managed PostgreSQL-compatible high performance.
Incorrect Answers
A:Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time; that mechanism handles recovering database state at a chosen time; it does not configure deploying managed PostgreSQL-compatible high performance.
C:Cloud SQL provides managed MySQL, PostgreSQL and SQL Server database instances; it is appropriate for running a managed relational database engine; here, the deciding requirement is deploying managed PostgreSQL-compatible high performance.
D:BigQuery is a managed analytical data warehouse designed for scalable SQL workloads; this governs querying large analytical datasets, whereas the stated objective is deploying managed PostgreSQL-compatible high performance.
Question 291
An engineer wants to verify that an expected API is enabled before retrying a release. Which check is most direct?
- Set gcloud's active project
- Authenticate with gcloud auth login
- List enabled project services
- Use gcloud services enable
Explanation
Correct Answer
C:The requested administrative outcome is inspecting a project's enabled API inventory; the Service Usage listing and its gcloud services list interface expose enabled and available service states.
Incorrect Answers
A:The active gcloud core/project property determines the default project for commands that honor it; the scenario specifies inspecting a project's enabled API inventory, which differs from setting the default gcloud project context.
B:Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; it is appropriate for establishing user credentials for the Cloud SDK; here, the deciding requirement is inspecting a project's enabled API inventory.
D:This alternative focuses on automating project service activation; the gcloud services enable command activates named Service Usage APIs in the selected project; the stem instead asks for inspecting a project's enabled API inventory.
Question 292
CPU saturation requires more vCPUs on a stateful VM, and the application permits a planned restart. What resource setting should be modified?
- Use gcloud compute instances describe
- Restore a new disk from a snapshot
- Resize a persistent disk
- Change a VM machine type
- Create a custom image from a disk
Explanation
Correct Answer
D:VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; that matches the requirement for resizing VM compute capacity.
Incorrect Answers
A:The instances describe operation retrieves configuration and status details for a specified VM in its zone; it is appropriate for retrieving one instance's detailed configuration; here, the deciding requirement is resizing VM compute capacity.
B:A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; this is a distinct control for provisioning a restored disk from backup, rather than resizing VM compute capacity.
C:Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; it concerns expanding an existing persistent disk, and its normal effect does not provide resizing VM compute capacity.
E:The alternative would address preparing reusable VM boot images; Custom Compute Engine images provide reusable disk source content for new boot disks; the question instead requires resizing VM compute capacity.
Question 293
An application writes huge volumes of sparse, keyed time-series records and retrieves data by row key. Which product fits?
- Use Bigtable
- Use AlloyDB for PostgreSQL
- Use Cloud SQL automated backups
- Use Firestore
Explanation
Correct Answer
A:Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; this is the capability needed for storing massive low-latency wide-column datasets.
Incorrect Answers
B:AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; that applies to migrating eligible PostgreSQL workloads to AlloyDB; the requested task is storing massive low-latency wide-column datasets.
C:Cloud SQL automated backups create managed database recovery points under configured retention settings; this is a distinct control for creating scheduled managed database backups, rather than storing massive low-latency wide-column datasets.
D:Firestore stores documents in collections and supports indexed queries and application client integrations; this is a distinct control for using a managed document-oriented database, rather than storing massive low-latency wide-column datasets.
Question 294
A controller needs an immediate chart showing usage cost grouped by project and service over a date range. Which existing view is most direct?
- Use billing cost table reports
- Apply labels for cost attribution
- Configure billing export to BigQuery
- Use billing account cost reports
Explanation
Correct Answer
D:Cloud Billing Reports offers cost visualization and filtering without first creating a custom data warehouse; this is relevant because the outcome sought is analyzing spend in the Billing Reports interface.
Incorrect Answers
A:The Cost table provides tabular cost records and invoice-oriented analysis for supported billing accounts; it is appropriate for reconciling invoiced charges and credits; here, the deciding requirement is analyzing spend in the Billing Reports interface.
B:Supported labels can be surfaced in billing exports and filters to allocate eligible costs; this is a distinct control for categorizing resource charges using labels, rather than analyzing spend in the Billing Reports interface.
C:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; this governs making Cloud Billing data queryable in BigQuery, whereas the stated objective is analyzing spend in the Billing Reports interface.
Question 295
An approved external project team needs access that can be revoked centrally, instead of granting each collaborator separately. What membership design helps?
- Grant roles to a Google group
- Use Workload Identity Federation
- Use resource tags in IAM Conditions
- Use Cloud Identity groups for external collaborators
Explanation
Correct Answer
D:The requirement is grouping authorized collaborators for IAM assignment; Supported Google groups can aggregate external collaborators and be bound to appropriate resource roles.
Incorrect Answers
A:Google groups can be IAM principals, with access evaluated through applicable group membership; the decision here is about grouping authorized collaborators for IAM assignment, not managing many users' access through group membership.
B:Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; that applies to accessing cloud APIs from external CI without key files; the requested task is grouping authorized collaborators for IAM assignment.
C:IAM Conditions can evaluate supported resource-manager tag relationships in compatible access decisions; this governs evaluating policy against resource tag values, whereas the stated objective is grouping authorized collaborators for IAM assignment.
Question 296
A Kubernetes workload needs more identical Pods now, without changing the cluster's worker node count directly. What action fits?
- Scale a Kubernetes Deployment replica count
- Use kubectl rollout status
- Use kubectl get pods
- Configure Vertical Pod Autoscaler
Explanation
Correct Answer
A:The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; for the stated workload, the practical result is changing Deployment-managed Pod replicas.
Incorrect Answers
B:Kubectl rollout status watches a supported resource's rollout progress and reports status; that supports checking whether a rollout completes; the problem to solve concerns changing Deployment-managed Pod replicas.
C:The alternative would address inspecting Pods in a namespace; Kubectl get pods lists Pod resources and their summarized readiness and lifecycle information; the question instead requires changing Deployment-managed Pod replicas.
D:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; it is not the focused action for changing Deployment-managed Pod replicas; its primary use is optimizing workload resource requests vertically.
Question 297
An auditor requires Secure Boot and integrity monitoring on an eligible Compute Engine instance. Which capability should be assessed?
- Use committed use discounts for compute
- Use an instance schedule
- Use VM startup scripts
- Use Shielded VM
Explanation
Correct Answer
D:Shielded VM provides capabilities such as Secure Boot, virtual TPM and integrity monitoring; its effect directly addresses enforcing supported VM boot protections.
Incorrect Answers
A:Committed use discounts exchange qualifying resource or spend commitments for discounted eligible usage; that solves problems involving committing eligible baseline compute usage, rather than the enforcing supported VM boot protections requirement.
B:Instance schedules can automate starts and stops for eligible Compute Engine VM instances; it is not the focused action for enforcing supported VM boot protections; its primary use is scheduling regular VM start and stop behavior.
C:Compute Engine startup scripts execute configured initialization commands in supported guest environments; it is appropriate for initializing a VM from metadata scripts; here, the deciding requirement is enforcing supported VM boot protections.
Question 298
An application log line must be correlated with a trace identifier and timestamp. Which Cloud Logging interface can query it?
- Use a Logs Router sink
- Use an organization log sink
- Use Logs Explorer
- Use Cloud Logging setup
Explanation
Correct Answer
C:Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; it is the direct control for querying log entries with structured filters.
Incorrect Answers
A:Log sinks use inclusion filters and destination permissions to route supported log entries from a configured scope; its operational role is exporting filtered log streams to a destination; the needed capability is querying log entries with structured filters.
B:Aggregated sinks at suitable resource ancestors can route descendant logs subject to sink configuration and permissions; its operational role is aggregating organization-wide log exports; the needed capability is querying log entries with structured filters.
D:Cloud Logging ingests and organizes supported resource and application logs into log buckets and views; it concerns centralizing and querying operational logs, and its normal effect does not provide querying log entries with structured filters.
Question 299
A project owner keeps selecting disallowed configurations; leadership wants centrally governed limits rather than an advisory document. What should be configured?
- Apply an organization policy constraint
- Use labels on supported resources
- Inspect the effective organization policy
- Create a folder in the resource hierarchy
Explanation
Correct Answer
A:The requested administrative outcome is preventing disallowed resource settings through policy; Organization Policy Service evaluates supported constraints along the resource hierarchy independently of ordinary IAM grants.
Incorrect Answers
B:For tagging resource metadata for cost allocation, this could be relevant; Labels are user-defined key-value metadata for organization and billing analysis and are not hierarchical IAM boundaries; the actual request concerns preventing disallowed resource settings through policy.
C:Effective organization policies reflect applicable ancestors and overrides; an IAM role cannot bypass a conflicting constraint; its purpose differs: diagnosing the policy state inherited by a child project is separate from preventing disallowed resource settings through policy.
D:Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; it is relevant when grouping related projects under inherited governance, not when the primary need is preventing disallowed resource settings through policy.
Question 300
Operations wants to aggregate error events through SQL directly in Cloud Logging's analytics experience. Which tool applies?
- Create a Logs Router sink to BigQuery
- Create a log sink to Cloud Storage
- Use log-based counter metric
- Use Log Analytics
Explanation
Correct Answer
D:Log Analytics enables supported SQL analysis over eligible Cloud Logging buckets; that matches the requirement for running analytical queries on stored logs.
Incorrect Answers
A:Logs Router sinks select entries using filters and export to authorized supported destinations; that supports routing selected logs into a BigQuery dataset; the problem to solve concerns running analytical queries on stored logs.
B:Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; that supports archiving matching logs to object storage; the problem to solve concerns running analytical queries on stored logs.
C:Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; its operational role is turning filtered log patterns into metrics; the needed capability is running analytical queries on stored logs.