Docsity

Google Cloud Associate Cloud Engineer Practice Exam 2026–2027: Cloud Engineering Certifi, Exams of Information Technology

Toggle sidebar
bg1
Google Cloud Associate Cloud Engineer
Practice Exam 2026–2027: Cloud Engineering
Certification Practice Questions & Detailed
Answer Explanations
1. A company runs a stateless web application on Compute
Engine managed instance groups (MIGs). The application
stores session information locally, but instances may be
automatically recreated during autoscaling. The
company wants users to remain authenticated when
requests are routed to different instances. Which
architecture is most appropriate?
A. Store session data on the boot disk of each instance
B. Use an internal load balancer with session affinity only
C. Store session state in a shared external datastore such as
Memorystore or Firestore
D. Disable autoscaling so instances are never recreated
Rationale: Stateless application instances should not depend
on local storage for persistent session information.
Externalizing session state allows any instance to process a
user's request even after scaling or instance replacement.
Session affinity alone does not guarantee persistence when
an instance disappears.
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

Partial preview of the text

Download Google Cloud Associate Cloud Engineer Practice Exam 2026–2027: Cloud Engineering Certifi and more Exams Information Technology in PDF only on Docsity!

Google Cloud Associate Cloud Engineer

Practice Exam 2026–2027: Cloud Engineering

Certification Practice Questions & Detailed

Answer Explanations

  1. A company runs a stateless web application on Compute Engine managed instance groups (MIGs). The application stores session information locally, but instances may be automatically recreated during autoscaling. The company wants users to remain authenticated when requests are routed to different instances. Which architecture is most appropriate? A. Store session data on the boot disk of each instance B. Use an internal load balancer with session affinity only C. Store session state in a shared external datastore such as Memorystore or Firestore D. Disable autoscaling so instances are never recreated Rationale: Stateless application instances should not depend on local storage for persistent session information. Externalizing session state allows any instance to process a user's request even after scaling or instance replacement. Session affinity alone does not guarantee persistence when an instance disappears.
  1. You need to deploy a new version of an application running in a regional managed instance group. The deployment must minimize downtime and allow traffic to be gradually shifted to the new instances. Which approach is best? A. Delete all existing instances and recreate them with the new image B. Perform a stop-and-start operation on every instance simultaneously C. Use a rolling update with an appropriate maximum unavailable setting D. Create a new project and migrate users manually Rationale: MIG rolling updates replace instances progressively and can control how many instances are unavailable simultaneously. This reduces service disruption and provides a controlled mechanism for deploying new instance templates.
  2. An organization wants to grant a service account access to a Cloud Storage bucket. The service account should be able to download objects but must not upload, modify, or delete them. Which IAM role is most appropriate at the bucket level? A. Storage Admin B. Storage Object Admin C. Storage Legacy Bucket Owner D. Storage Object Viewer

C. BigQuery D. Cloud Spanner Rationale: Cloud Spanner combines relational database capabilities, strong consistency, transactions, and horizontal scalability across regions. Cloud Storage and BigQuery serve different purposes, while Firestore is a NoSQL document database.

  1. An administrator wants to identify which Google Cloud resources are generating unexpectedly high network egress charges. Which tool should be used first? A. Cloud Trace B. Cloud Profiler C. Cloud Billing reports and cost analysis D. Cloud Shell history Rationale: Cloud Billing reports provide visibility into costs by project, service, SKU, and other dimensions. This is the appropriate starting point for investigating unexpected billing increases.
  2. A production application runs on Compute Engine VMs and requires a highly available relational database. The administrator wants automated backups, maintenance, and failover capabilities. Which service should be considered?

