Google Associate Cloud Engineer Practice Test 42
Question 410
A maintenance script deletes an instance after a user reports it broken, but logs show the issue is a failed guest service and no snapshots exist. What safer response should be taken?
- Use the supported serial console or recovery workflow under a scoped admin permission and repair the guest configuration without opening global SSH ingress.
- Restart the instance repeatedly while leaving the underlying error or missing dependency in place.
- Give the attached VM service account project Owner instead of fixing resource configuration.
- Capture an appropriate diagnostic snapshot or disk backup and investigate serial console/guest service evidence before destructive replacement.
Explanation
Correct Answer
D:Destroying the only instance can erase useful incident artifacts; troubleshooting should preserve recoverable state and data.
Incorrect Answers
A:The proposed setting does not correct the stated machine, disk or scheduling requirement. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Capture an appropriate diagnostic snapshot or disk backup and investigate serial console/guest service evidence before destructive replacement.
B:The proposed setting does not correct the stated machine, disk or scheduling requirement. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Capture an appropriate diagnostic snapshot or disk backup and investigate serial console/guest service evidence before destructive replacement.
C:Project Owner broadens authorization and is not an appropriate substitute for the named control. The necessary distinction is the actual compute scheduling or resource condition.
Question 411
A VM migration program needs a reproducible image for dozens of replacement instances, but the team relies on a single manually configured source VM. What should be created?
- Produce and validate a governed custom image or image family from the approved golden source with version control.
- Choose the approved patched image version or governed family and enforce image-provenance tests before creating replacement instances.
- Give the attached VM service account project Owner instead of fixing resource configuration.
- Increase the VM vCPU quota without changing the failed configuration or resource setting.
Explanation
Correct Answer
A:A reusable, versioned Compute Engine image makes fleet replacement repeatable and prevents configuration drift from manual cloning.
Incorrect Answers
B:The proposed setting does not correct the stated machine, disk or scheduling requirement. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Produce and validate a governed custom image or image family from the approved golden source with version control.
C:Project Owner broadens authorization and is not an appropriate substitute for the named control. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Produce and validate a governed custom image or image family from the approved golden source with version control.
D:More CPU quota affects capacity, not the API or policy decision described. The case instead depends on the actual compute scheduling or resource condition.
Question 412
A managed instance group creates new VMs from an instance template. A team changes the service account on one existing VM but wants every future replacement and rolling update to use the new approved identity. Which change is authoritative?
- Edit only the currently running VM again; managed instance groups copy live changes into their immutable templates by default.
- Rename the VM service account to match the old principal; the template starts referring to the renamed identity automatically.
- Increase the VM group autoscaler maximum; more nodes automatically rotate the service account identity for new instances.
- Create a new reviewed instance template with the intended attached service account and roll it out to the managed instance group.
Explanation
Correct Answer
D:Create a new reviewed instance template with the intended attached service account and roll it out to the managed instance group. The instance template defines service account and other create-time configuration for managed instances. A controlled rollout propagates the reviewed identity.
Incorrect Answers
A:Edit only the currently running VM again; managed instance groups copy live changes into their immutable templates by default. A managed instance group is driven by its instance template. A one-off VM edit does not update the template used for new and recreated members.
B:Rename the VM service account to match the old principal; the template starts referring to the renamed identity automatically. Principal display names do not modify the template's attached service-account configuration. Identity selection must be explicit.
C:Increase the VM group autoscaler maximum; more nodes automatically rotate the service account identity for new instances. Autoscaler limits control the number of instances, not the credentials attached to the VMs created from a template.
Question 413
A running VM must be resized to a larger supported shape, but its machine family cannot be changed while the VM is active. What maintenance sequence is required?
- Select a supported confidential-VM machine family and region and verify the guest feature remains enabled after migration.
- Increase the VM vCPU quota without changing the failed configuration or resource setting.
- Move the VM to a different billing account and assume its scheduling and storage behavior changes.
- Plan a maintenance window, stop the instance when required, change to an eligible machine type, and restart with health validation.
Explanation
Correct Answer
D:Certain Compute Engine machine type modifications require stopping the VM and respecting compatibility constraints.
Incorrect Answers
A:Placement changes do not automatically implement the required resource-level feature. The case instead depends on the actual compute scheduling or resource condition.
B:More CPU quota affects capacity, not the API or policy decision described. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Plan a maintenance window, stop the instance when required, change to an eligible machine type, and restart with health validation.
C:Billing changes payment responsibility, not the technical behavior of this workload. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Plan a maintenance window, stop the instance when required, change to an eligible machine type, and restart with health validation.
Question 414
An engineer wants to delete a long-lived project but several billing-critical VMs remain in it, and the deletion command reports success pending. What is the correct safety response?
- Set the non-boot data disk's deletion behavior to retain and verify backup consistency before deleting the instance.
- Increase the VM vCPU quota without changing the failed configuration or resource setting.
- Cancel or recover the project deletion within the allowed recovery window and verify resource dependencies before repeating any decommission.
- Restart the instance repeatedly while leaving the underlying error or missing dependency in place.
Explanation
Correct Answer
C:Deleting a cloud project can cascade to dependent resources; a pending deletion status is a serious governance action, not a harmless cleanup.
Incorrect Answers
A:The proposed setting does not correct the stated machine, disk or scheduling requirement. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Cancel or recover the project deletion within the allowed recovery window and verify resource dependencies before repeating any decommission.
B:More CPU quota affects capacity, not the API or policy decision described. The specific requirement concerns the actual compute scheduling or resource condition.
D:The proposed setting does not correct the stated machine, disk or scheduling requirement. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Cancel or recover the project deletion within the allowed recovery window and verify resource dependencies before repeating any decommission.
Question 415
A GCE instance has a high CPU utilization alert during a weekly backup that lasts a few minutes, causing recurring false incidents. What operational adjustment preserves signal?
- Tune a documented metric-duration window or schedule-aware alert condition while retaining detection of sustained CPU pressure.
- Install and configure guest-level metrics collection for filesystem capacity and alert on root-volume usage with appropriate scope.
- Move the VM to a different billing account and assume its scheduling and storage behavior changes.
- Change the instance display name as a replacement for modifying the actual machine or disk.
Explanation
Correct Answer
A:Metric thresholds need adequate evaluation windows so brief expected peaks do not trigger the same response as persistent saturation.
Incorrect Answers
B:The proposed setting does not correct the stated machine, disk or scheduling requirement. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Tune a documented metric-duration window or schedule-aware alert condition while retaining detection of sustained CPU pressure.
C:Billing changes payment responsibility, not the technical behavior of this workload. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Tune a documented metric-duration window or schedule-aware alert condition while retaining detection of sustained CPU pressure.
D:Display names and labels identify resources; they do not enforce their runtime behavior. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Tune a documented metric-duration window or schedule-aware alert condition while retaining detection of sustained CPU pressure.
Question 416
A production Persistent Disk reports recurring I/O errors. Operators plan to detach and replace it, but the application has no recent recovery point. Assuming the source remains readable, what recovery safeguard should precede destructive work?
- Take an application-consistent supported snapshot or backup and verify recovery evidence before the controlled disk replacement.
- Delete the failing disk immediately; Google Cloud automatically preserves every discarded block in an unlimited restore history.
- Increase the VM machine family so the underlying disk becomes a separate recoverable backup without copying data.
- Disable Cloud Monitoring; removing the alert condition automatically repairs corrupted disk blocks.
Explanation
Correct Answer
A:Take an application-consistent supported snapshot or backup and verify recovery evidence before the controlled disk replacement. Snapshots or backups provide an explicit recovery point. Consistency and restoration must be checked before a replacement risks losing the only surviving data.
Incorrect Answers
B:Delete the failing disk immediately; Google Cloud automatically preserves every discarded block in an unlimited restore history. Deleting a disk can permanently remove data that was never backed up. A restore point must not be assumed without verification.
C:Increase the VM machine family so the underlying disk becomes a separate recoverable backup without copying data. Changing VM compute size does not create a copy of persistent disk contents or guarantee application-consistent recovery.
D:Disable Cloud Monitoring; removing the alert condition automatically repairs corrupted disk blocks. An alert can reveal I/O failures but disabling the alert neither repairs the disk nor protects user data for later restoration.
Question 417
A new managed instance group update is progressing too slowly because maxUnavailable is zero and no replacement capacity can be added. What rollout constraint should be examined?
- Create a new reviewed instance template with the intended attached service account and roll it out to the managed instance group.
- Create a snapshot only and assume it immediately changes the live VM capacity.
- Review maxSurge, maxUnavailable, quota and template resource availability and choose safe update limits for the serving target.
- Change the instance display name as a replacement for modifying the actual machine or disk.
Explanation
Correct Answer
C:A MIG rolling update needs sufficient surge capacity or a permitted unavailable interval to replace replicas without deadlock.
Incorrect Answers
A:The proposed setting does not correct the stated machine, disk or scheduling requirement. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Review maxSurge, maxUnavailable, quota and template resource availability and choose safe update limits for the serving target.
B:Snapshots are recovery artifacts and do not directly reconfigure a running resource. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Review maxSurge, maxUnavailable, quota and template resource availability and choose safe update limits for the serving target.
D:Display names and labels identify resources; they do not enforce their runtime behavior. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Review maxSurge, maxUnavailable, quota and template resource availability and choose safe update limits for the serving target.
Question 418
An application needs a nightly VM stop/start schedule but currently relies on a developer's laptop cron job. Which cloud-native control should own the schedule?
- Use an approved instance schedule or centrally managed Scheduler-driven automation with least-privilege identity and monitoring.
- Provision Cloud Workstations with an approved base image, protected network, and least-privilege developer access.
- Increase the VM vCPU quota without changing the failed configuration or resource setting.
- Create a snapshot only and assume it immediately changes the live VM capacity.
Explanation
Correct Answer
A:A local developer machine is not a reliable production automation control plane; centrally governed schedules and service identity are auditable.
Incorrect Answers
B:Network settings and service or application controls must be distinguished. It leaves the actual compute scheduling or resource condition unaddressed.
C:More CPU quota affects capacity, not the API or policy decision described. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Use an approved instance schedule or centrally managed Scheduler-driven automation with least-privilege identity and monitoring.
D:Snapshots are recovery artifacts and do not directly reconfigure a running resource. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Use an approved instance schedule or centrally managed Scheduler-driven automation with least-privilege identity and monitoring.
Question 419
A VM with Shielded VM features loses secure boot during a manual image migration. How should the rollout be checked?
- Produce and validate a governed custom image or image family from the approved golden source with version control.
- Validate boot integrity settings and compatible trusted drivers on the new image, retaining Secure Boot where required by policy.
- Give the attached VM service account project Owner instead of fixing resource configuration.
- Change the instance display name as a replacement for modifying the actual machine or disk.
Explanation
Correct Answer
B:Image changes can alter trusted boot compatibility; Shielded VM configuration must be explicitly validated rather than presumed.
Incorrect Answers
A:The proposed setting does not correct the stated machine, disk or scheduling requirement. The specific requirement concerns the actual compute scheduling or resource condition. The appropriate action here is: Validate boot integrity settings and compatible trusted drivers on the new image, retaining Secure Boot where required by policy.
C:Project Owner broadens authorization and is not an appropriate substitute for the named control. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Validate boot integrity settings and compatible trusted drivers on the new image, retaining Secure Boot where required by policy.
D:Display names and labels identify resources; they do not enforce their runtime behavior. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Validate boot integrity settings and compatible trusted drivers on the new image, retaining Secure Boot where required by policy.
Question 420
A VM running in a private network must authenticate its application to another Google Cloud API, but its attached service account is disabled. What is the targeted administrative change?
- Create a new reviewed instance template with the intended attached service account and roll it out to the managed instance group.
- Restore an approved dedicated application identity or bind an authorized replacement service account to the VM and test token access.
- Give the attached VM service account project Owner instead of fixing resource configuration.
- Create a snapshot only and assume it immediately changes the live VM capacity.
Explanation
Correct Answer
B:The VM's network reachability does not replace the service-account token identity needed for Google Cloud API authorization.
Incorrect Answers
A:The proposed setting does not correct the stated machine, disk or scheduling requirement. The necessary distinction is the correct runtime principal and its bindings.
C:Project Owner broadens authorization and is not an appropriate substitute for the named control. The case instead depends on the correct runtime principal and its bindings.
D:Snapshots are recovery artifacts and do not directly reconfigure a running resource. It leaves the correct runtime principal and its bindings unaddressed.