Google Associate Cloud Engineer Practice Test 31
Question 300
An app needs an object archive whose retention policy prevents early deletion even by privileged operators. What must be configured?
- Enable a supported Cloud Storage soft-delete retention policy rather than using version history only.
- Rely on bucket labels alone to enforce object retention or deletion restrictions.
- Set an appropriate Cloud Storage retention policy or retention configuration and carefully govern locking.
- Grant organization-wide Storage Admin as a substitute for the required targeted operation.
Explanation
Correct Answer
C:Object retention policies can block deletion until the configured retention duration is satisfied.
Incorrect Answers
A:The option does not enforce the required object location, access or lifecycle behavior. The necessary distinction is retention or recoverability controls.
B:The option does not enforce the required object location, access or lifecycle behavior. The case instead depends on retention or recoverability controls.
D:Broad Storage Admin access introduces privileges beyond the stated task. It leaves retention or recoverability controls unaddressed.
Question 301
A product team needs to preserve earlier versions of a configuration file whenever a new copy is uploaded using the same name. Which feature fits?
- Enable Cloud Storage Object Versioning and manage retention of noncurrent generations.
- Use a VM-local Persistent Disk as the only copy of the object data without the required bucket controls.
- Use a Filestore NFS share as though it implemented Cloud Storage object versioning and generation semantics.
- Give anonymous users Storage Admin as a shortcut to object access management.
Explanation
Correct Answer
A:Object Versioning preserves previous object generations that can be retrieved or restored.
Incorrect Answers
B:The option does not enforce the required object location, access or lifecycle behavior. The case instead depends on retention or recoverability controls. The appropriate action here is: Enable Cloud Storage Object Versioning and manage retention of noncurrent generations.
C:Object versioning and the requested retention or deletion safeguards are separate mechanisms. It leaves retention or recoverability controls unaddressed.
D:Broad Storage Admin access introduces privileges beyond the stated task. The specific requirement concerns retention or recoverability controls.
Question 302
An organization wants short-lived protection against accidental object deletion but doesn't need a long history of every overwritten object. Which feature is appropriate?
- Give anonymous users Storage Admin as a shortcut to object access management.
- Use a Filestore NFS share as though it implemented Cloud Storage object versioning and generation semantics.
- Use a VM-local Persistent Disk as the only copy of the object data without the required bucket controls.
- Enable a supported Cloud Storage soft-delete retention policy rather than using version history only.
Explanation
Correct Answer
D:Soft delete provides a recovery interval for deleted objects and can protect against bucket-deletion scenarios.
Incorrect Answers
A:Broad Storage Admin access introduces privileges beyond the stated task. It leaves retention or recoverability controls unaddressed. The appropriate action here is: Enable a supported Cloud Storage soft-delete retention policy rather than using version history only.
B:Object versioning and the requested retention or deletion safeguards are separate mechanisms. The specific requirement concerns retention or recoverability controls.
C:The option does not enforce the required object location, access or lifecycle behavior. The necessary distinction is retention or recoverability controls. The appropriate action here is: Enable a supported Cloud Storage soft-delete retention policy rather than using version history only.
Question 303
A document is subject to an active legal hold, but an administrator attempts to delete it through a lifecycle rule. What behavior should be expected?
- Keep the object until its hold is lifted through the authorized legal process; the lifecycle Delete action must not bypass the hold.
- Use Cloud Storage Object Lifecycle Management with reviewed conditions and class or delete actions.
- Grant organization-wide Storage Admin as a substitute for the required targeted operation.
- Make the Cloud Storage bucket publicly readable instead of configuring a scoped access mechanism.
Explanation
Correct Answer
A:Cloud Storage object holds prevent deletion or replacement while the hold remains active.
Incorrect Answers
B:The option does not enforce the required object location, access or lifecycle behavior. The specific requirement concerns the object's required data or access behavior. The appropriate action here is: Keep the object until its hold is lifted through the authorized legal process; the lifecycle Delete action must not bypass the hold.
C:Broad Storage Admin access introduces privileges beyond the stated task. The necessary distinction is the object's required data or access behavior.
D:Public access expands exposure without meeting the requested scoped-control requirement. The case instead depends on the object's required data or access behavior. The appropriate action here is: Keep the object until its hold is lifted through the authorized legal process; the lifecycle Delete action must not bypass the hold.
Question 304
A project wants old object generations deleted after 90 days while retaining each live configuration file. How should lifecycle targeting be configured?
- Enable Cloud Storage Object Versioning and manage retention of noncurrent generations.
- Make the Cloud Storage bucket publicly readable instead of configuring a scoped access mechanism.
- Change only the storage class and assume it adds recovery, locking or IAM rights.
- Add a rule that selects eligible noncurrent versions by age and deletes only those generations.
Explanation
Correct Answer
D:Object lifecycle rules can distinguish live and noncurrent versions instead of removing all object generations indiscriminately.
Incorrect Answers
A:Object versioning and the requested retention or deletion safeguards are separate mechanisms. The necessary distinction is the object's required data or access behavior.
B:Public access expands exposure without meeting the requested scoped-control requirement. The case instead depends on the object's required data or access behavior. The appropriate action here is: Add a rule that selects eligible noncurrent versions by age and deletes only those generations.
C:Storage class changes cost and access behavior, not the required policy by itself. It leaves the object's required data or access behavior unaddressed.
Question 305
A bucket lifecycle rule currently changes all objects to Coldline after one day, causing unexpected early deletion costs for rapidly changing data. What should be adjusted?
- Use Standard Cloud Storage or another class whose retrieval economics fit hourly reads.
- Make the Cloud Storage bucket publicly readable instead of configuring a scoped access mechanism.
- Set class-transition conditions based on a realistic access/age policy and minimum duration costs.
- Turn off object versioning and assume previous generations remain available indefinitely.
Explanation
Correct Answer
C:Lifecycle SetStorageClass actions should match object residence time and retrieval patterns, not just the lowest price.
Incorrect Answers
A:The option does not enforce the required object location, access or lifecycle behavior. The case instead depends on the object's required data or access behavior. The appropriate action here is: Set class-transition conditions based on a realistic access/age policy and minimum duration costs.
B:Public access expands exposure without meeting the requested scoped-control requirement. It leaves the object's required data or access behavior unaddressed.
D:Object versioning and the requested retention or deletion safeguards are separate mechanisms. The specific requirement concerns the object's required data or access behavior. The appropriate action here is: Set class-transition conditions based on a realistic access/age policy and minimum duration costs.
Question 306
A developer uploads one small config file to a bucket from Cloud Shell and wants an authenticated CLI operation. Which tool is appropriate?
- Give anonymous users Storage Admin as a shortcut to object access management.
- Use a VM-local Persistent Disk as the only copy of the object data without the required bucket controls.
- Use gcloud storage cp with approved identity and the exact bucket object path.
- Use a Filestore NFS share as though it implemented Cloud Storage object versioning and generation semantics.
Explanation
Correct Answer
C:The Google Cloud CLI supports authenticated Cloud Storage object transfer without requiring a data migration service.
Incorrect Answers
A:Broad Storage Admin access introduces privileges beyond the stated task. It leaves the required Cloud Storage behavior unaddressed.
B:The option does not enforce the required object location, access or lifecycle behavior. The specific requirement concerns the required Cloud Storage behavior. The appropriate action here is: Use gcloud storage cp with approved identity and the exact bucket object path.
D:Object versioning and the requested retention or deletion safeguards are separate mechanisms. The necessary distinction is the required Cloud Storage behavior.
Question 307
A migration team must copy 400 TB of objects from an existing Amazon S3 bucket into a Google Cloud Storage bucket, with monitored operations and an ability to rerun failed copies. Which supported managed transfer path should it choose?
- Deploy an on-premises POSIX transfer agent because Amazon-hosted S3 always requires the filesystem agent mode.
- Create a Cloud SQL database replica from the S3 bucket; replication converts arbitrary S3 objects into relational rows.
- Create an agentless Storage Transfer Service job from Amazon S3 to Cloud Storage with approved source and destination access.
- Use a Cloud Logging sink to stream the S3 object bytes; logging sinks automatically perform bulk object migration.
Explanation
Correct Answer
C:Create an agentless Storage Transfer Service job from Amazon S3 to Cloud Storage with approved source and destination access. Storage Transfer Service supports direct Amazon S3 source jobs with managed operations, identity authorization, and destination object copying.
Incorrect Answers
A:Deploy an on-premises POSIX transfer agent because Amazon-hosted S3 always requires the filesystem agent mode. Google documents that Amazon S3 transfers do not require transfer agents. Agent pools are instead needed for POSIX file systems or S3-compatible non-Amazon sources.
B:Create a Cloud SQL database replica from the S3 bucket; replication converts arbitrary S3 objects into relational rows. Cloud SQL replication is for supported database sources and cannot migrate an arbitrary S3 object bucket into Cloud Storage.
D:Use a Cloud Logging sink to stream the S3 object bytes; logging sinks automatically perform bulk object migration. Logging sinks route log entries, not complete object contents from external S3 buckets to a Cloud Storage migration destination.
Question 308
A datacenter must copy a mounted on-premises POSIX filesystem into a Cloud Storage bucket. Network access to the local mount exists only from internal worker hosts. What Storage Transfer Service mode applies?
- Use the fully agentless Amazon S3 connector, because a local POSIX path is treated as an S3 bucket URI.
- Install supported Storage Transfer Service agents in a managed pool on authorized hosts that can access the filesystem.
- Choose a Cloud Billing budget export; it automatically transfers arbitrary file bytes through Pub/Sub.
- Create an empty Cloud Storage bucket and wait for the local filesystem to be discovered by name matching.
Explanation
Correct Answer
B:Install supported Storage Transfer Service agents in a managed pool on authorized hosts that can access the filesystem. Storage Transfer Service uses on-premises agents for file-system transfers, allowing workers near the data to perform the authorized copy.
Incorrect Answers
A:Use the fully agentless Amazon S3 connector, because a local POSIX path is treated as an S3 bucket URI. The Amazon S3 connector expects a compatible object source and cannot read a mounted datacenter filesystem by pretending it is S3.
C:Choose a Cloud Billing budget export; it automatically transfers arbitrary file bytes through Pub/Sub. Billing exports contain charge data rather than filesystem contents and provide no file agent connectivity for the datacenter path.
D:Create an empty Cloud Storage bucket and wait for the local filesystem to be discovered by name matching. A destination bucket does not scan on-premises mounts; a transfer job and local filesystem access must be configured explicitly.
Question 309
An archival workload needs a daily managed copy from one Cloud Storage bucket to another, with no on-premises file server and no custom script. Which transfer setup matches?
- Configure a scheduled Storage Transfer Service job from the source Cloud Storage bucket to the destination bucket.
- Run a self-hosted file-system transfer agent on an on-premises server that does not exist in this architecture.
- Change the destination bucket display name to match the source; bucket names trigger automatic cross-bucket replication.
- Enable a Cloud SQL read replica, because it copies objects between Cloud Storage buckets on a daily schedule.
Explanation
Correct Answer
A:Configure a scheduled Storage Transfer Service job from the source Cloud Storage bucket to the destination bucket. Storage Transfer Service supports managed cloud-to-cloud transfers and scheduling. It copies supported bucket objects without an application script or on-premises host.
Incorrect Answers
B:Run a self-hosted file-system transfer agent on an on-premises server that does not exist in this architecture. Agents are relevant for particular supported file-system and network transfer scenarios. This task has two Cloud Storage buckets and no on-premises source requiring an agent.
C:Change the destination bucket display name to match the source; bucket names trigger automatic cross-bucket replication. Bucket names identify storage resources; renaming a destination does not create or schedule an object transfer job.
D:Enable a Cloud SQL read replica, because it copies objects between Cloud Storage buckets on a daily schedule. Cloud SQL replication concerns database instances and their data, not the contents of independent Cloud Storage buckets.
Question 310
A migration input is a published HTTP URL-list file naming retrievable objects, not an S3 bucket or a local directory. Which Storage Transfer Service source method matches this inventory?
- Configure a POSIX on-premises agent pool and point it to the web server's hostname as though it were a mounted filesystem.
- Use the supported URL-list transfer source with a correctly formatted accessible list and destination permissions.
- Enable Cloud VPN alone; a tunnel will discover and download every link on the public webpage automatically.
- Create a BigQuery external table for the URL text; query execution streams each asset to the target bucket by default.
Explanation
Correct Answer
B:Use the supported URL-list transfer source with a correctly formatted accessible list and destination permissions. Storage Transfer Service supports transfers using a URL list in addition to cloud buckets and filesystem sources, subject to format and access requirements.
Incorrect Answers
A:Configure a POSIX on-premises agent pool and point it to the web server's hostname as though it were a mounted filesystem. POSIX transfer agents read actual filesystem paths. An ordinary hosted URL manifest is an agentless URL-list input, not a mounted path.
C:Enable Cloud VPN alone; a tunnel will discover and download every link on the public webpage automatically. VPN connectivity does not turn a collection of HTTP links into an object-copy transfer job or perform retries.
D:Create a BigQuery external table for the URL text; query execution streams each asset to the target bucket by default. A BigQuery external table interprets data for queries; it does not automatically copy referenced HTTP objects into Cloud Storage.