Question 200
A runtime discrepancy involves a particular VM; administrators need its full API representation rather than a fleet summary. What should they run?
- Use gcloud compute instances describe
- Create a custom image from a disk
- Diagnose OS Login IAM roles
- Use IAP TCP forwarding for SSH
- Use an SSH metadata key for supported VMs
Explanation
Correct Answer
A:The instances describe operation retrieves configuration and status details for a specified VM in its zone; this is relevant because the outcome sought is examining an individual VM resource.
Incorrect Answers
B:Custom Compute Engine images provide reusable disk source content for new boot disks; Applying it would target preparing reusable VM boot images, leaving the separate need for examining an individual VM resource.
C:OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; this governs granting supported OS Login access through IAM, whereas the stated objective is examining an individual VM resource.
D:IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met; it would help with tunneling SSH through identity-aware access, but it does not directly implement examining an individual VM resource.
E:When OS Login is disabled, supported SSH keys in project or instance metadata can be applied by guest agents; that supports managing SSH public keys via Compute Engine metadata; the problem to solve concerns examining an individual VM resource.
Question 201
A deployment service account requires API access to several resource types throughout one project but no other projects. Which scope is appropriate?
- Create a custom IAM role
- Bind IAM role at project scope
- Inspect effective IAM allow bindings
- Remove an IAM policy binding
Explanation
Correct Answer
B:Project-level IAM bindings apply role grants across supported resources within that project; that behavior is precisely what granting consistent access within one project calls for.
Incorrect Answers
A:Custom roles let eligible administrators define a chosen set of supported IAM permissions; that applies to defining a selected IAM permission list; the requested task is granting consistent access within one project.
C:Effective IAM access can include organization, folder, project and resource-level bindings with inheritance; that mechanism handles finding grants inherited from parent scopes; it does not configure granting consistent access within one project.
D:Removing an IAM binding eliminates that grant path, although other inherited or indirect grants may remain; it is appropriate for removing unneeded role assignments; here, the deciding requirement is granting consistent access within one project.
Question 202
All newly created projects in one business unit must inherit a viewer role for its auditors. Where should the binding be placed?
- Set gcloud's active project
- Use an IAM policy binding to a group
- Grant IAM role at folder scope
- Enable a service API for the project
- Use a gcloud named configuration
Explanation
Correct Answer
C:The requested administrative outcome is sharing an inherited role across department projects; A folder IAM policy passes applicable role grants to descendant resources and projects.
Incorrect Answers
A:The active gcloud core/project property determines the default project for commands that honor it; its purpose differs: setting the default gcloud project context is separate from sharing an inherited role across department projects.
B:An IAM policy can bind a role to a group principal so members receive its permissions through membership; it is appropriate for driving permissions through group-based role assignment; here, the deciding requirement is sharing an inherited role across department projects.
D:Service Usage controls API enablement for each project; authorization and billing are separate requirements; it is relevant when allowing that service's API in the project, not when the primary need is sharing an inherited role across department projects.
E:Named gcloud configurations store sets of CLI properties and can be activated as needed; it is not the focused action for sharing an inherited role across department projects; its primary use is separating reusable gcloud account and project settings.
Question 203
A deployment still reports that the requested machine type is unavailable after its quota was raised. What should the operator investigate?
- Request an adjustable quota increase
- Distinguish quota from physical capacity
- Use service quotas proactively
- Choose a supported region
Explanation
Correct Answer
B:Quota determines allowed resource consumption; regional or zonal hardware capacity is a separate constraint; for the stated workload, the practical result is separating zone capacity limits from quota authorization.
Incorrect Answers
A:Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability; that mechanism handles raising an adjustable compute quota; it does not configure separating zone capacity limits from quota authorization.
C:Service quotas impose consumption limits that may need review or adjustment before substantial growth; the scenario specifies separating zone capacity limits from quota authorization, which differs from checking whether planned load exceeds project limits.
D:Google Cloud services have distinct regional and global availability; not every SKU exists in each location; the supported outcome is confirming regional product support for the deployment, while the requested result is separating zone capacity limits from quota authorization.
Question 204
Objects are frequently used for 60 days and then almost never read. How can storage cost be reduced automatically?
- Grant Storage Object Viewer
- Configure Cloud Storage lifecycle class transition
- Restore a soft-deleted Cloud Storage object
- Use gcloud storage ls
Explanation
Correct Answer
B:Lifecycle management can change eligible object storage class when matching conditions are met; its effect directly addresses transitioning aged objects to colder storage classes.
Incorrect Answers
A:Storage Object Viewer includes permissions for reading supported objects and object metadata; that mechanism handles granting read-only object data access; it does not configure transitioning aged objects to colder storage classes.
C:Soft-deleted objects can be restored within their applicable retention period using supported restore workflows; its purpose differs: restoring an object during its soft-delete window is separate from transitioning aged objects to colder storage classes.
D:Gcloud storage ls enumerates supported buckets and objects depending on the specified path; the supported outcome is querying the object namespace from the CLI, while the requested result is transitioning aged objects to colder storage classes.
Question 205
A business unit needs projects grouped under one inherited governance boundary and needs key-value metadata for cost-center reporting on supported resources. Choose TWO actions.
- Create a Cloud Identity group
- Use the organization resource
- Create a folder in the resource hierarchy
- Use Resource Manager tags
- Use labels on supported resources
Explanation
Correct Answers
C:Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; within the multi-part workflow of using a hierarchy boundary and cost allocation metadata, this provides grouping related projects under inherited governance.
E:Labels are user-defined key-value metadata for organization and billing analysis and are not hierarchical IAM boundaries; within the multi-part workflow of using a hierarchy boundary and cost allocation metadata, this provides tagging resource metadata for cost allocation.
Incorrect Answers
A:Cloud Identity groups can represent users and be referenced as principals in supported IAM policies, which serves controlling memberships as a shared identity group instead of using a hierarchy boundary and cost allocation metadata.
B:The organization node is the top governance resource associated with the company's identity domain; the mechanism concerns establishing an organization-wide resource ancestor and does not directly supply using a hierarchy boundary and cost allocation metadata.
D:Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels, which supports assigning governed tags for policy decisions; the needed outcome is using a hierarchy boundary and cost allocation metadata.
Question 206
Sensitive application logs need a separate bucket with a custom retention period and readers must be limited to a filtered subset of its entries. Choose TWO Logging resources.
- Create a log sink to Pub/Sub
- Configure a log view
- Query logs in Logs Explorer
- Create a dedicated log bucket
- Configure log exclusions
Explanation
Correct Answers
B:Log views expose subsets of log bucket entries with access control through IAM; within the multi-part workflow of giving sensitive logs separate retention and filtered reader visibility, this provides scoping read access to filtered log data.
D:Cloud Logging log buckets store ingested logs with configurable retention and access controls; within the multi-part workflow of giving sensitive logs separate retention and filtered reader visibility, this provides isolating log retention and access settings.
Incorrect Answers
A:Log sinks can publish matched log records to an authorized Pub/Sub topic; the mechanism concerns forwarding logs to an event subscriber and does not directly supply giving sensitive logs separate retention and filtered reader visibility.
C:Logs Explorer filters indexed log entries and displays structured resource labels and payload details, which supports searching centralized logs by resource and time; the needed outcome is giving sensitive logs separate retention and filtered reader visibility.
E:Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; it is designed for excluding unwanted log entries from storage routing, rather than the needed giving sensitive logs separate retention and filtered reader visibility.
Question 207
An application runs development and production workloads with very different risk and quota policies. Which organization pattern is most effective?
- Use billing project grouping with folders
- Use a project ID rather than display name
- Use the Cloud Console project selector
- Use a separate project for prod and dev
Explanation
Correct Answer
D:The requirement is separating development from production boundaries; Separate projects provide independent administration, many quota scopes and clearer billing and permission boundaries.
Incorrect Answers
A:Folder structure governs hierarchy; billing-account linkage is a separate association and can be shared; it concerns organizing projects separately from billing payer assignment, and its normal effect does not provide separating development from production boundaries.
B:Project IDs uniquely identify projects in many Google Cloud APIs and differ from editable display names; its operational role is using the unique project identifier in automation; the needed capability is separating development from production boundaries.
C:The Cloud Console's active project selector determines project context for many console workflows; this is a distinct control for choosing the active console project, rather than separating development from production boundaries.
Question 208
An application roll-out appears stuck; the operator first needs the names and phases of the Pods. What query is appropriate?
- Configure Vertical Pod Autoscaler
- Use Kubernetes Service
- Use kubectl get pods
- Use kubectl rollout undo
Explanation
Correct Answer
C:Kubectl get pods lists Pod resources and their summarized readiness and lifecycle information; this is relevant because the outcome sought is listing current Kubernetes Pod status.
Incorrect Answers
A:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; this governs optimizing workload resource requests vertically, whereas the stated objective is listing current Kubernetes Pod status.
B:Kubernetes Services select endpoints and provide stable discovery or networking for matching Pods; Applying it would target providing stable service discovery for changing Pods, leaving the separate need for listing current Kubernetes Pod status.
D:For rolling back a Deployment release, this could be relevant; Kubectl rollout undo can revert supported Deployment rollouts to a previous revision; the actual request concerns listing current Kubernetes Pod status.
Question 209
An application reads object data frequently and prioritizes immediate access without minimum storage-duration tradeoffs. Which class is suitable?
- Use Cloud Storage soft delete
- Choose Cloud Storage Standard
- Use Cloud Storage versioning
- Configure Cloud Storage Autoclass
Explanation
Correct Answer
B:Standard is designed for frequently accessed Cloud Storage objects without a minimum storage-duration charge; it supports storing frequently accessed objects at the appropriate resource scope.
Incorrect Answers
A:Soft delete retains eligible deleted object data for a configurable period to allow restoration; this governs recovering recently deleted cloud objects, whereas the stated objective is storing frequently accessed objects.
C:Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; its purpose differs: retaining earlier object generations is separate from storing frequently accessed objects.
D:Autoclass automatically manages eligible object storage classes based on access patterns and policy rules; Applying it would target adapting object class based on observed access, leaving the separate need for storing frequently accessed objects.
Question 210
A CI pipeline applies Terraform and must not inherit broad personal administrator credentials. What identity model fits?
- Use a protected service account for IaC
- Import an existing resource into Terraform state
- Run terraform apply
- Use a version-controlled IaC repository
Explanation
Correct Answer
A:A dedicated automation service account with narrowly scoped IAM permissions can execute approved IaC changes; this is the capability needed for executing infrastructure automation with scoped machine permissions.
Incorrect Answers
B:Terraform import associates eligible existing remote objects with resource addresses in state, with configuration alignment still required; that mechanism handles linking Terraform configuration to existing resource identity; it does not configure executing infrastructure automation with scoped machine permissions.
C:Terraform apply performs authorized resource changes described by the configuration or saved plan; this is a distinct control for executing declared infrastructure updates, rather than executing infrastructure automation with scoped machine permissions.
D:Version control tracks infrastructure definitions, reviews and history across deployments; Applying it would target managing cloud configuration through versioned files, leaving the separate need for executing infrastructure automation with scoped machine permissions.