Associate-Cloud-Engineer Practice Test Questions

113 Questions


You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?


A.

Use kubectl app deploy <dockerfilename>.


B.

Use gcloud app deploy <dockerfilename>.


C.

Create 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.


D.

Create 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.





C.
  

Create 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.



Reference https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app

You want to configure autohealing for network load balancing for a group of Compute Engine instances thatrun in multiple zones, using the fewest possible steps. You need to configure re-creation of VMs if they are unresponsive after 3 attempts of 10 seconds each. What should you do?


A.

Create an HTTP load balancer with a backend configuration that references an existing instance group.
Set the health check to healthy (HTTP)


B.

Create an HTTP load balancer with a backend configuration that references an existing instance group.
Define a balancing mode and set the maximum RPS to 10.


C.

Create a managed instance group. Set the Autohealing health check to healthy (HTTP)


D.

Create a managed instance group. Verify that the autoscaling setting is on.





D.
  

Create a managed instance group. Verify that the autoscaling setting is on.



You have production and test workloads that you want to deploy on Compute Engine. Production VMs need to be in a different subnet than the test VMs. All the VMs must be able to reach each other over internal IP without creating additional routes. You need to set up VPC and the 2 subnets. Which configuration meets these requirements?


A.

Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different
CIDR range.


B.

Create a single custom VPC with 2 subnets. Create each subnet in the same region and with the same
CIDR range.


C.

Create 2 custom VPCs, each with a single subnet. Create each subnet is a different region and with a
different CIDR range.


D.

Create 2 custom VPCs, each with a single subnet. Create each subnet in the same region and with the
same CIDR range.





A.
  

Create a single custom VPC with 2 subnets. Create each subnet in a different region and with a different
CIDR range.



You are deploying an application to App Engine. You want the number of instances to scale based on request rate. You need at least 3 unoccupied instances at all times. Which scaling type should you use?


A.

Manual Scaling with 3 instances.


B.

Basic Scaling with min_instances set to 3.


C.

Basic Scaling with max_instances set to 3.


D.

Automatic Scaling with min_idle_instances set to 3.





D.
  

Automatic Scaling with min_idle_instances set to 3.



You need to configure IAM access audit logging in BigQuery for external auditors. You want to follow
Google-recommended practices. What should you do?


A.

Add the auditors group to the ‘logging.viewer’ and ‘bigQuery.dataViewer’ predefined IAM roles.


B.

Add the auditors group to two new custom IAM roles.


C.

Add the auditor user accounts to the ‘logging.viewer’ and ‘bigQuery.dataViewer’ predefined IAM roles.


D.

Add the auditor user accounts to two new custom IAM roles.





C.
  

Add the auditor user accounts to the ‘logging.viewer’ and ‘bigQuery.dataViewer’ predefined IAM roles.



You have one GCP account running in your default region and zone and another account running in a
non-default region and zone. You want to start a new Compute Engine instance in these two Google Cloud Platform accounts using the command line interface. What should you do?


A.

Create two configurations using gcloud config configurations create [NAME]. Run gcloud config
configurations activate [NAME] to switch between accounts when running the commands to start the
Compute Engine instances.


B.

Create two configurations using gcloud config configurations create [NAME]. Run gcloud
configurations list to start the Compute Engine instances.


C.

Activate two configurations using gcloud configurations activate [NAME]. Run gcloud config list to
start the Compute Engine instances.


D.

Activate two configurations using gcloud configurations activate [NAME]. Run gcloud configurations
list to start the Compute Engine instances.





C.
  

Activate two configurations using gcloud configurations activate [NAME]. Run gcloud config list to
start the Compute Engine instances.



You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site.
Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do?


A.

Enable Cloud CDN on the website frontend.


B.

Enable ‘Share publicly’ on the PDF file objects.


C.

Set Content-Type metadata to application/pdf on the PDF file objects.


D.

Add a label to the storage bucket with a key of Content-Type and value of application/pdf.





C.
  

Set Content-Type metadata to application/pdf on the PDF file objects.



You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site.
Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto
their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do?


A.

Enable Cloud CDN on the website frontend.


B.

Enable ‘Share publicly’ on the PDF file objects.


C.

Set Content-Type metadata to application/pdf on the PDF file objects.


D.

Add a label to the storage bucket with a key of Content-Type and value of application/pdf.





C.
  

Set Content-Type metadata to application/pdf on the PDF file objects.



You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site.
Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto
their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly,
without prompting the user to save the file locally. What should you do?


A.

Enable Cloud CDN on the website frontend.


B.

Enable ‘Share publicly’ on the PDF file objects.


C.

Set Content-Type metadata to application/pdf on the PDF file objects.


D.

Add a label to the storage bucket with a key of Content-Type and value of application/pdf.





C.
  

Set Content-Type metadata to application/pdf on the PDF file objects.



You need to set up permissions for a set of Compute Engine instances to enable them to write data into a
particular Cloud Storage bucket. You want to follow Google-recommended practices. What should you do?


A.

Create a service account with an access scope. Use the access scope
‘https://www.googleapis.com/auth/devstorage.write_only’.


B.

Create a service account with an access scope. Use the access scope
‘https://www.googleapis.com/auth/cloud-platform’.


C.

Create a service account and add it to the IAM role ‘storage.objectCreator’ for that bucket.


D.

Create a service account and add it to the IAM role ‘storage.objectAdmin’ for that bucket





B.
  

Create a service account with an access scope. Use the access scope
‘https://www.googleapis.com/auth/cloud-platform’.



You need to create a custom VPC with a single subnet. The subnet’s range must be as large as possible. Which
range should you use?


A.

0.0.0.0/0


B.

10.0.0.0/8


C.

172.16.0.0/12


D.

192.168.0.0/16





B.
  

10.0.0.0/8



You created a Google Cloud Platform project with an App Engine application inside the project. You initially
configured the application to be served from the us-central region. Now you want the application to be served from the asia-northeast1 region. What should you do?


A.

Change the default region property setting in the existing GCP project to asia-northeast1.


B.

Change the region property setting in the existing App Engine application from us-central to
asia-northeast1.


C.

Create a second App Engine application in the existing GCP project and specify asia-northeast1 as the
region to serve your application.


D.

Create a new GCP project and create an App Engine application inside this new project. Specify
asia-northeast1 as the region to serve your application.





C.
  

Create a second App Engine application in the existing GCP project and specify asia-northeast1 as the
region to serve your application.




Page 3 out of 10 Pages
Previous