Question 70
The operations team must watch resources across multiple projects in a single Monitoring view. Which choice provides the required behavior?
- Write a custom metric through the supported Cloud Monitoring integration
- Install and configure the Ops Agent on supported VM guests
- Configure an appropriate metrics scope for the scoping project
- Use Cloud Monitoring dashboards or service telemetry appropriate to the workload
Explanation
Correct Answer
C:Metrics scopes determine which projects' metrics appear in a Monitoring workspace context. They do not merge project IAM or billing accounts.
Incorrect Answers
A:Using this action would ingest application-defined metrics, not build cross-project operational charts. Its function is different from the specific change described in the scenario.
B:This choice is useful to collect in-guest VM telemetry. The stated task is to build cross-project operational charts, which requires a different mechanism or permission scope.
D:This approach can view runtime service telemetry. The requirement is to build cross-project operational charts, so it controls a different part of the workflow and leaves that result unaddressed.
Question 71
A project needs infrastructure-level guest metrics such as memory consumption from Compute Engine Linux VMs. Which approach should be selected?
- Configure an appropriate metrics scope for the scoping project
- Install and configure the Ops Agent on supported VM guests
- Write a custom metric through the supported Cloud Monitoring integration
- Configure the appropriate Google Cloud Observability integrations
- Use Cloud Monitoring dashboards or service telemetry appropriate to the workload
Explanation
Correct Answer
B:The Ops Agent collects additional guest telemetry such as memory and process information. Hypervisor-level metrics alone do not supply every guest OS measurement.
Incorrect Answers
A:This mechanism is intended to include multiple projects in one metric-viewing scope. It does not implement the required action to observe operating-system metrics beyond platform defaults, even though both are relevant to the same general service.
C:Administrators use it to ingest application-defined metrics, rather than to observe operating-system metrics beyond platform defaults. Applying it would change the wrong component of this deployment.
D:This alternative addresses observability onboarding by allowing a team to integrate multiple observability signal types; The incident, however, requires the different action to observe operating-system metrics beyond platform defaults, so its central configuration remains unchanged.
E:The result of this choice would be to view runtime service telemetry. The requested outcome, to observe operating-system metrics beyond platform defaults, is handled at a different layer or through another operation.
Question 72
An administrator needs an operational view of service errors and latency rather than a resource inventory list. Which method addresses the task?
- Configure an appropriate metrics scope for the scoping project
- Configure an appropriate aggregated sink at the organization or folder when supported
- Install and configure the Ops Agent on supported VM guests
- Write a custom metric through the supported Cloud Monitoring integration
- Use Cloud Monitoring dashboards or service telemetry appropriate to the workload
Explanation
Correct Answer
E:Performance and reliability analysis rely on measured time-series data. Resource inventories answer existence and configuration questions rather than latency changes.
Incorrect Answers
A:Using this action would include multiple projects in one metric-viewing scope, not track application performance over time. Its function is different from the specific change described in the scenario.
B:The technical effect is to route descendant logs from a hierarchy scope, not to track application performance over time; That distinction matters here because the first operation serves centralize log collection for future projects, rather than the scenario's required result.
C:It can collect in-guest VM telemetry; however, it does not provide the specific operation to track application performance over time. The two controls serve different purposes.
D:This choice is useful to ingest application-defined metrics. The stated task is to track application performance over time, which requires a different mechanism or permission scope.
Question 73
A technician wants a terminal with gcloud preinstalled and authenticated to the console session. Which implementation matches this requirement?
- Supply the command's --project flag or supported project argument
- Create and activate distinct named gcloud configurations
- Set the active gcloud configuration's core/project property
- Open Cloud Shell
Explanation
Correct Answer
D:Cloud Shell provides a managed interactive environment with Google Cloud CLI tooling ready to use. It is intended for administration and development, not production compute hosting.
Incorrect Answers
A:While this can override the CLI default project per command, the present task requires an action to run gcloud without installing local tools. This operation does not supply the behavior described in the requirements.
B:Its purpose is to use separate named CLI configurations. That distinction matters: the scenario calls for an action to run gcloud without installing local tools, not this separate configuration task.
C:Administrators use it to set a default CLI project context, rather than to run gcloud without installing local tools. Applying it would change the wrong component of this deployment.
Question 74
A developer already has gcloud locally but needs to select which project commands operate on by default. What should the administrator do?
- Run gcloud auth login through the supported interactive flow
- Set the active gcloud configuration's core/project property
- Create and activate distinct named gcloud configurations
- Supply the command's --project flag or supported project argument
- Open Cloud Shell
Explanation
Correct Answer
B:The default project property supplies a project when commands omit an explicit project flag. A command-level project override can still take precedence.
Incorrect Answers
A:This alternative addresses authentication configuration for tooling by allowing a team to authenticate gcloud as a user; The incident, however, requires the different action to target the intended project for subsequent commands, so its central configuration remains unchanged.
C:The tool can use separate named CLI configurations, but it cannot be substituted for the capability needed to target the intended project for subsequent commands. Its operational effect is not equivalent.
D:Select this when the goal is to override the CLI default project per command. Here the decisive requirement is to target the intended project for subsequent commands, and that outcome is not achieved by this action.
E:It can use an available cloud administration shell; however, it does not provide the specific operation to target the intended project for subsequent commands. The two controls serve different purposes.
Question 75
An engineer needs to switch between two sets of gcloud properties without rewriting each value. Which choice provides the required behavior?
- Set the active gcloud configuration's core/project property
- Run gcloud auth application-default login for local development
- Open Cloud Shell
- Supply the command's --project flag or supported project argument
- Create and activate distinct named gcloud configurations
Explanation
Correct Answer
E:Named configurations store CLI properties separately. They help prevent commands intended for one environment from accidentally using another configuration.
Incorrect Answers
A:This approach can set a default CLI project context. The requirement is to switch command contexts without manual reentry, so it controls a different part of the workflow and leaves that result unaddressed.
B:The technical effect is to initialize local application default credentials, not to switch command contexts without manual reentry; That distinction matters here because the first operation serves authorize local client library calls, rather than the scenario's required result.
C:Using this action would use an available cloud administration shell, not switch command contexts without manual reentry. Its function is different from the specific change described in the scenario.
D:Its purpose is to override the CLI default project per command. That distinction matters: the scenario calls for an action to switch command contexts without manual reentry, not this separate configuration task.
Question 76
A service script must explicitly target a project regardless of the operator's active gcloud configuration. Which approach should be selected?
- Set the active gcloud configuration's core/project property
- Create and activate distinct named gcloud configurations
- Attach an appropriate service identity and use its metadata-provided credentials
- Open Cloud Shell
- Supply the command's --project flag or supported project argument
Explanation
Correct Answer
E:An explicit project argument identifies the resource scope for that operation. It avoids reliance on a mutable local default.
Incorrect Answers
A:Select this when the goal is to set a default CLI project context. Here the decisive requirement is to make a script's project target explicit, and that outcome is not achieved by this action.
B:Administrators use it to use separate named CLI configurations, rather than to make a script's project target explicit. Applying it would change the wrong component of this deployment.
C:Choosing this would use attached workload credentials, an appropriate action for authentication configuration for tooling operations; It cannot take the place of the separate step needed to make a script's project target explicit in this specific situation.
D:The result of this choice would be to use an available cloud administration shell. The requested outcome, to make a script's project target explicit, is handled at a different layer or through another operation.
Question 77
A human administrator needs to authenticate the local gcloud CLI with their user account. What is the most direct solution?
- Run gcloud auth login through the supported interactive flow
- Attach an appropriate service identity and use its metadata-provided credentials
- Set the active gcloud account or use an explicit --account flag
- Run gcloud auth application-default login for local development
Explanation
Correct Answer
A:The CLI stores credentials for the selected account for administrative commands. This is distinct from Application Default Credentials used by many client libraries.
Incorrect Answers
B:Using this action would use attached workload credentials, not establish CLI identity for interactive administration. Its function is different from the specific change described in the scenario.
C:This choice is useful to select the active CLI credential identity. The stated task is to establish CLI identity for interactive administration, which requires a different mechanism or permission scope.
D:This setting would initialize local application default credentials. That behavior does not establish the requested ability to establish CLI identity for interactive administration; it addresses an adjacent concern instead.
Question 78
A developer's local Python Google Cloud client library needs user credentials without embedding keys. Which implementation matches this requirement?
- Create a folder under the organization and place the division's projects inside it
- Set the active gcloud account or use an explicit --account flag
- Attach an appropriate service identity and use its metadata-provided credentials
- Run gcloud auth login through the supported interactive flow
- Run gcloud auth application-default login for local development
Explanation
Correct Answer
E:Application Default Credentials are discovered by supported client libraries. The ADC credential store is not identical to the account used by every gcloud CLI command.
Incorrect Answers
A:This mechanism is intended to group child projects under a common policy boundary. It does not implement the required action to authorize local client library calls, even though both are relevant to the same general service.
B:The result of this choice would be to select the active CLI credential identity. The requested outcome, to authorize local client library calls, is handled at a different layer or through another operation.
C:Administrators use it to use attached workload credentials, rather than to authorize local client library calls. Applying it would change the wrong component of this deployment.
D:Its purpose is to authenticate gcloud as a user. That distinction matters: the scenario calls for an action to authorize local client library calls, not this separate configuration task.
Question 79
An operator has two authenticated Google identities and must select the one used by gcloud commands. What should the administrator do?
- Set the active gcloud account or use an explicit --account flag
- Run gcloud auth login through the supported interactive flow
- Run gcloud auth application-default login for local development
- Attach an appropriate service identity and use its metadata-provided credentials
- Create and activate distinct named gcloud configurations
Explanation
Correct Answer
A:The active account controls which credentials the CLI uses for supported commands. Selecting a project alone does not change the principal.
Incorrect Answers
B:Select this when the goal is to authenticate gcloud as a user. Here the decisive requirement is to choose between signed-in operator accounts, and that outcome is not achieved by this action.
C:It can initialize local application default credentials; however, it does not provide the specific operation to choose between signed-in operator accounts. The two controls serve different purposes.
D:The tool can use attached workload credentials, but it cannot be substituted for the capability needed to choose between signed-in operator accounts. Its operational effect is not equivalent.
E:Choosing this would use separate named CLI configurations, an appropriate action for gcloud environment and cli configuration operations; It cannot take the place of the separate step needed to choose between signed-in operator accounts in this specific situation.
Question 80
A script operates inside Google Cloud and should avoid downloading a long-lived service account JSON key. Which choice provides the required behavior?
- Supply the command's --project flag or supported project argument
- Attach an appropriate service identity and use its metadata-provided credentials
- Run gcloud auth login through the supported interactive flow
- Set the active gcloud account or use an explicit --account flag
- Run gcloud auth application-default login for local development
Explanation
Correct Answer
B:Google-managed runtime credentials let a workload obtain short-lived tokens. The workload still requires IAM roles on the destination resources.
Incorrect Answers
A:This proposal can override the CLI default project per command, but the failure or goal described here calls for a way to avoid static keys for in-cloud API calls; It changes the wrong control or scope for the requested outcome.
C:Its purpose is to authenticate gcloud as a user. That distinction matters: the scenario calls for an action to avoid static keys for in-cloud API calls, not this separate configuration task.
D:This setting would select the active CLI credential identity. That behavior does not establish the requested ability to avoid static keys for in-cloud API calls; it addresses an adjacent concern instead.
E:While this can initialize local application default credentials, the present task requires an action to avoid static keys for in-cloud API calls. This operation does not supply the behavior described in the requirements.