Question 170
An inventory query must span projects rather than operate within only one active project. Which search scope is appropriate?
- Use project creation permissions at ancestor
- Use organization-level Cloud Asset Inventory search
- Use Cloud Asset Inventory feed
- Use the organization resource
Explanation
Correct Answer
B:Cloud Asset Inventory searches can target supported ancestor scopes including organizations and folders; for the stated workload, the practical result is searching assets across a hierarchy ancestor.
Incorrect Answers
A:Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; it is relevant when authorizing new-project creation on the intended hierarchy parent, not when the primary need is searching assets across a hierarchy ancestor.
C:Asset feeds publish supported resource changes to Pub/Sub destinations based on a configured scope and content type; the supported outcome is streaming changes to cloud asset metadata, while the requested result is searching assets across a hierarchy ancestor.
D:The organization node is the top governance resource associated with the company's identity domain; the scenario specifies searching assets across a hierarchy ancestor, which differs from enforcing controls across the full resource hierarchy.
Question 171
An operations team needs centralized OS inventory and patch management for supported Compute Engine VMs. What service should it use?
- Use Shielded VM
- Configure VM Manager
- Use a zonal persistent disk
- Use an instance schedule
Explanation
Correct Answer
B:VM Manager provides OS inventory, patch and configuration capabilities for supported VM environments; for the stated workload, the practical result is managing fleet OS patches and inventory.
Incorrect Answers
A:Shielded VM provides capabilities such as Secure Boot, virtual TPM and integrity monitoring; its operational role is hardening virtual machine boot integrity; the needed capability is managing fleet OS patches and inventory.
C:Zonal Persistent Disk is persistent block storage tied to one zone and attachable to compatible VMs; that applies to attaching durable zonal block storage; the requested task is managing fleet OS patches and inventory.
D:Instance schedules can automate starts and stops for eligible Compute Engine VM instances; it concerns automating recurring VM operating hours, and its normal effect does not provide managing fleet OS patches and inventory.
Question 172
An organization has hundreds of runtime identities and needs to distinguish approved purposes during reviews. Which identity metadata should be maintained?
- Use service account organization policy enforcement
- Use service account authentication without downloaded keys
- Use service account description and display name
- Disable service account key creation by policy
- Use service account impersonation audit trail
Explanation
Correct Answer
C:What matters is documenting service-account ownership and purpose; Service accounts have descriptive metadata fields that support inventory and operational ownership reviews.
Incorrect Answers
A:Organization policy constraints can restrict supported service-account key operations across hierarchy scopes; it is relevant when enforcing cloud-wide service-account credential restrictions, not when the primary need is documenting service-account ownership and purpose.
B:The alternative would address using default platform-supplied tokens; Attached service accounts and the platform metadata service supply refreshed short-lived credentials to supported workloads; the question instead requires documenting service-account ownership and purpose.
D:This alternative focuses on enforcing a keyless service-account policy; Organization Policy Service includes supported constraints controlling user-managed service account key creation; the stem instead asks for documenting service-account ownership and purpose.
E:Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; that applies to auditing service-account token minting; the requested task is documenting service-account ownership and purpose.
Question 173
A policy should grant access only to supported resources bearing an approved governance tag. Which expression input fits?
- Use resource tags in IAM Conditions
- Use IAM policy troubleshooting
- Use IAM Recommender
- Use Principal Access Boundary policies
- Use custom role permissions support check
Explanation
Correct Answer
A:IAM Conditions can evaluate supported resource-manager tag relationships in compatible access decisions; this is the specific mechanism used for evaluating policy against resource tag values.
Incorrect Answers
B:Policy Troubleshooter evaluates supported permission checks against applicable policies and conditions; it would help with investigating why a request is allowed or denied, but it does not directly implement evaluating policy against resource tag values.
C:IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; that supports finding excessive IAM permissions; the problem to solve concerns evaluating policy against resource tag values.
D:Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; it is appropriate for bounding accessible resources independently of allow roles; here, the deciding requirement is evaluating policy against resource tag values.
E:Not all IAM permissions can be placed in custom roles, and support levels vary by permission; the scenario specifies evaluating policy against resource tag values, which differs from checking custom-role eligibility for IAM permissions.
Question 174
An endpoint finishes in several minutes but the Cloud Run request limit was set shorter. Which parameter addresses this?
- Update Cloud Run concurrency setting
- Update Cloud Run maximum instances setting
- Split Cloud Run revision traffic
- Configure Cloud Run request timeout
Explanation
Correct Answer
D:Cloud Run's request timeout bounds each service request and can be increased within supported limits; this is the capability needed for matching request deadline to processing time.
Incorrect Answers
A:Cloud Run container concurrency limits the configured simultaneous requests per instance and affects how the platform distributes load and creates instances; this governs adjusting per-instance request concurrency, whereas the stated objective is matching request deadline to processing time.
B:Cloud Run maximum instances configures an upper scaling limit while documented transient overages can occur and capacity limits are not a substitute for downstream protection; this governs limiting Cloud Run autoscaled instance count, whereas the stated objective is matching request deadline to processing time.
C:Cloud Run traffic allocation assigns configured percentages to eligible service revisions; it would help with testing a new revision against a small live traffic share, but it does not directly implement matching request deadline to processing time.
Question 175
A VM is correctly attached to its runtime service account but gets permission denied when reading a bucket. What is missing?
- Grant service account user role for attachment
- Disable unused service account
- Use service account impersonation with gcloud
- Grant target resource role to service account
Explanation
Correct Answer
D:Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; this is the capability needed for authorizing the account on the target resource.
Incorrect Answers
A:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; the decision here is about authorizing the account on the target resource, not authorizing workload identity attachment.
B:Disabling a service account blocks its use without immediately deleting the identity and associated metadata; it is relevant when disabling an unneeded service account, not when the primary need is authorizing the account on the target resource.
C:Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; that solves problems involving temporarily running a command under service-account identity, rather than the authorizing the account on the target resource requirement.
Question 176
An application requires public layer-4 distribution while preserving packet-level passthrough semantics to VM backends. Which balancer is appropriate?
- Choose global external Application Load Balancer
- Choose internal Application Load Balancer
- Choose external passthrough Network Load Balancer
- Reserve a static external IP
Explanation
Correct Answer
C:External passthrough Network Load Balancers distribute eligible TCP or UDP traffic to supported backends without terminating application protocols; this corresponds to balancing external TCP or UDP traffic without proxy termination, not a separate lifecycle action.
Incorrect Answers
A:Global external Application Load Balancers manage public HTTP(S) traffic using proxy-based layer-seven routing; it concerns routing global HTTPS traffic by application rules, and its normal effect does not provide balancing external TCP or UDP traffic without proxy termination.
B:The alternative would address balancing private HTTP(S) workloads; Internal Application Load Balancers proxy private HTTP(S) traffic to configured backends; the question instead requires balancing external TCP or UDP traffic without proxy termination.
D:A reserved static external IP remains allocated to its project until released, subject to attachment and scope; the supported outcome is avoiding ephemeral public IP changes, while the requested result is balancing external TCP or UDP traffic without proxy termination.
Question 177
A mobile application needs a managed document database with flexible fields and real-time application integration. Which product fits?
- Use Cloud SQL point-in-time recovery
- Use Firestore
- Use BigQuery
- Use Bigtable
Explanation
Correct Answer
B:The scenario depends on storing application documents without relational tables; Firestore stores documents in collections and supports indexed queries and application client integrations.
Incorrect Answers
A:Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time; it would help with recovering database state at a chosen time, but it does not directly implement storing application documents without relational tables.
C:BigQuery is a managed analytical data warehouse designed for scalable SQL workloads; this governs performing large-scale SQL analytics, whereas the stated objective is storing application documents without relational tables.
D:This alternative focuses on serving key-oriented analytical or operational data at scale; Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; the stem instead asks for storing application documents without relational tables.
Question 178
A compliance design specifies two particular supported regions for object storage location and redundancy. Which bucket location type fits?
- Choose Cloud Storage Archive
- Use dual-region Cloud Storage
- Choose Cloud Storage Coldline
- Configure Cloud Storage Autoclass
Explanation
Correct Answer
B:The requested administrative outcome is placing object data across a pair of regions; Dual-region buckets provide supported object placement and redundancy across two selected regions.
Incorrect Answers
A:Archive is the coldest Cloud Storage class with retrieval charges and minimum storage duration but online object availability; its purpose differs: storing long-term rarely retrieved objects is separate from placing object data across a pair of regions.
C:Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; the decision here is about placing object data across a pair of regions, not economically storing quarterly accessed data.
D:Autoclass automatically manages eligible object storage classes based on access patterns and policy rules; this governs adapting object class based on observed access, whereas the stated objective is placing object data across a pair of regions.
Question 179
A production service runs on Google Cloud and can obtain identity tokens from attached credentials. What credential practice reduces exposure?
- Use Application Default Credentials on Google Cloud
- Disable unused service account
- Grant service account token creator
- Use short-lived access tokens
- Avoid exporting service account keys
Explanation
Correct Answer
E:Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; Applied in this case, it delivers avoiding unnecessary long-lived private keys.
Incorrect Answers
A:Application Default Credentials allows libraries to discover the runtime's supported identity credentials; it is relevant when using platform-discovered workload credentials, not when the primary need is avoiding unnecessary long-lived private keys.
B:Disabling a service account blocks its use without immediately deleting the identity and associated metadata; it would help with disabling an unneeded service account, but it does not directly implement avoiding unnecessary long-lived private keys.
C:Service Account Token Creator enables supported token or signature operations for a target service account; the scenario specifies avoiding unnecessary long-lived private keys, which differs from delegating service-account token generation.
D:Short-lived OAuth access tokens restrict credential lifetime and can be generated using supported identity mechanisms; the supported outcome is using expiring workload authorization tokens, while the requested result is avoiding unnecessary long-lived private keys.
Question 180
A frontend must replace unhealthy instances automatically while keeping identical machine configurations. Which Compute Engine capability fits?
- Use VM reservation
- Configure an autoscaler for a MIG
- Choose a managed instance group
- Configure MIG autohealing
Explanation
Correct Answer
C:Managed instance groups create and maintain VM replicas using instance templates and optional autoscaling and autohealing; the decisive property here is maintaining desired replicas from a shared template.
Incorrect Answers
A:Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the supported outcome is securing eligible compute capacity before demand, while the requested result is maintaining desired replicas from a shared template.
B:MIG autoscaling changes the target number of instances using configured signals and scale limits; it is relevant when dynamically sizing managed VM fleets, not when the primary need is maintaining desired replicas from a shared template.
D:Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances; the decision here is about maintaining desired replicas from a shared template, not recreating unhealthy managed instances.