Docsity

Google Cloud Associate Cloud Engineer — Comprehensive Practice Exam & Study Guide 2027 |, Exams of Information Technology

Toggle sidebar
bg1
Google Cloud Associate Cloud Engineer —
Comprehensive Practice Exam & Study Guide
2027 | Updated Questions, Detailed
Answers, Explanations & Comprehensive
Rationales
1. A company runs a stateless web application on a
managed instance group (MIG). The application must
automatically scale based on CPU utilization, but traffic
spikes are brief and unpredictable. Which configuration
best minimizes unnecessary instance creation while
maintaining responsiveness?
A. Set the autoscaler to use only a fixed target CPU utilization
B. Disable autoscaling and increase the MIG's maximum size
C. Configure autoscaling with a target CPU utilization and an
appropriate stabilization period
D. Configure autoscaling based only on disk utilization
C. Configure autoscaling with a target CPU utilization and an
appropriate stabilization period
Rationale: A MIG autoscaler can use CPU utilization as a
scaling signal. The stabilization period helps prevent rapid
scale-in immediately after a transient spike, while the target
CPU utilization provides a workload-based scaling trigger.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download Google Cloud Associate Cloud Engineer — Comprehensive Practice Exam & Study Guide 2027 | and more Exams Information Technology in PDF only on Docsity!

Google Cloud Associate Cloud Engineer —

Comprehensive Practice Exam & Study Guide

2027 | Updated Questions, Detailed

Answers, Explanations & Comprehensive

Rationales

  1. A company runs a stateless web application on a managed instance group (MIG). The application must automatically scale based on CPU utilization, but traffic spikes are brief and unpredictable. Which configuration best minimizes unnecessary instance creation while maintaining responsiveness? A. Set the autoscaler to use only a fixed target CPU utilization B. Disable autoscaling and increase the MIG's maximum size C. Configure autoscaling with a target CPU utilization and an appropriate stabilization period D. Configure autoscaling based only on disk utilization C. Configure autoscaling with a target CPU utilization and an appropriate stabilization period Rationale: A MIG autoscaler can use CPU utilization as a scaling signal. The stabilization period helps prevent rapid scale-in immediately after a transient spike, while the target CPU utilization provides a workload-based scaling trigger.

Disk utilization is generally unsuitable for scaling stateless compute workloads.

  1. A Compute Engine VM must access Cloud Storage without storing service-account keys on the VM. The VM should receive only the permissions required to read objects from one specific bucket. What should the administrator do? A. Download a service-account JSON key to the VM and restrict its filesystem permissions B. Attach a service account to the VM and grant it the required bucket-level IAM role C. Use the default Compute Engine service account with project-wide Editor access D. Store the service-account key in Cloud Storage and download it during startup B. Attach a service account to the VM and grant it the required bucket-level IAM role Rationale: Attaching a service account provides the VM with short-lived credentials through the metadata server, avoiding long-lived key files. Granting the role specifically on the required bucket follows least privilege and limits the service account's access scope.
  2. An organization wants to deploy containers to Google Cloud with minimal infrastructure management. The application must automatically scale based on incoming

Rationale: A Cloud Run service needs VPC connectivity to reach resources through private networking. Depending on the current Cloud Run networking configuration, this can be achieved using direct VPC egress or Serverless VPC Access. Cloud NAT alone does not provide private connectivity to a Cloud SQL private address.

  1. A company has a production VPC with multiple subnets. An administrator creates a new subnet in one region. What happens to the subnet's IP range? A. It automatically becomes available in every region B. It is associated only with the region where it was created C. It can be moved between regions without recreation D. It is automatically replicated into every VPC B. It is associated only with the region where it was created Rationale: Google Cloud VPC networks are global, but subnets are regional resources. A subnet created in one region serves resources in that region. Additional regional subnets must be created when workloads require IP ranges elsewhere.
  2. A VM must be reachable from the internet over HTTPS, but SSH access should be restricted to administrators from a corporate network. Which firewall strategy is most appropriate? A. Allow TCP 22 and TCP 443 from 0.0.0.0/ B. Allow TCP 443 from the internet and TCP 22 only from the

corporate source range C. Deny all ingress traffic and allow all egress traffic D. Allow all TCP traffic from the corporate network B. Allow TCP 443 from the internet and TCP 22 only from the corporate source range Rationale: Firewall rules should expose only required services to the required sources. HTTPS may need public access, whereas administrative SSH access should be restricted to trusted source ranges. Allowing SSH from everywhere unnecessarily increases the attack surface.

  1. A company wants to centrally manage infrastructure configuration using declarative files that can be version- controlled and used to reproduce environments. Which approach is most appropriate? A. Manually create resources through the Cloud Console B. Use Terraform configuration files C. Use SSH scripts executed manually on each VM D. Store configuration screenshots in Cloud Storage B. Use Terraform configuration files Rationale: Terraform provides infrastructure as code, allowing infrastructure definitions to be version-controlled, reviewed, reused, and applied consistently across environments. Manual console operations do not provide the same reproducibility.