A. Cloud Storage B. BigQuery C. Cloud SQL with high availability configured D. Pub/Sub Rationale: Cloud SQL provides managed relational databases and supports high-availability configurations with regional failover. It reduces the operational burden of managing database infrastructure directly on VMs.

  1. A company wants to process millions of independent messages asynchronously. Producers should not need to know which consumers are currently available. Multiple independent applications should be able to consume the same logical stream of messages. Which service is most appropriate? A. Cloud SQL B. Cloud Storage C. Pub/Sub with separate subscriptions D. Cloud DNS Rationale: Pub/Sub decouples message producers from consumers. Multiple subscriptions allow different consumer applications to independently receive the published messages without requiring producers to manage consumer availability.
  2. A developer deploys a containerized HTTP application that should automatically scale based on incoming requests. The developer does not want to manage VM
  1. An administrator wants a private Compute Engine VM to access Google APIs without assigning the VM a public external IP address. Which configuration is most appropriate? A. Assign a static external IP address B. Configure an external HTTP load balancer C. Use Private Google Access on the applicable subnet D. Place the VM in a public subnet Rationale: Private Google Access allows instances without external IP addresses to access supported Google APIs and services through Google's network. This improves security by avoiding unnecessary public exposure.
  2. A company has a VPC network containing multiple subnets in different regions. The administrator creates a firewall rule allowing TCP port 443 from a specific source range. How are VPC firewall rules generally applied? A. Only to the subnet in which the rule was created B. Only to resources with external IP addresses C. At the network level, with targeting determining which instances are affected D. Only to Cloud Storage resources Rationale: Google Cloud VPC firewall rules are associated with a VPC network rather than being created independently for each subnet. Rules can be targeted to instances using mechanisms such as network tags or service accounts.
  1. A production VM must retain its data even if the VM itself is deleted. Which storage option is most appropriate for persistent block storage? A. Local SSD B. RAM disk C. Persistent Disk D. VM temporary directory Rationale: Persistent Disk is durable block storage that exists independently of the VM lifecycle when configured appropriately. Local SSD provides high performance but its data is tied to the VM and is not intended as durable persistent storage.
  2. A company wants to store millions of images and videos. The objects must be highly durable, and applications should access them through object-storage APIs. Which service should be used? A. Filestore B. Persistent Disk C. Cloud SQL D. Cloud Storage Rationale: Cloud Storage is Google's object storage service and is designed for durable storage of unstructured data such as images, videos, documents, and backups.

entry point from the backend infrastructure and reduces direct exposure of individual instances.

  1. An application running on Compute Engine intermittently experiences high CPU utilization. The administrator wants to determine whether the problem is correlated with request latency and resource utilization over time. Which service should be used? A. Cloud DNS B. Cloud IAM C. Cloud Monitoring D. Cloud KMS Rationale: Cloud Monitoring collects metrics and provides dashboards, charts, and alerting capabilities. It can correlate CPU utilization and other system or application metrics over time to help diagnose performance issues.
  2. A security administrator wants an alert whenever a service account receives an IAM role change. Which Google Cloud capability provides the underlying audit information? A. Cloud Profiler B. Cloud Trace C. Cloud Audit Logs D. Cloud CDN

Rationale: Cloud Audit Logs record administrative and data- access activities for supported Google Cloud services. IAM policy changes can therefore be investigated through the appropriate audit log entries.

  1. A developer accidentally deletes a production VM. The attached Persistent Disk still exists, and the administrator needs to recreate the VM with the same data. What should the administrator do? A. Restore the data from Cloud Logging B. Create an unrelated empty disk C. Create a new VM and attach the existing Persistent Disk D. Recover the disk from Cloud Monitoring Rationale: Persistent Disks can exist independently of a VM. If the disk was not deleted along with the VM, it can be attached to a replacement VM, allowing the stored data to be reused.
  2. An organization needs to run a batch workload every night at 2:00 AM. The workload should invoke an HTTP endpoint and does not require a continuously running VM. Which combination is most appropriate? A. Cloud DNS and Cloud Storage B. Cloud Scheduler and Cloud Run C. Cloud Armor and Cloud CDN D. Cloud SQL and Persistent Disk

Rationale: Cloud NAT provides outbound internet connectivity for resources without external IP addresses. It does not make those VMs directly reachable from unsolicited inbound internet traffic, making it suitable for controlled egress.

  1. A company wants to deploy a new application version while maintaining the existing version and gradually moving production traffic to the new version. Which deployment strategy best matches this requirement? A. Recreate deployment B. Blue-green deployment C. Single-instance deployment D. Manual disk migration Rationale: Blue-green deployment maintains separate environments representing the old and new versions. Traffic can be shifted from the blue environment to the green environment after validation, allowing rapid rollback if problems occur.
  2. A developer needs to allow a Cloud Run service to access a protected Google Cloud API. The developer wants to avoid embedding credentials in application code. What should be used? A. Hard-coded service account JSON credentials B. A publicly accessible credential file C. A dedicated service account with the required IAM

