Question 230
A group of VMs share an application identity and need the same network enforcement without maintaining network-tag lists. Which target type fits?
- Use firewall target service accounts
- Use VPC Flow Logs
- Use VPC firewall ingress allow
- Use firewall priority evaluation
Explanation
Correct Answer
A:VPC firewall rules can use supported service-account selectors to identify target VM interfaces; that behavior is precisely what applying network rules to VM service account targets calls for.
Incorrect Answers
B:VPC Flow Logs records sampled network flow information for eligible subnet traffic; Applying it would target observing subnet network flow patterns, leaving the separate need for applying network rules to VM service account targets.
C:This alternative focuses on opening a targeted inbound network flow; Ingress allow rules permit matching incoming connections to specified targets subject to higher-priority policies; the stem instead asks for applying network rules to VM service account targets.
D:Firewall policy priority and evaluation hierarchy determine which matching action takes effect; this is a distinct control for resolving precedence between overlapping firewall rules, rather than applying network rules to VM service account targets.
Question 231
A Firestore database requires automatic daily recovery copies after accidental application-level deletion. Which native database protection should an operator configure?
- Check Cloud SQL connection limits
- Use Cloud SQL Enterprise Plus index advisor
- Use Firestore scheduled backups
- Use Cloud SQL export to Cloud Storage
Explanation
Correct Answer
C:Firestore scheduled backups support daily or weekly database snapshots and restoration to a new database while retaining configurable backup copies; for the stated workload, the practical result is creating scheduled recovery snapshots for Firestore.
Incorrect Answers
A:Cloud SQL and underlying database engines have connection capacity considerations requiring pooling and appropriate instance sizing; that solves problems involving diagnosing exhaustion of database connections, rather than the creating scheduled recovery snapshots for Firestore requirement.
B:Cloud SQL index advisor generates index recommendations on supported Enterprise Plus instances with the required Query Insights features enabled; that mechanism handles finding query-driven index creation recommendations; it does not configure creating scheduled recovery snapshots for Firestore.
D:For producing database export files for migration, this could be relevant; Cloud SQL export writes supported database export formats to authorized Cloud Storage destinations; the actual request concerns creating scheduled recovery snapshots for Firestore.
Question 232
Private VMs lose Internet access after their public addresses are removed. Which outbound service should network engineers configure?
- Inspect Cloud NAT logs
- Configure Cloud NAT egress for a subnet
- Use Connectivity Tests
- Reserve a static external address
Explanation
Correct Answer
B:Cloud NAT provides managed outbound NAT through a Cloud Router configuration for eligible VPC resources; that behavior is precisely what providing outbound connectivity for private instances calls for.
Incorrect Answers
A:This alternative focuses on diagnosing NAT translation behavior; Cloud NAT logging records supported NAT translation and error information for troubleshooting; the stem instead asks for providing outbound connectivity for private instances.
C:Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; this is a distinct control for analyzing possible network paths and blockers, rather than providing outbound connectivity for private instances.
D:Static external IP reservations avoid losing an address when ephemeral assignment would otherwise change; its purpose differs: holding a long-lived public IP allocation is separate from providing outbound connectivity for private instances.
Question 233
An on-call engineer wants conversational assistance interpreting cloud monitoring signals and troubleshooting resources. Which tool is relevant?
- Use Gemini Cloud Assist in Monitoring
- Use Cloud Audit Logs Data Access
- Use Active Assist recommendations
- Use Personalized Service Health
Explanation
Correct Answer
A:Gemini Cloud Assist offers supported contextual assistance for Google Cloud operations including observability workflows; that matches the requirement for using AI guidance to explore monitoring issues.
Incorrect Answers
B:Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; that supports observing data access operations to cloud resources; the problem to solve concerns using AI guidance to explore monitoring issues.
C:Active Assist produces eligible recommendations and insights about efficiency, reliability, security and cost; that supports identifying resource optimization opportunities; the problem to solve concerns using AI guidance to explore monitoring issues.
D:For correlating product disruptions with cloud environments, this could be relevant; Personalized Service Health surfaces supported provider events relevant to particular resources and projects; the actual request concerns using AI guidance to explore monitoring issues.
Question 234
An analyst wants BigQuery tools to query log data stored in an eligible analytics-enabled log bucket. What integration is suitable?
- Configure Cloud Monitoring custom metrics
- Use Monitoring uptime checks
- Use log-based distribution metric
- Use linked BigQuery datasets for logs
Explanation
Correct Answer
D:Linked BigQuery datasets can provide query access to supported Log Analytics bucket data; this is the capability needed for analyzing log bucket content from BigQuery.
Incorrect Answers
A:This alternative focuses on tracking application-specific numeric signals; Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; the stem instead asks for analyzing log bucket content from BigQuery.
B:Uptime checks send periodic protocol requests to supported endpoints and produce availability metrics; it is relevant when testing external service responsiveness automatically, not when the primary need is analyzing log bucket content from BigQuery.
C:Distribution log-based metrics extract numerical values from log entries to record value distributions; the scenario specifies analyzing log bucket content from BigQuery, which differs from extracting numeric distributions from log fields.
Question 235
A container currently ships a static JSON private key but now runs on supported Google Cloud compute. What credential strategy should replace it?
- Use service account authentication without downloaded keys
- Attach a service account to a VM
- Attach a service account to Cloud Run
- Use service account organization policy enforcement
Explanation
Correct Answer
A:Attached service accounts and the platform metadata service supply refreshed short-lived credentials to supported workloads; for the stated workload, the practical result is using default platform-supplied tokens.
Incorrect Answers
B:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; it is relevant when assigning workload identity to a compute instance, not when the primary need is using default platform-supplied tokens.
C:Cloud Run services use configured runtime service accounts for Google Cloud API calls; that supports running the container as a selected service account; the problem to solve concerns using default platform-supplied tokens.
D:This alternative focuses on enforcing cloud-wide service-account credential restrictions; Organization policy constraints can restrict supported service-account key operations across hierarchy scopes; the stem instead asks for using default platform-supplied tokens.
Question 236
A new employee has a valid Google identity but gcloud reports no active credential. Which interactive setup action is appropriate?
- Use gcloud auth application-default login
- Set gcloud's active project
- Authenticate with gcloud auth login
- Enable a service API for the project
Explanation
Correct Answer
C:The requirement is establishing user credentials for the Cloud SDK; Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions.
Incorrect Answers
A:Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; the supported outcome is making local ADC credentials available to libraries, while the requested result is establishing user credentials for the Cloud SDK.
B:The active gcloud core/project property determines the default project for commands that honor it; that solves problems involving setting the default gcloud project context, rather than the establishing user credentials for the Cloud SDK requirement.
D:Service Usage controls API enablement for each project; authorization and billing are separate requirements; Applying it would target activating the needed project API, leaving the separate need for establishing user credentials for the Cloud SDK.
Question 237
A folder administrator changed a policy but a child project still rejects a configuration. What should be reviewed first?
- Inspect the effective organization policy
- Use a custom organization policy constraint
- Use Resource Manager tags
- Use the organization resource
Explanation
Correct Answer
A:The scenario depends on diagnosing the policy state inherited by a child project; Effective organization policies reflect applicable ancestors and overrides; an IAM role cannot bypass a conflicting constraint.
Incorrect Answers
B:Custom organization policy constraints let administrators express supported resource rules using condition expressions; Applying it would target expressing a supported resource-attribute restriction, leaving the separate need for diagnosing the policy state inherited by a child project.
C:Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels; it is not the focused action for diagnosing the policy state inherited by a child project; its primary use is attaching policy-aware governed metadata to resources.
D:The organization node is the top governance resource associated with the company's identity domain; this is a distinct control for establishing an organization-wide resource ancestor, rather than diagnosing the policy state inherited by a child project.
Question 238
A global external Application Load Balancer already terminates HTTPS. Requests to /checkout should reach payment backends, while /images should reach image backends on the same hostname. Which configuration expresses this path routing?
- Path matching rules in the load balancer URL map
- An outbound VPC firewall deny rule
- Cloud Router custom route advertisements
- One shared Kubernetes ConfigMap for both applications
Explanation
Correct Answer
A:A URL map selects backend services from host and path matching rules. The existing layer-7 load balancer can therefore direct /checkout and /images to separate backend services.
Incorrect Answers
B:Egress firewall rules control network traffic initiation from targets; they do not inspect incoming HTTPS URL paths or select application backends.
C:Cloud Router exchanges IP routing information with network peers and cannot use HTTP URI paths to choose distinct layer-7 backend services.
D:A ConfigMap holds non-secret Kubernetes configuration data. It is not the URL routing policy of an existing Google Cloud external Application Load Balancer.
Question 239
A Cloud Run deployment fails when specifying a custom runtime account even though service creation is permitted. What separate service-account permission should be checked?
- Rotate compromised service account key
- Attach a service account to a VM
- Disable unused service account
- Grant service account user role for attachment
Explanation
Correct Answer
D:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; that matches the requirement for granting actAs rights for a target service account.
Incorrect Answers
A:Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; it is relevant when revoking a compromised service-account key, not when the primary need is granting actAs rights for a target service account.
B:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; it is relevant when assigning workload identity to a compute instance, not when the primary need is granting actAs rights for a target service account.
C:Disabling a service account blocks its use without immediately deleting the identity and associated metadata; the decision here is about granting actAs rights for a target service account, not disabling an unneeded service account.
Question 240
A team has an HTTP container and wants request-based autoscaling without administering nodes. What should host it?
- Use batch jobs on Google Cloud Batch
- Use Cloud Run jobs
- Choose Cloud Run services
- Choose GKE Standard
Explanation
Correct Answer
C:Cloud Run hosts container services with managed request routing and configurable instance scaling; this is relevant because the outcome sought is serving HTTP traffic on managed serverless containers.
Incorrect Answers
A:Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; the decision here is about serving HTTP traffic on managed serverless containers, not orchestrating finite parallel batch jobs.
B:Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; that applies to running task-oriented serverless containers; the requested task is serving HTTP traffic on managed serverless containers.
D:GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; it would help with administering GKE infrastructure settings directly, but it does not directly implement serving HTTP traffic on managed serverless containers.