recovery from accidental modifications or deletions. Lifecycle policies can subsequently be used to control storage costs.

  1. An organization needs to automatically delete temporary Cloud Storage objects after 30 days. Administrators do not want to run scheduled scripts. What should they configure? A. Cloud Storage lifecycle management B. Cloud Monitoring uptime checks C. Cloud Load Balancing D. IAM Conditions A. Cloud Storage lifecycle management Rationale: Cloud Storage lifecycle rules can automatically transition or delete objects based on conditions such as object age. This eliminates the need for custom scheduled cleanup jobs.
  2. A team deploys a new version of a Cloud Run service. They want to gradually send a percentage of production traffic to the new revision while retaining the ability to immediately redirect traffic to the old revision. What should they use? A. Cloud Storage lifecycle rules B. Cloud Run traffic splitting between revisions C. Compute Engine snapshots D. GKE node pools

B. Cloud Run traffic splitting between revisions Rationale: Cloud Run supports multiple revisions and allows traffic to be distributed among them. This enables controlled rollouts and rapid rollback by changing the traffic allocation.

  1. A Compute Engine instance repeatedly fails because its persistent boot disk becomes corrupted. The administrator wants to create a recoverable point-in- time copy of the disk before making risky changes. What should be used? A. Machine image only B. Persistent Disk snapshot C. Cloud NAT D. Instance group autoscaling B. Persistent Disk snapshot Rationale: Persistent Disk snapshots provide point-in-time backups of persistent disks and can be used to create new disks. They are particularly useful before major configuration changes or migrations.
  2. A company operates workloads in multiple Google Cloud projects. The security team wants centralized IAM policy management while allowing projects to retain independent billing and resource administration. Which resource hierarchy structure is most appropriate?
  1. A company wants to monitor VM CPU utilization and receive an alert when production CPU usage remains above a defined threshold for several minutes. Which Google Cloud service should be configured? A. Cloud Monitoring B. Cloud Storage C. Cloud DNS D. Cloud Scheduler A. Cloud Monitoring Rationale: Cloud Monitoring collects metrics and supports alerting policies based on conditions such as CPU utilization. A duration condition helps prevent alerts caused by brief, non- actionable spikes.
  2. An administrator wants to investigate why a service account accessed a sensitive resource yesterday. Which Google Cloud capability provides records of administrative and data-access activity when the applicable logging is enabled? A. Cloud Audit Logs B. Cloud Scheduler C. Cloud CDN D. Cloud Build A. Cloud Audit Logs

Rationale: Cloud Audit Logs provide records of activity involving Google Cloud resources. Different audit-log categories capture different types of activity, so administrators must ensure the relevant logging is enabled and retained according to organizational requirements.

  1. A company runs a web application behind a global external HTTP(S) load balancer. Users should be directed to the backend closest to them, while unhealthy backends should automatically stop receiving traffic. Which combination addresses these requirements? A. Cloud DNS round-robin records only B. Global load balancing with health checks C. Internal TCP load balancing without health checks D. Cloud Storage lifecycle policies B. Global load balancing with health checks Rationale: Global external load balancing can distribute traffic across regional backends, while health checks determine backend availability. Unhealthy backends can therefore be removed from serving traffic until they recover.
  2. A company wants to deploy a web application across two regions to improve resilience. The application uses a managed relational database that supports regional high availability but must survive a zonal failure automatically. Which database configuration should be considered?
  1. An application processes millions of independent messages. Producers should not need to know which consumers are processing messages. Multiple consumer applications should be able to independently receive the same logical stream of events. Which service pattern is appropriate? A. Pub/Sub topics with separate subscriptions B. Cloud Storage with public objects C. Cloud DNS forwarding D. Persistent Disk snapshots A. Pub/Sub topics with separate subscriptions Rationale: Pub/Sub separates message producers from consumers. Multiple subscriptions attached to a topic can provide independent message streams to different consumer applications, supporting decoupled event-driven architectures.
  2. A company has a Pub/Sub subscription where occasional message-processing failures occur. The application should retry failed messages while preventing permanently problematic messages from being retried indefinitely. What should be configured? A. Increase the VM boot disk size B. Configure retry behavior and a dead-letter topic C. Disable message acknowledgment D. Delete the Pub/Sub topic after every failure

