Question 340
A resource was changed manually and the team wants to compare reality to its declarative configuration. Which solution should be used?
- Use Gemini Cloud Assist and verify the generated guidance
- Run terraform plan against the selected configuration and state
- Run terraform apply with the reviewed configuration or plan
- Configure a supported remote state backend such as a secured Cloud Storage bucket
- Refresh and review Terraform plan results before reconciling
Explanation
Correct Answer
E:Infrastructure drift appears when observed cloud resources differ from desired configuration or tracked state. Reconciliation should be reviewed rather than blindly overwriting the manual change.
Incorrect Answers
A:An operator would use this action to generate contextual cloud configuration assistance, chiefly when trying to investigate a deployment configuration with AI help; The current requirement is to compare manual changes with IaC definitions, which remains unresolved by that operation.
B:This mechanism is intended to preview declarative infrastructure changes. It does not implement the required action to compare manual changes with IaC definitions, even though both are relevant to the same general service.
C:Select this when the goal is to enact Terraform configuration changes. Here the decisive requirement is to compare manual changes with IaC definitions, and that outcome is not achieved by this action.
D:The result of this choice would be to share and protect Terraform state. The requested outcome, to compare manual changes with IaC definitions, is handled at a different layer or through another operation.
Question 341
A cluster team needs to install an application with repeatable versioned chart values. What is the best next step?
- Use Config Connector custom resources with the proper controller and permissions
- Deploy a Helm release with reviewed values
- Use helm rollback for the relevant release revision
- Use kubectl apply with declarative manifests
Explanation
Correct Answer
B:Helm supports parameterized releases and chart versions. This differs from a single unversioned raw manifest application.
Incorrect Answers
A:This setting would reconcile cloud resources from KRM objects. That behavior does not establish the requested ability to release versioned Kubernetes applications; it addresses an adjacent concern instead.
C:This choice is useful to restore a prior Helm release. The stated task is to release versioned Kubernetes applications, which requires a different mechanism or permission scope.
D:Using this action would apply raw Kubernetes manifests, not release versioned Kubernetes applications. Its function is different from the specific change described in the scenario.
Question 342
An operator needs to roll back to a previous Helm release revision after a failed upgrade. Which configuration best meets the requirement?
- Use Helm charts and releases
- Use Config Connector custom resources with the proper controller and permissions
- Use helm rollback for the relevant release revision
- Use kubectl apply with declarative manifests
- Deploy a Helm release with reviewed values
Explanation
Correct Answer
C:Helm retains release history for rollback operations. Rollback restores chart-managed Kubernetes state subject to workloads and persistent data handling.
Incorrect Answers
A:This proposal can template and release Kubernetes applications, but the failure or goal described here calls for a way to recover from a problematic chart upgrade; It changes the wrong control or scope for the requested outcome.
B:While this can reconcile cloud resources from KRM objects, the present task requires an action to recover from a problematic chart upgrade. This operation does not supply the behavior described in the requirements.
D:The result of this choice would be to apply raw Kubernetes manifests. The requested outcome, to recover from a problematic chart upgrade, is handled at a different layer or through another operation.
E:Its purpose is to install repeatable chart releases. That distinction matters: the scenario calls for an action to recover from a problematic chart upgrade, not this separate configuration task.
Question 343
A developer wants raw Kubernetes resource YAML applied without package templating. What should be configured?
- Use helm rollback for the relevant release revision
- Run terraform apply with the reviewed configuration or plan
- Use kubectl apply with declarative manifests
- Deploy a Helm release with reviewed values
- Use Config Connector custom resources with the proper controller and permissions
Explanation
Correct Answer
C:kubectl apply submits desired resources directly to the Kubernetes API. It does not provide Helm chart lifecycle management.
Incorrect Answers
A:The tool can restore a prior Helm release, but it cannot be substituted for the capability needed to deploy a small set of Kubernetes objects. Its operational effect is not equivalent.
B:An operator would use this action to enact Terraform configuration changes, chiefly when trying to apply a reviewed infrastructure deployment; The current requirement is to deploy a small set of Kubernetes objects, which remains unresolved by that operation.
D:Select this when the goal is to install repeatable chart releases. Here the decisive requirement is to deploy a small set of Kubernetes objects, and that outcome is not achieved by this action.
E:It can reconcile cloud resources from KRM objects; however, it does not provide the specific operation to deploy a small set of Kubernetes objects. The two controls serve different purposes.
Question 344
A deployment script runs in several GKE clusters. It must install a Helm-managed application the first time and update the same named release on subsequent runs without separate branching logic. Which Helm operation meets that requirement?
- Run helm upgrade --install with the target release, chart, namespace and reviewed values
- Create Config Connector custom resources for the application chart
- Run kubectl delete namespace before invoking helm install
- Run helm rollback to revision zero before every deployment
Explanation
Correct Answer
A:The --install flag tells helm upgrade to install a release when it does not already exist, and to upgrade it when it does. This supports the same deployment path in first-run and repeat-run cases.
Incorrect Answers
B:Config Connector manages supported Google Cloud resources through Kubernetes-style resources. It does not replace Helm's install-or-upgrade release operation.
C:Deleting a namespace destroys unrelated namespaced resources and still does not safely upgrade an existing named release.
D:Rollback returns an existing release to a recorded revision; it is not an idempotent install-or-upgrade operation and does not install an absent release.
Question 345
An administrator needs AI-assisted help interpreting a Google Cloud configuration issue within a supported cloud console workflow. Which method addresses the task?
- Evaluate Gemini CLI under approved access policies
- Evaluate Google Antigravity within approved organization policies
- Use Gemini Cloud Assist and verify the generated guidance
- Evaluate Application Design Center for supported design and deployment workflows
Explanation
Correct Answer
C:Gemini Cloud Assist supplies contextual cloud assistance where enabled. Execution still follows IAM and organization policies, and proposed changes require review.
Incorrect Answers
A:This mechanism is intended to use an AI-enabled terminal coding assistant. It does not implement the required action to investigate a deployment configuration with AI help, even though both are relevant to the same general service.
B:Select this when the goal is to assist development within an agentic IDE. Here the decisive requirement is to investigate a deployment configuration with AI help, and that outcome is not achieved by this action.
D:The result of this choice would be to plan cloud application designs visually. The requested outcome, to investigate a deployment configuration with AI help, is handled at a different layer or through another operation.
Question 346
A developer wants AI-supported commands and coding assistance from a terminal workflow. What is the best next step?
- Run terraform plan against the selected configuration and state
- Use Gemini Cloud Assist and verify the generated guidance
- Evaluate Application Design Center for supported design and deployment workflows
- Evaluate Google Antigravity within approved organization policies
- Evaluate Gemini CLI under approved access policies
Explanation
Correct Answer
E:Gemini CLI provides an AI-assisted command-line development experience. It is not a substitute for the permissions needed by commands that change Google Cloud resources.
Incorrect Answers
A:An operator would use this action to preview declarative infrastructure changes, chiefly when trying to review an infrastructure change set; The current requirement is to assist development from a CLI context, which remains unresolved by that operation.
B:Using this action would generate contextual cloud configuration assistance, not assist development from a CLI context. Its function is different from the specific change described in the scenario.
C:This approach can plan cloud application designs visually. The requirement is to assist development from a CLI context, so it controls a different part of the workflow and leaves that result unaddressed.
D:This choice is useful to assist development within an agentic IDE. The stated task is to assist development from a CLI context, which requires a different mechanism or permission scope.
Question 347
A team needs a supported visual design workflow for application infrastructure planning. Which configuration best meets the requirement?
- Use Config Connector custom resources with the proper controller and permissions
- Use Gemini Cloud Assist and verify the generated guidance
- Evaluate Google Antigravity within approved organization policies
- Evaluate Application Design Center for supported design and deployment workflows
- Evaluate Gemini CLI under approved access policies
Explanation
Correct Answer
D:Application Design Center helps model application designs through its supported interfaces. Designs still need valid resource choices and authorization before deployment.
Incorrect Answers
A:For the stated need to prepare a structured application architecture, this would instead reconcile cloud resources from KRM objects; it supports the separate task to provision infrastructure via Kubernetes configuration, not the required configuration.
B:The result of this choice would be to generate contextual cloud configuration assistance. The requested outcome, to prepare a structured application architecture, is handled at a different layer or through another operation.
C:While this can assist development within an agentic IDE, the present task requires an action to prepare a structured application architecture. This operation does not supply the behavior described in the requirements.
E:This mechanism is intended to use an AI-enabled terminal coding assistant. It does not implement the required action to prepare a structured application architecture, even though both are relevant to the same general service.
Question 348
A developer is trying an AI-native software-building environment with agents and IDE workflows. What should be configured?
- Evaluate Google Antigravity within approved organization policies
- Use Terraform with an appropriate Google provider and remote state strategy
- Evaluate Application Design Center for supported design and deployment workflows
- Use Gemini Cloud Assist and verify the generated guidance
- Evaluate Gemini CLI under approved access policies
Explanation
Correct Answer
A:Google Antigravity is an AI-oriented development environment. Generated code and deployment actions need normal review, testing, and IAM authorization.
Incorrect Answers
B:This setting would provision Google Cloud resources through Terraform state. That behavior does not establish the requested ability to develop cloud-oriented code in an AI-native workspace; it addresses an adjacent concern instead.
C:It can plan cloud application designs visually; however, it does not provide the specific operation to develop cloud-oriented code in an AI-native workspace. The two controls serve different purposes.
D:The tool can generate contextual cloud configuration assistance, but it cannot be substituted for the capability needed to develop cloud-oriented code in an AI-native workspace. Its operational effect is not equivalent.
E:Using this action would use an AI-enabled terminal coding assistant, not develop cloud-oriented code in an AI-native workspace. Its function is different from the specific change described in the scenario.
Question 349
A Linux administrator must open a secure SSH session to a Compute Engine VM that has an external address and permits SSH. Which approach should be selected?
- Use an RDP client with an authorized route and Windows credentials
- Inspect OS Login role grants and applicable instance metadata
- Use gcloud compute ssh over a direct reachable address with appropriate access
- Use IAP TCP forwarding with the necessary tunnel access permissions
Explanation
Correct Answer
C:gcloud compute ssh helps establish direct SSH to a reachable VM when network and IAM prerequisites are satisfied. Private instances without direct reachability require a tunnel, VPN, or other valid private connection.
Incorrect Answers
A:This approach can open a Windows remote desktop session. The requirement is to connect directly to a reachable Linux instance, so it controls a different part of the workflow and leaves that result unaddressed.
B:Its purpose is to troubleshoot IAM-based guest login. That distinction matters: the scenario calls for an action to connect directly to a reachable Linux instance, not this separate configuration task.
D:Administrators use it to tunnel authorized SSH to a private VM, rather than to connect directly to a reachable Linux instance. Applying it would change the wrong component of this deployment.
Question 350
A private VM has no external IP and its administrator needs authenticated SSH without exposing port 22 publicly. Which method addresses the task?
- Use an RDP client with an authorized route and Windows credentials
- Inspect OS Login role grants and applicable instance metadata
- Use IAP TCP forwarding with the necessary tunnel access permissions
- Run gcloud compute instances describe in its zone
- Use gcloud compute ssh over a direct reachable address with appropriate access
Explanation
Correct Answer
C:Identity-Aware Proxy TCP forwarding can provide access to private instances when firewall and IAM prerequisites are met. It avoids assigning a public VM address for administration.
Incorrect Answers
A:Select this when the goal is to open a Windows remote desktop session. Here the decisive requirement is to connect privately through IAP, and that outcome is not achieved by this action.
B:This mechanism is intended to troubleshoot IAM-based guest login. It does not implement the required action to connect privately through IAP, even though both are relevant to the same general service.
D:For the stated need to connect privately through IAP, this would instead retrieve full VM resource configuration; it supports the separate task to inspect one instance's properties, not the required configuration.
E:It can start a direct CLI SSH session to a VM; however, it does not provide the specific operation to connect privately through IAP. The two controls serve different purposes.