Question 530
A Kubernetes application's CPU and memory requests are consistently wrong and should be recommended or adjusted. Which autoscaler applies?
- Use kubectl logs
- Use Kubernetes Service
- Configure Vertical Pod Autoscaler
- Scale a Kubernetes Deployment replica count
Explanation
Correct Answer
C:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; Applied in this case, it delivers tuning container resource requests.
Incorrect Answers
A:Kubectl logs retrieves supported stdout and stderr logs from Pod containers, including options for prior instances; the supported outcome is examining Pod container standard logs, while the requested result is tuning container resource requests.
B:For routing traffic to an application Pod set, this could be relevant; Kubernetes Services select endpoints and provide stable discovery or networking for matching Pods; the actual request concerns tuning container resource requests.
D:The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; it is appropriate for adjusting the workload replica target; here, the deciding requirement is tuning container resource requests.
Question 531
An application process hangs while its VM stays powered on, and a fleet should self-repair. What MIG feature targets this failure?
- Create an instance template
- Choose a managed instance group
- Use a regional managed instance group
- Configure MIG autohealing
Explanation
Correct Answer
D:What matters is using health checks for instance repair; Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances.
Incorrect Answers
A:Instance templates hold immutable machine configuration for managed instance groups and other compatible VM launches; that solves problems involving defining repeatable VM launch settings, rather than the using health checks for instance repair requirement.
B:The alternative would address operating a replicated VM group; Managed instance groups create and maintain VM replicas using instance templates and optional autoscaling and autohealing; the question instead requires using health checks for instance repair.
C:Regional managed instance groups distribute members across multiple zones in a region for availability; it would help with operating a multi-zone VM instance group, but it does not directly implement using health checks for instance repair.
Question 532
A developer wants to deploy a lightweight function triggered through Eventarc rather than build and administer a VM. What offering fits?
- Choose GKE Autopilot
- Choose Cloud Run functions
- Use Cloud Run jobs
- Choose GKE Standard
Explanation
Correct Answer
B:Cloud Run functions supports managed function deployments with event integration and request-based execution; that behavior is precisely what executing short event-oriented application code calls for.
Incorrect Answers
A:GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces; it is appropriate for deploying Kubernetes workloads without self-managed node pools; here, the deciding requirement is executing short event-oriented application code.
C:Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; its purpose differs: running task-oriented serverless containers is separate from executing short event-oriented application code.
D:GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; it is relevant when operating configurable Kubernetes node pools, not when the primary need is executing short event-oriented application code.
Question 533
A data corruption occurred between scheduled full backups; administrators need a finer recovery point. Which Cloud SQL feature applies?
- Use Cloud SQL read replicas
- Use Firestore
- Use a Cloud SQL private IP
- Use Bigtable
- Use Cloud SQL point-in-time recovery
Explanation
Correct Answer
E:Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time; Applied in this case, it delivers restoring a relational database using transaction logs.
Incorrect Answers
A:Cloud SQL read replicas provide asynchronously replicated read capacity and do not directly handle primary writes; it is relevant when scaling SQL read workloads with replicas, not when the primary need is restoring a relational database using transaction logs.
B:Firestore stores documents in collections and supports indexed queries and application client integrations; that mechanism handles storing application documents without relational tables; it does not configure restoring a relational database using transaction logs.
C:Cloud SQL private IP enables private connectivity through the configured network integration; this is a distinct control for keeping relational database access on private networking, rather than restoring a relational database using transaction logs.
D:Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; its operational role is storing massive low-latency wide-column datasets; the needed capability is restoring a relational database using transaction logs.
Question 534
Database latency has exceeded a defined service target for several minutes, and responders need automatic detection. Which product control fits?
- Use uptime checks
- Use Cloud Profiler
- Use Cloud Monitoring alert policy
- Use Personalized Service Health
Explanation
Correct Answer
C:Monitoring alerting policies evaluate metrics against configured conditions and can open incidents with notifications; it is the direct control for evaluating telemetry conditions and opening alerts.
Incorrect Answers
A:Uptime checks periodically attempt supported protocol requests from distributed checkers and record availability results; it is not the focused action for evaluating telemetry conditions and opening alerts; its primary use is checking externally observed application availability.
B:Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths; it is not the focused action for evaluating telemetry conditions and opening alerts; its primary use is finding function-level CPU hot spots.
D:Personalized Service Health surfaces Google Cloud incidents relevant to selected environments and products; its operational role is assessing product incidents affecting an organization; the needed capability is evaluating telemetry conditions and opening alerts.
Question 535
A new project already exists and its engineer has the required IAM rights. Billable resources cannot be provisioned because no payer is linked, and the required product API is disabled. Choose TWO fixes.
- Create a billing budget
- Enable a service API for the project
- Use billing account cost reports
- Link a project to a billing account
- Create a Cloud Billing account
Explanation
Correct Answers
B:Service Usage controls API enablement for each project; authorization and billing are separate requirements; within the multi-part workflow of linking an active billing payer and enabling a required API, this provides activating the needed project API.
D:A project must be linked to an active billing account to consume many chargeable services; within the multi-part workflow of linking an active billing payer and enabling a required API, this provides associating the project with an active payer.
Incorrect Answers
A:Cloud Billing budgets evaluate costs against thresholds and issue alerts but do not directly cap or halt usage, which serves notifying owners of spending thresholds instead of linking an active billing payer and enabling a required API.
C:Cloud Billing Reports offers cost visualization and filtering without first creating a custom data warehouse; the question is specifically about linking an active billing payer and enabling a required API, rather than analyzing spend in the Billing Reports interface.
E:Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; its focus is establishing a billing payer, rather than linking an active billing payer and enabling a required API.
Question 536
A project manager needs monthly cost alerts at multiple spending percentages. Which billing feature is appropriate?
- Create a Cloud Billing account
- Create a billing budget
- Configure billing export to BigQuery
- Use billing account cost reports
Explanation
Correct Answer
B:Cloud Billing budgets evaluate costs against thresholds and issue alerts but do not directly cap or halt usage; that matches the requirement for tracking spend against configurable budget thresholds.
Incorrect Answers
A:Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; it concerns managing cloud payment responsibility, and its normal effect does not provide tracking spend against configurable budget thresholds.
C:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; it is appropriate for exporting billing records for warehouse analysis; here, the deciding requirement is tracking spend against configurable budget thresholds.
D:Cloud Billing Reports offers cost visualization and filtering without first creating a custom data warehouse; that solves problems involving analyzing spend in the Billing Reports interface, rather than the tracking spend against configurable budget thresholds requirement.
Question 537
Investigators need a trail showing who changed an IAM policy or created a cloud resource. Which audit log category fits?
- Create a log sink to Cloud Storage
- Use Cloud Audit Logs Admin Activity
- Use Cloud Audit Logs Data Access
- Use Recommender API
Explanation
Correct Answer
B:Admin Activity audit logs capture supported resource configuration and permission management events; Applied in this case, it delivers tracking administrative control-plane changes.
Incorrect Answers
A:The alternative would address archiving matching logs to object storage; Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; the question instead requires tracking administrative control-plane changes.
C:Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; the scenario specifies tracking administrative control-plane changes, which differs from auditing supported data-plane access events.
D:The Recommender API exposes supported resource recommendations and insights programmatically; the decision here is about tracking administrative control-plane changes, not integrating provider resource recommendations into automation.
Question 538
Local application code uses Google client libraries and needs developer credentials without injecting a service-account key. Which command supports testing?
- Use gcloud auth application-default login
- Enable a service API for the project
- List enabled project services
- Use a gcloud named configuration
Explanation
Correct Answer
A:Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; this corresponds to setting up local Application Default Credentials, not a separate lifecycle action.
Incorrect Answers
B:The alternative would address allowing that service's API in the project; Service Usage controls API enablement for each project; authorization and billing are separate requirements; the question instead requires setting up local Application Default Credentials.
C:The Service Usage listing and its gcloud services list interface expose enabled and available service states; the scenario specifies setting up local Application Default Credentials, which differs from inspecting a project's enabled API inventory.
D:Named gcloud configurations store sets of CLI properties and can be activated as needed; it is not the focused action for setting up local Application Default Credentials; its primary use is switching between distinct CLI contexts.
Question 539
An auditor finds object ACLs grant permissions unexpectedly despite restrictive bucket IAM. What configuration reduces ACL complexity?
- Use object holds
- Retrieve a noncurrent object generation
- Grant Storage Object Viewer
- Enable bucket IAM with uniform access
Explanation
Correct Answer
D:Uniform bucket-level access disables object ACL enforcement in favor of IAM evaluation; this is the specific mechanism used for enforcing centralized IAM control of bucket objects.
Incorrect Answers
A:Object holds block eligible object deletion until the hold condition is cleared; that supports pausing deletion of selected objects; the problem to solve concerns enforcing centralized IAM control of bucket objects.
B:This alternative focuses on selecting a saved historical object version; Object generations identify versions of the same object name when versioning retains noncurrent versions; the stem instead asks for enforcing centralized IAM control of bucket objects.
C:For granting read-only object data access, this could be relevant; Storage Object Viewer includes permissions for reading supported objects and object metadata; the actual request concerns enforcing centralized IAM control of bucket objects.
Question 540
An engineer can deploy VMs but cannot attach a particular service account to them. Which IAM role may be missing on that account?
- Attach a service account to a VM
- Rotate compromised service account key
- Grant service account user role for attachment
- Grant target resource role to service account
- Use service-account-level IAM policy
- Attach a service account to Cloud Run
Explanation
Correct Answer
C:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; the decisive property here is authorizing workload identity attachment.
Incorrect Answers
A:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; Applying it would target assigning workload identity to a compute instance, leaving the separate need for authorizing workload identity attachment.
B:Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; its operational role is revoking a compromised service-account key; the needed capability is authorizing workload identity attachment.
D:Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; its operational role is granting the workload identity the required API permissions; the needed capability is authorizing workload identity attachment.
E:A service account is an IAM resource with its own allow policy for controlling who can use or manage it; it concerns delegating access to exactly one service account, and its normal effect does not provide authorizing workload identity attachment.
F:Cloud Run services use configured runtime service accounts for Google Cloud API calls; Applying it would target running the container as a selected service account, leaving the separate need for authorizing workload identity attachment.