Courseiva

CCNA Ensuring Successful Operation of a Cloud Solution Questions

6 of 81 questions · Page 2/2 · Ensuring Successful Operation of a Cloud Solution · Answers revealed

76
MCQmedium

An engineer needs to enable autoscaling on an existing node pool in a GKE cluster. Which command should they use?

A.gcloud compute instance-groups set-autoscaling
B.kubectl autoscale node-pool
C.gcloud container clusters update
D.gcloud container node-pools update --enable-autoscaling
AnswerD

This is the correct command because GKE exposes node-pool-level autoscaling through the container API. Running `gcloud container node-pools update NODE_POOL --cluster=CLUSTER --enable-autoscaling --min-nodes=MIN --max-nodes=MAX` turns on the cluster autoscaler for that specific node pool, allowing GKE to add or remove nodes within the configured limits based on resource demand. The command can also be used later to adjust min/max limits or disable autoscaling on existing node pools.

Why this answer

'gcloud container node-pools update' with '--enable-autoscaling' enables autoscaling. 'gcloud container clusters update' updates cluster-level settings, not node pools. 'kubectl autoscale' is for workloads, not node pools. 'gcloud compute instance-groups' is not used for GKE node pools.

77
MCQeasy

You need to monitor the uptime of an external HTTPS endpoint that is critical to your application. Which Google Cloud service should you use to create an uptime check?

A.Cloud Monitoring
B.Cloud Debugger
C.Cloud Trace
D.Cloud Logging
AnswerA

Cloud Monitoring includes native uptime checks that actively send HTTPS GET requests to the external endpoint from multiple global locations, verifying that the service is reachable and that expected HTTP status codes are returned. You can set response-time thresholds and alerting policies on these checks to trigger notifications when the endpoint fails or becomes slow. This makes it the correct service for monitoring endpoint availability rather than merely analyzing its internal behavior.

Why this answer

Cloud Monitoring provides uptime checks that can monitor HTTP, HTTPS, and TCP endpoints from multiple locations.

78
MCQmedium

You need to create a snapshot of a persistent disk attached to a running Compute Engine instance. The disk is used by a production database; you want minimal impact. What should you do?

A.Detach the disk, create the snapshot, then reattach.
B.Create the snapshot while the instance is running; snapshots are always consistent.
C.Use gcloud compute disks snapshot without stopping; data will be consistent.
D.Stop the instance, create the snapshot using gcloud compute disks snapshot, then restart the instance.
AnswerD

Stopping the instance is the correct approach because it triggers a clean guest OS shutdown, allowing filesystem caches to be flushed and applications to close files gracefully. After the instance is in the `TERMINATED` state, the persistent disk is quiescent, and running `gcloud compute disks snapshot` captures a point-in-time image that is both crash-consistent and application-consistent for most setups. Once the snapshot completes, you can restart the instance with `gcloud compute instances start` and resume operations with confidence that the snapshot reflects a known-good state.

Why this answer

Creating a snapshot of a disk in use is possible, but for data consistency, it's recommended to stop the instance or at least freeze the filesystem. However, the question says 'minimal impact', so the best practice is to stop the instance. But the correct answer reflects that snapshots can be taken from attached disks, but for database consistency, stop is recommended.

Let's choose the safer answer: stop the instance.

79
Multi-Selecthard

You are troubleshooting a slow application that uses multiple microservices. You suspect a particular service is causing high latency. Which TWO Google Cloud tools should you use to identify the root cause? (Select 2)

Select 2 answers
A.Cloud Profiler
B.Cloud Logging
C.Cloud Monitoring
D.Cloud Trace
E.Cloud Debugger
AnswersC, D

Cloud Monitoring ingests service-level metrics such as request count, latency, and error rate from GKE, Compute Engine, and App Engine, and can display them in dashboards with percentile aggregations. You can create alerting policies and SLOs to detect when one service's latency breaches a threshold. This metric-centric view identifies which service is slow and when, but does not give the end-to-end span journey through each internal call — that is Cloud Trace's role.

Why this answer

Cloud Trace traces requests across services to pinpoint latency, and Cloud Monitoring can show metrics like request latency and error rates.

80
MCQeasy

You need to be notified when the CPU utilization of any Compute Engine instance in your project exceeds 80% for 5 minutes. Which Cloud Monitoring feature should you use?

A.Uptime check
B.Log-based alert
C.Metric threshold alerting policy
D.Dashboard
AnswerC

A metric threshold alerting policy is the native Cloud Monitoring mechanism for checking a numeric metric stream against a condition, such as compute.googleapis.com/instance/cpu/utilization being above 80% for 5 minutes. You configure an alignment period, aggregator, window, and threshold, then route the incident to notification channels like email, Pub/Sub, or mobile. This directly consumes the CPU utilization metric and triggers a notification only when the threshold condition is met.

Why this answer

Metric threshold alerting policies in Cloud Monitoring evaluate time-series data (such as compute.googleapis.com/instance/cpu/utilization) against a threshold condition over a defined duration. To alert when CPU exceeds 80% for 5 minutes, you create an alerting policy with a threshold condition on the CPU utilization metric and set the duration window to 5 minutes. This is the native mechanism for firing notifications based on metric values crossing thresholds.

Exam trap

The trap here is confusing monitoring features that sound similar — candidates often pick uptime checks or log-based alerts because they think 'notification' implies any alerting mechanism, missing that CPU utilization is a metric and requires a metric threshold policy.

How to eliminate wrong answers

Option A is wrong because uptime checks only verify endpoint availability (HTTP/TCP response) from multiple global locations and cannot evaluate CPU utilization metrics. Option B is wrong because log-based alerts fire on log entry patterns, not on numeric metric thresholds like CPU percentage. Option D is wrong because dashboards are visualization-only; they display charts but do not evaluate conditions or send notifications.

81
MCQmedium

You are deploying a new version of an application to a Google Kubernetes Engine (GKE) cluster. You want to ensure that the new version is rolled out gradually, and if any issues are detected, the rollout is automatically paused. You also want to be able to easily roll back to the previous version. Which GKE feature should you use?

A.Use a StatefulSet with pod management policy set to Parallel.
B.Configure a Kubernetes Deployment with a rolling update strategy and set maxSurge and maxUnavailable parameters.
C.Create a DaemonSet to ensure the new version runs on all nodes.
D.Use a ReplicaSet with a custom controller to manage the rollout.
AnswerB

A Kubernetes Deployment with a rolling update strategy allows you to gradually replace pods with the new version. By setting maxSurge and maxUnavailable, you control the pace and availability. If issues arise, you can pause the rollout and roll back using kubectl rollout undo. This meets all requirements: gradual rollout, automatic pause on issues (via readiness probes), and easy rollback.

Why this answer

A Kubernetes Deployment with a rolling update strategy is designed for gradual rollouts, supports pausing and resuming, and allows easy rollback to previous versions. It uses ReplicaSets under the hood and provides declarative updates. The other options are either for different use cases (StatefulSet, DaemonSet) or lack native rollout control (ReplicaSet).

Exam trap

The trap here is confusing a ReplicaSet with a Deployment; while a ReplicaSet maintains pod count, only a Deployment provides rolling update and rollback orchestration.

← PreviousPage 2 of 2 · 81 questions total

Ready to test yourself?

Try a timed practice session using only Ensuring Successful Operation of a Cloud Solution questions.