home / exams / Google / gcp-ace / Practice Test 2
gcp-ace Google

Google Associate Cloud Engineer - Practice Test 2

Question #31
Logging & Monitoring

You have sensitive data stored across multiple Cloud Storage buckets and have enabled data access logging. You need to audit a specific user's activities, including metadata label additions and file view events, for these buckets with the fewest possible steps. What is the most effective approach?

A. Using the GCP Console, filter the Activity log to view the information.
B. Using the GCP Console, filter the Stackdriver log to view the information.
C. View the bucket in the Storage section of the GCP Console.
D. Create a trace in Stackdriver to view the information.
Question #32
Security

Your team manages several Linux virtual machines on Google Cloud. You need to implement a secure and cost-effective method for your team to SSH into these instances. Which approach should you take?

A. Attach a public IP address to each instance and configure firewall rules to allow SSH access (port 22) from the internet.
B. Utilize the `gcloud compute ssh` command with the `--tunnel-through-iap` flag, ensuring ingress traffic from the IP range 35.235.240.0/20 is allowed on port 22.
C. Deploy a third-party remote access solution to manage SSH connections to the instances.
D. Set up a bastion host with a public IP address and configure SSH tunnels through it to access the internal instances.
Question #33
Compute Engine

Your company's operational team manages numerous Compute Engine instances, and all employees use Google accounts. Each team member requires administrative access to these servers. The security team emphasizes efficient credential deployment and the ability to audit who accessed a specific instance. What is the most appropriate solution?

A. Generate a new SSH key pair, distribute the private key to each team member, and configure the public key in the metadata of each instance.
B. Instruct each team member to generate an SSH key pair, add their public key to their Google account, and grant the 'compute.osAdminLogin' role to the Google group associated with this team.
C. Ask each team member to generate a new SSH key pair and send you their public key. Use a configuration management tool to deploy these keys on each instance.
D. Generate a new SSH key pair, provide the private key to each team member, and configure the public key as a project-wide public SSH key in your Cloud Platform project, allowing project-wide public SSH keys on each instance.
Question #34
Databases & Security

You are deploying an application on Google Cloud that requires a relational database for storage. Your company's security policies mandate that the application connect to the database via an encrypted and authenticated connection, with minimal management overhead and seamless integration with Identity and Access Management (IAM). What is the most appropriate solution?

A. Deploy a Cloud SQL database with the SSL mode set to encrypted only, configure SSL/TLS client certificates, and configure a database user and password.
B. Deploy a Cloud SQL database and configure IAM database authentication. Access the database through the Cloud SQL Auth Proxy.
C. Deploy a Cloud SQL database with the SSL mode set to encrypted only, configure SSL/TLS client certificates, and configure IAM database authentication.
D. Deploy a Cloud SQL database and configure a database user and password. Access the database through the Cloud SQL Auth Proxy.
Question #35
Compute

Your organization operates a nightly batch processing workload that utilizes a significant number of virtual machines (VMs). This workload is designed to be fault-tolerant and can gracefully handle the termination of some VMs without data loss. However, the current operational costs associated with these VMs are excessively high. What is the most cost-effective solution you should implement?

A. Run a test using simulated maintenance events. If the test is successful, use N1 Standard VMs when running future jobs.
B. Run a test using simulated maintenance events. If the test is successful, use preemptible N1 Standard VMs when running future jobs.
C. Run a test using a managed instance group. If the test is successful, use N1 Standard VMs in the managed instance group when running future jobs.
D. Run a test using N1 standard VMs instead of N2. If the test is successful, use N1 Standard VMs when running future jobs.
Back to gcp-ace 50 questions - page 7 of 10