Google Cloud Associate Cloud Engineer Domain 3: Ensuring Successful Operation of a Cloud Solution
53 free practice questions for Ensuring Successful Operation of a Cloud Solution in the Google Cloud Certified Associate Cloud Engineer exam. Try each question first, then open "Show answer" for the correct option and explanation.
Ensuring Successful Operation of a Cloud Solution practice questions
-
Question 1. Which command connects to a Linux VM over SSH, handling keys automatically?
Show answer
Answer: A. gcloud compute ssh my-vm --zone=us-central1-a
gcloud compute ssh manages SSH keys through metadata or OS Login.
-
Question 2. VMs have no external IP addresses. How can administrators still SSH to them without a bastion host?
Show answer
Answer: C. Use IAP TCP forwarding with a firewall rule allowing the IAP range
Identity-Aware Proxy tunnels SSH through Google, checking IAM before connecting. Allow ingress from 35.235.240.0/20.
-
Question 3. What does enabling OS Login on VMs provide?
Show answer
Answer: B. SSH access controlled through IAM roles
OS Login links Linux accounts to Google identities, so access is granted and revoked through IAM.
-
Question 4. A VM's machine type needs more memory. What must be done first?
Show answer
Answer: D. Stop the VM, then change the machine type
Machine type changes require the VM to be stopped.
-
Question 5. Which resource captures a point-in-time, incremental backup of a persistent disk?
Show answer
Answer: A. A snapshot
Snapshots are incremental and can be scheduled with snapshot schedules.
-
Question 6. How can daily disk snapshots be automated with a 14-day retention period?
Show answer
Answer: A. Attach a snapshot schedule resource policy to the disk
Snapshot schedules create snapshots at set times and delete them after the retention period.
-
Question 7. A team wants every new VM to start from the same hardened OS configuration. What should they create?
Show answer
Answer: B. A custom image, ideally in an image family
Custom images capture a configured boot disk. Image families point to the latest image version.
-
Question 8. Which resource captures a VM's full configuration, including all attached disks and metadata, for backup or cloning?
Show answer
Answer: C. A machine image
Machine images store the whole VM configuration and disk data. Snapshots cover a single disk.
-
Question 9. A MIG must be updated to a new instance template gradually without downtime. What should be used?
Show answer
Answer: C. A rolling update with surge and unavailability limits
Rolling updates replace instances gradually according to the settings you choose.
-
Question 10. Which command lists VMs in the current project?
Show answer
Answer: A. gcloud compute instances list
gcloud compute instances list shows names, zones, status, and IPs.
-
Question 11. A GKE Standard cluster's nodes are full and Pods are Pending. What should be enabled?
Show answer
Answer: C. Cluster autoscaler on the node pool
The cluster autoscaler adds nodes when Pods can't be scheduled. HPA adds Pods, which still need capacity.
-
Question 12. Which Kubernetes resource scales the number of Pod replicas based on CPU utilization?
Show answer
Answer: A. HorizontalPodAutoscaler
The HPA adjusts the replica count of a Deployment based on metrics.
-
Question 13. Which command changes the number of replicas of a Deployment to 5?
Show answer
Answer: B. kubectl scale deployment web --replicas=5
kubectl scale changes the replica count immediately.
-
Question 14. Which command adds a node pool with GPU nodes to an existing GKE Standard cluster?
Show answer
Answer: D. gcloud container node-pools create gpu-pool --cluster=my-cluster --accelerator=type=nvidia-l4,count=1
Node pools are created with gcloud container node-pools create, with machine and accelerator options.
-
Question 15. A Cloud Run service has a new revision. How can 10% of traffic be sent to it for testing?
Show answer
Answer: D. Use gcloud run services update-traffic to split traffic between revisions
Cloud Run supports traffic splitting by percentage and tagged revisions for testing.
-
Question 16. A new Cloud Run revision has a bug. How can it be rolled back quickly?
Show answer
Answer: C. Route 100% of traffic to the previous revision
Previous revisions remain available, so traffic can be shifted back immediately.
-
Question 17. Which Cloud Storage feature keeps older versions of objects when they are overwritten or deleted?
Show answer
Answer: C. Object Versioning
Versioning keeps noncurrent versions, which lifecycle rules can later delete.
-
Question 18. Objects in a bucket must not be deleted or changed for 7 years for compliance. What should be configured?
Show answer
Answer: A. A retention policy, locked if it must be permanent
Retention policies prevent deletion until the retention period passes. Locking makes the policy irreversible.
-
Question 19. How can Cloud SQL be protected against accidental data deletion from a bad query an hour ago?
Show answer
Answer: C. Restore using point-in-time recovery
Point-in-time recovery uses binary or write-ahead logs to restore to a specific moment.
-
Question 20. Which Cloud SQL feature reduces read load on the primary instance?
Show answer
Answer: A. Read replicas
Read replicas serve read traffic. The HA standby doesn't serve reads.
-
Question 21. How can an analyst estimate how much data a BigQuery query will scan before running it?
Show answer
Answer: D. Run it as a dry run, or check the estimate in the query editor
A dry run returns bytes processed without running the query or charging for it.
-
Question 22. Which approach MOST reduces the cost of BigQuery queries on a large table filtered by date?
Show answer
Answer: D. Partition the table by date and filter on the partition column
Partitioning lets BigQuery scan only relevant partitions. Selecting only needed columns also helps.
-
Question 23. A VM needs a public IP address that doesn't change when it restarts. What should be done?
Show answer
Answer: C. Reserve a static external IP address and assign it
Ephemeral IPs can change. Static external addresses stay the same until released.
-
Question 24. An unused reserved static external IP address incurs what?
Show answer
Answer: D. A charge, because unused static IPs are billed
Release static IPs you don't need to avoid charges.
-
Question 25. Which service provides metrics, dashboards, and alerting for Google Cloud resources?
Show answer
Answer: C. Cloud Monitoring
Cloud Monitoring collects metrics and sends alerts. Cloud Logging stores and queries logs.
-
Question 26. What is needed to collect memory usage and application logs from inside Compute Engine VMs?
Show answer
Answer: A. The Ops Agent installed on the VMs
Some metrics, such as memory, come from inside the guest OS, so the Ops Agent is required.
-
Question 27. An engineer wants an email when a VM's CPU stays above 90% for 10 minutes. What should be created?
Show answer
Answer: C. A Cloud Monitoring alerting policy
Alerting policies evaluate conditions over time windows and notify channels such as email or Slack.
-
Question 28. Which Cloud Monitoring feature checks whether a public website responds from locations around the world?
Show answer
Answer: C. Uptime checks
Uptime checks probe HTTP, HTTPS, or TCP endpoints and can trigger alerts.
-
Question 29. Which tool queries and filters logs from Google Cloud services and applications?
Show answer
Answer: C. Logs Explorer in Cloud Logging
Logs Explorer uses the Logging query language to search logs.
-
Question 30. Logs must be kept for 5 years for audit, longer than the default retention. What should be done?
Show answer
Answer: C. Route the logs with a sink to storage with longer retention
The Log Router can send logs to Cloud Storage, BigQuery, Pub/Sub, or log buckets with custom retention.
-
Question 31. Where should logs be routed so analysts can run SQL queries on them?
Show answer
Answer: C. BigQuery, through a log sink
BigQuery sinks make logs queryable with SQL. Log Analytics also offers SQL on log buckets.
-
Question 32. How can logs from all projects in an organization be collected in one place?
Show answer
Answer: A. An aggregated sink at the organization or folder level
Aggregated sinks with includeChildren route logs from all descendant projects.
-
Question 33. Which log type records administrative actions, such as creating a VM, and is always enabled?
Show answer
Answer: D. Admin Activity audit logs
Admin Activity logs are on by default at no charge. Data Access logs must usually be enabled.
-
Question 34. Which audit logs record when users read data, such as reading objects in a bucket?
Show answer
Answer: B. Data Access audit logs
Data Access logs can be large and are disabled by default for most services, except BigQuery.
-
Question 35. Which feature records network flows sent and received by VM interfaces for troubleshooting and security analysis?
Show answer
Answer: B. VPC Flow Logs
VPC Flow Logs are enabled per subnet and sample traffic flows.
-
Question 36. Which service groups application crashes and exceptions and alerts on new errors?
Show answer
Answer: C. Error Reporting
Error Reporting aggregates errors from logs and shows stack traces and counts.
-
Question 37. Which service shows latency across services for individual requests in a distributed application?
Show answer
Answer: D. Cloud Trace
Cloud Trace collects spans to show where time is spent in each request.
-
Question 38. Which tool continuously analyzes CPU and memory usage of application code in production with low overhead?
Show answer
Answer: D. Cloud Profiler
Profiler identifies which functions consume the most resources.
-
Question 39. How can a count of specific log entries, such as HTTP 500 errors, be used for alerting?
Show answer
Answer: B. Create a log-based metric and alert on it
Log-based metrics turn log patterns into metrics that alerting policies can use.
-
Question 40. Which command shows the recent logs for a Cloud Run service from the CLI?
Show answer
Answer: A. gcloud logging read with a filter on the service name
gcloud logging read queries Cloud Logging. Cloud Run also offers gcloud beta run services logs.
-
Question 41. A VM won't boot and SSH fails. Which tool helps see boot messages?
Show answer
Answer: D. The serial port output or serial console
Serial port output shows boot and kernel messages, and the serial console allows troubleshooting without networking.
-
Question 42. Which Active Assist recommender suggests changing VMs that are consistently underused?
Show answer
Answer: A. VM machine type (rightsizing) recommender
Rightsizing recommendations are based on observed CPU and memory usage.
-
Question 43. Which command lists the revisions of a Cloud Run service?
Show answer
Answer: D. gcloud run revisions list --service=my-service
Each deployment creates an immutable revision, which you can list and route traffic to.
-
Question 44. Which GKE feature automatically upgrades nodes to keep them in sync with the control plane version?
Show answer
Answer: C. Node auto-upgrade
Auto-upgrade keeps node versions current. Auto-repair recreates unhealthy nodes.
-
Question 45. Which command shows the Pods in all namespaces of a GKE cluster?
Show answer
Answer: A. kubectl get pods --all-namespaces
The -A or --all-namespaces flag lists Pods across namespaces.
-
Question 46. A Pod keeps restarting. Which command shows the logs from the previous container instance?
Show answer
Answer: A. kubectl logs POD_NAME --previous
--previous shows logs from the last terminated container, which often reveals the crash cause.
-
Question 47. Which resource helps keep Compute Engine VMs patched on a schedule?
Show answer
Answer: C. VM Manager patch deployments
VM Manager OS patch management applies patches on a schedule across fleets of VMs.
-
Question 48. What does the Cloud Storage "gcloud storage rsync" command do?
Show answer
Answer: B. Synchronizes the contents of a local folder and a bucket
rsync copies only the changes needed to make the destination match the source.
-
Question 49. How can an engineer copy a Compute Engine disk to another zone?
Show answer
Answer: B. Create a snapshot, then create a new disk from it in the target zone
Snapshots are global resources, so disks can be restored from them in any zone.
-
Question 50. Which log shows why a firewall rule allowed or denied a connection?
Show answer
Answer: D. Firewall Rules Logging
Enabling logging on a firewall rule records the connections it matches.
-
Question 51. A dashboard should show metrics from several services in one view. What should be used?
Show answer
Answer: B. A custom dashboard in Cloud Monitoring
Custom dashboards combine charts from many metrics and resources.
-
Question 52. How can a Cloud SQL instance's maintenance updates be kept outside business hours?
Show answer
Answer: A. Configure a maintenance window for a preferred day and hour
Maintenance windows set when Google applies updates that require a restart.
-
Question 53. Which command deletes a GKE cluster?
Show answer
Answer: C. gcloud container clusters delete my-cluster --region=us-central1
Deleting the cluster removes its control plane and node pools.
Google Cloud is a trademark of Google LLC. These questions are original study material, not questions from the real exam.