Google Associate Cloud Engineer Practice Test 43
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.
Question 421
A machine's serial console logs show that cloud-init failed before system packages were installed, yet the network team only changes firewall rules. What should the responder inspect?
- Review guest boot and cloud-init startup diagnostics and correct the failing initialization command or dependencies.
- 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.
- Move the VM to a different billing account and assume its scheduling and storage behavior changes.
Explanation
Correct Answer
A:Guest initialization errors can prevent application startup even when VPC connectivity is correct.
Incorrect Answers
B:The proposed setting does not correct the stated machine, disk or scheduling requirement. The case instead depends on the VM guest initialization failure.
C:The proposed setting does not correct the stated machine, disk or scheduling requirement. It leaves the VM guest initialization failure unaddressed.
D:Billing changes payment responsibility, not the technical behavior of this workload. The specific requirement concerns the VM guest initialization failure.
Question 422
A VM's health monitoring misses a nearly full root filesystem because only infrastructure CPU and memory metrics are collected. What should be enabled?
- Select a supported confidential-VM machine family and region and verify the guest feature remains enabled after migration.
- Install and configure guest-level metrics collection for filesystem capacity and alert on root-volume usage with appropriate scope.
- Change the instance display name as a replacement for modifying the actual machine or disk.
- Restart the instance repeatedly while leaving the underlying error or missing dependency in place.
Explanation
Correct Answer
B:Hypervisor metrics do not necessarily include guest filesystem fullness; the guest agent must surface those signals.
Incorrect Answers
A:Placement changes do not automatically implement the required resource-level feature. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Install and configure guest-level metrics collection for filesystem capacity and alert on root-volume usage with appropriate scope.
C: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: Install and configure guest-level metrics collection for filesystem capacity and alert on root-volume usage with appropriate scope.
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: Install and configure guest-level metrics collection for filesystem capacity and alert on root-volume usage with appropriate scope.
Question 423
A remote administrative team uses a local administrator password embedded in an instance template to manage Windows VMs. What is the safer ongoing access design?
- Create a new reviewed instance template with the intended attached service account and roll it out to the managed instance group.
- 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.
- Adopt approved identity-integrated administrative access and controlled credential handling rather than templating reusable passwords.
Explanation
Correct Answer
D:Secrets embedded into reusable templates can propagate to every VM and survive into image histories and automated deployments.
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: Adopt approved identity-integrated administrative access and controlled credential handling rather than templating reusable passwords.
B: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: Adopt approved identity-integrated administrative access and controlled credential handling rather than templating reusable passwords.
C:Snapshots are recovery artifacts and do not directly reconfigure a running resource. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Adopt approved identity-integrated administrative access and controlled credential handling rather than templating reusable passwords.
Question 424
A workstation team wants disposable development VMs from a common image, but their existing project IAM lets every developer mutate production images. What access split is needed?
- 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.
- Move the VM to a different billing account and assume its scheduling and storage behavior changes.
- Provide a separate governed development image family or project with image-use permissions, while restricting write access to production images.
Explanation
Correct Answer
D:Image consumption and image administration are distinct IAM decisions; broad editing rights are not required to boot from a vetted base image.
Incorrect Answers
A:Network settings and service or application controls must be distinguished. The necessary distinction is the actual compute scheduling or resource condition.
B:More CPU quota affects capacity, not the API or policy decision described. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Provide a separate governed development image family or project with image-use permissions, while restricting write access to production images.
C:Billing changes payment responsibility, not the technical behavior of this workload. It leaves the actual compute scheduling or resource condition unaddressed.
Question 425
A stopped instance incurs storage charges and a team assumes all billing ends when the VM is stopped. What should an operator explain?
- Plan a maintenance window, stop the instance when required, change to an eligible machine type, and restart with health validation.
- Restart the instance repeatedly while leaving the underlying error or missing dependency in place.
- Identify retained disks, static addresses and other still-allocated resources and deallocate unneeded ones under policy.
- Create a snapshot only and assume it immediately changes the live VM capacity.
Explanation
Correct Answer
C:Stopping Compute Engine instances generally stops vCPU billing, not charges for attached persistent storage and certain reserved assets.
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: Identify retained disks, static addresses and other still-allocated resources and deallocate unneeded ones under policy.
B: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: Identify retained disks, static addresses and other still-allocated resources and deallocate unneeded ones under policy.
D:Snapshots are recovery artifacts and do not directly reconfigure a running resource. The specific requirement concerns the actual compute scheduling or resource condition.
Question 426
A remediation script applies an old image-family alias and silently rolls new VMs back to a vulnerable release. How should future deployments be pinned?
- Produce and validate a governed custom image or image family from the approved golden source with version control.
- 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.
- Choose the approved patched image version or governed family and enforce image-provenance tests before creating replacement instances.
Explanation
Correct Answer
D:Image family references can evolve and custom aliases can lag; deployments should verify the resolved image version against security policy.
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: Choose the approved patched image version or governed family and enforce image-provenance tests before creating replacement instances.
B:Project Owner broadens authorization and is not an appropriate substitute for the named control. The specific requirement concerns the actual compute scheduling or resource condition.
C:Display names and labels identify resources; they do not enforce their runtime behavior. The necessary distinction is the actual compute scheduling or resource condition. The appropriate action here is: Choose the approved patched image version or governed family and enforce image-provenance tests before creating replacement instances.
Question 427
An administrator needs to inspect a VM that has no SSH server access because of a guest firewall, but the serial console reveals a recoverable boot error. What access should be used?
- Use the supported serial console or recovery workflow under a scoped admin permission and repair the guest configuration without opening global SSH ingress.
- Review guest boot and cloud-init startup diagnostics and correct the failing initialization command or dependencies.
- Give the attached VM service account project Owner instead of fixing resource configuration.
- Restart the instance repeatedly while leaving the underlying error or missing dependency in place.
Explanation
Correct Answer
A:The serial console provides an alternative troubleshooting channel when network-based SSH is broken; globally opening SSH does not fix a guest boot defect.
Incorrect Answers
B:The proposed setting does not correct the stated machine, disk or scheduling requirement. The specific requirement concerns the intended ingress boundary.
C:Project Owner broadens authorization and is not an appropriate substitute for the named control. The necessary distinction is the intended ingress boundary. The appropriate action here is: Use the supported serial console or recovery workflow under a scoped admin permission and repair the guest configuration without opening global SSH ingress.
D:The proposed setting does not correct the stated machine, disk or scheduling requirement. The case instead depends on the intended ingress boundary.
Question 428
An operator edits a VM instance metadata key to tune application behavior, but org policy blocks guest metadata reading under a privileged feature configuration. What should they validate?
- Use the supported serial console or recovery workflow under a scoped admin permission and repair the guest configuration without opening global SSH ingress.
- 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.
- Verify effective organization policy, instance metadata permissions and application configuration delivery before attempting unsupported metadata access workarounds.
Explanation
Correct Answer
D:Metadata server access is governed by instance environment and security policies; editing a key is not proof the intended guest can read it.
Incorrect Answers
A: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: Verify effective organization policy, instance metadata permissions and application configuration delivery before attempting unsupported metadata access workarounds.
B:Project Owner broadens authorization and is not an appropriate substitute for the named control. The case instead depends on the actual compute scheduling or resource condition.
C:Display names and labels identify resources; they do not enforce their runtime behavior. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Verify effective organization policy, instance metadata permissions and application configuration delivery before attempting unsupported metadata access workarounds.
Question 429
A zonal VM application is described as highly available because it has a persistent disk snapshot, but the VM itself has no replacement runbook. What is missing?
- Take an application-consistent supported snapshot or backup and verify recovery evidence before the controlled disk replacement.
- Move the VM to a different billing account and assume its scheduling and storage behavior changes.
- Increase the VM vCPU quota without changing the failed configuration or resource setting.
- Create and test instance recreation or managed failover procedures from approved images and data recovery points.
Explanation
Correct Answer
D:A disk snapshot can recover stored data but does not by itself provide service orchestration or guarantee compute recovery time.
Incorrect Answers
A:Snapshots are recovery artifacts and do not directly reconfigure a running resource. The case instead depends on the actual compute scheduling or resource condition. The appropriate action here is: Create and test instance recreation or managed failover procedures from approved images and data recovery points.
B:Billing changes payment responsibility, not the technical behavior of this workload. It leaves the actual compute scheduling or resource condition unaddressed. The appropriate action here is: Create and test instance recreation or managed failover procedures from approved images and data recovery points.
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: Create and test instance recreation or managed failover procedures from approved images and data recovery points.
Question 430
A production Kubernetes Deployment exists in namespace payments, but kubectl get deployments shows no results because the operator's current namespace is development. How should the operator locate the workload before editing it?
- Delete the development namespace so kubectl automatically switches to whichever cluster is production.
- Change the Cloud Billing account of the cluster; the billing account controls kubectl namespace visibility.
- Verify the kubectl cluster context and specify the payments namespace explicitly when listing or modifying the Deployment.
- Increase node pool size; all workloads become visible in the default namespace once additional nodes join.
Explanation
Correct Answer
C:Verify the kubectl cluster context and specify the payments namespace explicitly when listing or modifying the Deployment. Kubernetes resources can be namespaced. Explicit context and namespace avoid acting on the wrong environment or mistaking an empty list for a missing workload.
Incorrect Answers
A:Delete the development namespace so kubectl automatically switches to whichever cluster is production. Deleting an unrelated namespace is destructive and does not guarantee the intended Kubernetes context or scope is selected.
B:Change the Cloud Billing account of the cluster; the billing account controls kubectl namespace visibility. Billing linkage does not change which namespace a kubectl command queries or which cluster context is active.
D:Increase node pool size; all workloads become visible in the default namespace once additional nodes join. Adding nodes addresses capacity. It does not relocate a Deployment from payments into the default namespace or change the query scope.