Google Associate Cloud Engineer Exam Practice Questions (P. 2)
- Full Access (326 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
You need a dynamic way of provisioning VMs on Compute Engine. The exact specifications will be in a dedicated configuration file. You want to follow Google's recommended practices. Which method should you use?
- ADeployment ManagerMost Voted
- BCloud Composer
- CManaged Instance Group
- DUnmanaged Instance Group
Correct Answer:
A
Reference:
https://cloud.google.com/compute/docs/instances/
A
Reference:
https://cloud.google.com/compute/docs/instances/
send
light_mode
delete
Question #12
You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?
- AUse kubectl app deploy <dockerfilename>.
- BUse gcloud app deploy <dockerfilename>.
- CCreate a docker image from the Dockerfile and upload it to Container Registry. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.Most Voted
- DCreate a docker image from the Dockerfile and upload it to Cloud Storage. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
Correct Answer:
C
Reference -
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
C
Reference -
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
send
light_mode
delete
Question #13
Your development team needs a new Jenkins server for their project. You need to deploy the server using the fewest steps possible. What should you do?
- ADownload and deploy the Jenkins Java WAR to App Engine Standard.
- BCreate a new Compute Engine instance and install Jenkins through the command line interface.
- CCreate a Kubernetes cluster on Compute Engine and create a deployment with the Jenkins Docker image.
- DUse GCP Marketplace to launch the Jenkins solution.Most Voted
Correct Answer:
D
Reference:
https://cloud.google.com/solutions/using-jenkins-for-distributed-builds-on-compute-engine
D
Reference:
https://cloud.google.com/solutions/using-jenkins-for-distributed-builds-on-compute-engine
send
light_mode
delete
Question #14
You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use?
- Agcloud deployment-manager deployments create --config <deployment-config-path>
- Bgcloud deployment-manager deployments update --config <deployment-config-path>Most Voted
- Cgcloud deployment-manager resources create --config <deployment-config-path>
- Dgcloud deployment-manager resources update --config <deployment-config-path>
Correct Answer:
B
Reference:
https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update
B
Reference:
https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update
send
light_mode
delete
Question #15
You need to run an important query in BigQuery but expect it to return a lot of records. You want to find out how much it will cost to run the query. You are using on-demand pricing. What should you do?
- AArrange to switch to Flat-Rate pricing for this query, then move back to on-demand.
- BUse the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator.Most Voted
- CUse the command line to run a dry run query to estimate the number of bytes returned. Then convert that bytes estimate to dollars using the Pricing Calculator.
- DRun a select count (*) to get an idea of how many records your query will look through. Then convert that number of rows to dollars using the Pricing Calculator.
Correct Answer:
B
Reference:
https://cloud.google.com/bigquery/docs/estimate-costs
B
Reference:
https://cloud.google.com/bigquery/docs/estimate-costs
send
light_mode
delete
Question #16
You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?
- ACreate a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
- BCreate an instance template, and use the template in a managed instance group with autoscaling configured.Most Voted
- CCreate an instance template, and use the template in a managed instance group that scales up and down based on the time of day.
- DUse a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
Correct Answer:
B
B

Option B is the optimal choice as it directly utilizes virtual machines, aligning with the organizational requirements, and leverages native GCP capabilities for operational efficiency. Managed Instance Groups in Google Cloud not only comply with the need for direct VM usage but also provide robust autoscaling based on CPU metrics, facilitating prompt and accurate scaling activities. This avoids external dependencies and streamlines management, maintaining system simplicity and effectiveness. This choice harnesses GCP's built-in solutions, avoiding the complexities and potential integrations that come with third-party tools.
send
light_mode
delete
Question #17
You are analyzing Google Cloud Platform service costs from three separate projects. You want to use this information to create service cost estimates by service type, daily and monthly, for the next six months using standard query syntax. What should you do?
- AExport your bill to a Cloud Storage bucket, and then import into Cloud Bigtable for analysis.
- BExport your bill to a Cloud Storage bucket, and then import into Google Sheets for analysis.
- CExport your transactions to a local file, and perform analysis with a desktop tool.
- DExport your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis.Most Voted
Correct Answer:
D
D

Choosing BigQuery for analyzing Google Cloud Platform service costs aligns perfectly with the necessity of utilizing standard SQL queries for detailed, scalable, and structured data analysis. It efficiently handles large-scale data across multiple projects and offers comprehensive tools for creating time-specific cost forecasts that desktop tools or simpler platforms like Google Sheets and Cloud Bigtable would find challenging. Using BigQuery's capability to process SQL queries aids in achieving an in-depth and programmatically accessible analysis of daily and monthly cost estimates.
send
light_mode
delete
Question #18
You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy?
- AUse Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 275 days (365 ג€" 90)
- BUse Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.Most Voted
- CUse gsutil rewrite and set the Delete action to 275 days (365-90).
- DUse gsutil rewrite and set the Delete action to 365 days.
Correct Answer:
B
B

It's important to understand that when setting up Object Lifecycle Management policies in Google Cloud Storage, the age is calculated from the creation date of the object, not from when the object class was last set. Therefore, to adhere to the policy of deleting videos after a year (365 days), regardless of the change in storage class after 90 days, the deletion rule should set the age at 365 days. This ensures the files are deleted one year from their original creation date, aligning with the policy requirements without unnecessary complexity.
send
light_mode
delete
Question #19
You have a Linux VM that must connect to Cloud SQL. You created a service account with the appropriate access rights. You want to make sure that the VM uses this service account instead of the default Compute Engine service account. What should you do?
- AWhen creating the VM via the web console, specify the service account under the 'Identity and API Access' section.Most Voted
- BDownload a JSON Private Key for the service account. On the Project Metadata, add that JSON as the value for the key compute-engine-service- account.
- CDownload a JSON Private Key for the service account. On the Custom Metadata of the VM, add that JSON as the value for the key compute-engine- service-account.
- DDownload a JSON Private Key for the service account. After creating the VM, ssh into the VM and save the JSON under ~/.gcloud/compute-engine-service- account.json.
Correct Answer:
A
Reference:
https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances
A
Reference:
https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances
send
light_mode
delete
Question #20
You created an instance of SQL Server 2017 on Compute Engine to test features in the new version. You want to connect to this instance using the fewest number of steps. What should you do?
- AInstall a RDP client on your desktop. Verify that a firewall rule for port 3389 exists.
- BInstall a RDP client in your desktop. Set a Windows username and password in the GCP Console. Use the credentials to log in to the instance.
- CSet a Windows password in the GCP Console. Verify that a firewall rule for port 22 exists. Click the RDP button in the GCP Console and supply the credentials to log in.
- DSet a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in.Most Voted
Correct Answer:
D
Reference:
https://medium.com/falafel-software/sql-server-in-the-google-cloud-a17e8a1f11ce
D
Reference:
https://medium.com/falafel-software/sql-server-in-the-google-cloud-a17e8a1f11ce
send
light_mode
delete
All Pages