B. Configure retry behavior and a dead-letter topic Rationale: Pub/Sub retry policies can control how failed message delivery is retried, while a dead-letter topic provides a mechanism for isolating messages that cannot be successfully processed after repeated attempts. This prevents problematic messages from continuously disrupting normal processing.

  1. A developer wants to deploy an application automatically whenever code is merged into the main branch. The deployment should build a container image and then deploy the application to Cloud Run. Which architecture best fits this requirement? A. Cloud Build triggered by the source repository, followed by deployment to Cloud Run B. Manually build the container on a local workstation C. Store source code in Cloud Storage and manually copy it to a VM D. Use Cloud DNS to execute deployment commands A. Cloud Build triggered by the source repository, followed by deployment to Cloud Run Rationale: Cloud Build can automate build and deployment pipelines. A repository trigger can start the process after a source-code change, allowing the pipeline to build an image and deploy the resulting application to Cloud Run.

A. Cloud NAT Rationale: Cloud NAT allows resources without external IP addresses to establish outbound connections to the internet. It does not provide unsolicited inbound connectivity to those VMs, which helps preserve the private nature of the instances.

  1. A company wants to reduce costs for a Compute Engine workload that runs continuously but can tolerate interruption. The workload has no strict requirement for uninterrupted execution and can restart from checkpoints. Which pricing/VM option is most appropriate? A. Sole-tenant nodes B. Spot VMs C. Premium support only D. Dedicated host reservations B. Spot VMs Rationale: Spot VMs are intended for fault-tolerant workloads that can tolerate preemption. They can provide substantial cost savings compared with regular on-demand VM usage, but workloads must be designed to handle interruption and restart appropriately.
  2. A company has a VPC network with a subnet using the range 10.10.0.0/24. The team needs to create a

second subnet in the same region using 10.10.1.0/24. Which statement is correct? A. Both subnets must use identical IP ranges because they are in the same region B. The second subnet can use 10.10.1.0/24 as long as the range does not overlap with existing subnet ranges C. Subnets in the same region cannot coexist in the same VPC D. The second subnet must be created in a different VPC B. The second subnet can use 10.10.1.0/24 as long as the range does not overlap with existing subnet ranges Rationale: Multiple subnets can exist in the same region and VPC. Their primary IP ranges must not overlap. Using a distinct CIDR such as 10.10.1.0/24 is valid when it does not conflict with existing ranges.

  1. An administrator needs to allow a specific group of Compute Engine VMs to receive TCP traffic on port 8080. The VMs may be recreated frequently, so their IP addresses cannot be used reliably in firewall rules. What is the best approach? A. Create a firewall rule using the VMs' current external IP addresses B. Create a firewall rule targeting a network tag assigned to the intended instances C. Allow TCP 8080 from 0.0.0.0/ D. Disable the VPC firewall

project. The original VM no longer needs the disk. What should the administrator generally do? A. Attach the same writable disk simultaneously to both VMs B. Detach the disk from the original VM and attach it to the new VM C. Convert the disk to Cloud Storage first D. Delete the disk and recreate it from memory B. Detach the disk from the original VM and attach it to the new VM Rationale: A persistent disk can be detached from one VM and attached to another, subject to the disk's attachment and sharing capabilities. A normal writable persistent disk should not simply be attached for simultaneous independent writes from multiple VMs.

  1. A team needs a storage service for large media files. Files are accessed frequently during the first few weeks, but after that they are rarely accessed. The organization wants storage costs to decrease automatically as objects age. What should be configured? A. Cloud Storage lifecycle rules that transition objects to colder storage classes B. Cloud NAT with scheduled translations C. Cloud Monitoring alert policies D. IAM Conditions based on CPU utilization A. Cloud Storage lifecycle rules that transition objects to colder storage classes

Rationale: Cloud Storage lifecycle management can automatically transition objects between storage classes based on conditions such as object age. This can reduce storage costs for data whose access frequency decreases over time.

  1. A company stores regulated data in Cloud Storage and wants to prevent the data from being accidentally accessed from outside a defined organizational security perimeter, even if IAM permissions are misconfigured. Which capability is designed for this purpose? A. Cloud Scheduler B. VPC Service Controls C. Cloud CDN D. Managed Instance Groups B. VPC Service Controls Rationale: VPC Service Controls can establish security perimeters around supported Google Cloud services and help reduce data-exfiltration risks. They complement IAM rather than replacing IAM authorization.
  2. A Cloud Run service is receiving a sudden increase in traffic. The application is stateless, but each container instance consumes significant memory. The administrator wants to prevent the service from creating an excessive number of instances and exhausting a dependent database. Which setting is most useful?