permissions assigned to the Cloud Run service D. The project Owner role Rationale: Cloud Run services can run using a dedicated service account. Granting that identity only the permissions required by the application follows least privilege and avoids embedding long-lived credentials in source code.

  1. A company operates a critical application across multiple zones in one Google Cloud region. The administrator wants protection against a zonal infrastructure failure while keeping the application within the same region. Which design provides the strongest improvement in availability? A. Run all instances in one zone with larger machine types B. Use one VM with a larger persistent disk C. Distribute instances across multiple zones using a regional managed instance group D. Place all instances on the same physical host Rationale: A regional MIG distributes VM instances across multiple zones within a region. If one zone becomes unavailable, instances in the other zones can continue serving traffic, improving application resilience without requiring a multi-region architecture.
  2. A company runs a three-tier application in a custom VPC. The web tier must accept HTTPS traffic from the internet, the application tier should accept traffic only

administrative permissions. IAM should be scoped as narrowly as practical, rather than granting project-wide administrative access.

  1. An administrator needs to find the exact Google Cloud API call that caused a production resource to be modified, including the identity that made the change. Where should the administrator look? A. Cloud Monitoring metrics B. Cloud Profiler C. Cloud Audit Logs D. Cloud CDN logs Rationale: Audit Logs provide records of administrative activity and can identify the principal responsible for many resource changes. Monitoring metrics generally show operational behavior rather than the detailed identity and API operation responsible for a configuration change.
  2. A company wants to prevent developers from accidentally creating expensive GPU-based Compute Engine instances in a development project. Which Google Cloud capability can enforce organizational restrictions on resource configurations? A. Cloud Trace B. Organization Policy C. Cloud CDN D. Cloud Scheduler

Rationale: Organization Policy allows administrators to establish constraints governing how resources may be configured throughout an organization or selected resource hierarchy. This can restrict certain resource types or configurations and reduce governance risks.

  1. A production application requires a DNS name that should resolve to different backend services depending on the geographic location of the client. Which Cloud DNS capability is most relevant? A. DNSSEC only B. Private zones only C. Geolocation routing policies D. DNS forwarding without routing policies Rationale: Cloud DNS supports routing policies that can influence DNS responses based on conditions such as geographic location. This can help direct users toward regionally appropriate endpoints.
  2. An administrator creates a new VPC network and launches a Compute Engine VM. The administrator wants the VM to have an internal IP address from a specific range that will not conflict with existing networks. What must be configured? A. Cloud NAT only B. A subnet with an appropriate IP range in the VM's region

comparatively straightforward solution. Which service should be considered? A. Cloud CDN B. Cloud Interconnect exclusively C. Cloud VPN D. Cloud Storage Transfer Service Rationale: Cloud VPN provides encrypted tunnels between networks over an IPsec connection. It is commonly used when encrypted connectivity over the public internet is acceptable and dedicated connectivity is not required.

  1. A developer wants to deploy a container to Google Cloud without maintaining servers. The workload is triggered by HTTP requests, can scale to zero, and does not require Kubernetes-specific functionality. Which service is the strongest fit? A. Compute Engine managed instance group B. GKE Standard C. Cloud Run D. Cloud Interconnect Rationale: Cloud Run is designed for managed containerized applications and supports automatic scaling, including scaling to zero when there is no traffic. It avoids the operational overhead of managing VM or Kubernetes infrastructure.
  1. A team is selecting between Cloud Run and GKE for an application. The application requires Kubernetes- native APIs, custom scheduling behavior, and extensive control over pods and cluster networking. Which platform is more appropriate? A. Cloud Run B. App Engine Standard C. Google Kubernetes Engine D. Cloud Functions Rationale: GKE provides Kubernetes functionality, including pods, deployments, scheduling, networking, and cluster-level configuration. Cloud Run is better suited to simpler managed container execution where Kubernetes control is unnecessary.
  2. A BigQuery dataset contains sensitive customer information. Analysts need to query only the rows belonging to their assigned regions. The organization wants to avoid creating separate physical tables for each region. Which capability can help? A. Cloud NAT B. Row-level security C. Cloud Scheduler D. Persistent Disk snapshots Rationale: BigQuery row-level security can restrict which rows users or groups can access within a table. This allows a shared dataset to enforce fine-grained data-access policies without duplicating the underlying table.