Docsity

Google Cloud Certified Associate Cloud Engineer exam test, Exams of Advanced Education

Toggle sidebar
bg1
1
/
63
Google Cloud Certified Associate Cloud Engineer exam
test
1.
A
tool
that
warns
you
when
you're
spending
too
much.:
Billing
Alerts
2.
A
service
used
for
executing
code
in
response
to
events.:
Cloud
Functions
3. A mechanism that allows you to track custom information in code
and save
it
to
Stackdriver.:
Custom monitoring metric.
4.
The
command
to
create
a
Cloud
Function.:
`gcloud functions
deploy`
5. The way to enable point-in-time recovery for MySQL databases
on Cloud
SQL.:
Enable binary logging
6. A service used to run web applications on a managed platform.: App
Engine
7.
The
command
to
list
subnets.:
`gcloud
compute
networks
subnets
list`
8. Key-value pairs that you can set and interact with in a Compute
Engine
instance.: Metadata
9. "One-click" way to install common applications to Compute
Engine in-
stances.:
Cloud Launcher
10. The purpose of this command:
`gcloud compute firewall-rules create "a-firewall-rule" --
network $SER-
VICES_NETWORK
--allow
tcp:22`:
Open port 22 to the
internet
11. When using `gcloud compute ssh`, which flag shows the
underlying SSH
command?: `--dry-run`
12. Key-value pairs of configuration data that are accessible from
code running
in a Cloud Function.: Environment variables
13.
The
types
of
App
Engine
environments.:
Standard and
Flexible
14. The format used for Kubernetes resource files.:
YAML
15. What is the purpose of this command:
`gcloud
iam
service-accounts
create...`:
It
creates
a
new
service
account.
16. Where SSH keys for connecting to Compute Engine instances
are stored.: -
Project
or
Instance
metadata.
17. The command to create a Deployment Manager deployment.:
`gcloud deploy-
ment-manager
deployments
create`
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Google Cloud Certified Associate Cloud Engineer exam test and more Exams Advanced Education in PDF only on Docsity!

Google Cloud Certified Associate Cloud Engineer exam

test

  1. A tool that warns you when you're spending too much.: Billing Alerts
  2. A service used for executing code in response to events.: Cloud Functions
  3. A mechanism that allows you to track custom information in code and save it to Stackdriver.: Custom monitoring metric.
  4. The command to create a Cloud Function.: gcloud functions deploy
  5. The way to enable point-in-time recovery for MySQL databases on Cloud SQL.: Enable binary logging
  6. A service used to run web applications on a managed platform.: App Engine
  7. The command to list subnets.: gcloud compute networks subnets list
  8. Key-value pairs that you can set and interact with in a Compute Engine instance.: Metadata
  9. "One-click" way to install common applications to Compute Engine in-stances.: Cloud Launcher
  10. The purpose of this command: gcloud compute firewall-rules create "a-firewall-rule" -- network $SER-VICES_NETWORK --allow tcp:22: Open port 22 to the internet
  11. When using gcloud compute ssh, which flag shows the underlying SSH command?: --dry-run
  12. Key-value pairs of configuration data that are accessible from code running in a Cloud Function.: Environment variables
  13. The types of App Engine environments.: Standard and Flexible
  14. The format used for Kubernetes resource files.: YAML
  15. What is the purpose of this command: gcloud iam service-accounts create...: It creates a new service account.
  16. Where SSH keys for connecting to Compute Engine instances are stored.: - Project or Instance metadata.
  17. The command to create a Deployment Manager deployment.: gcloud deploy-ment-manager deployments create
  1. IAM stands for what?: Identity and Access Management
  2. The way to change an App Engine region.: You can't. You need to create a new project.
  3. A way to analyze spending data.: Billing Exports sent to BigQuery.
  4. The way to ensure the nodes in a Kubernetes Engine cluster are running the latest version of Kubernetes.: Enable the "Automatic node upgrades" option.
  5. The resource for storing sensitive information in Kubernetes.: Secrets
  6. The name of the Kubernetes Deployment that ensures a single instance of a pod will run on each node.: DaemonSet
  7. A way to run Compute Engine instance based on templates.: Managed Instance Groups
  8. When creating firewall rules, the lower the number the the priority.- : Higher
  9. The load balancer to use for global HTTP(S) traffic.: HTTP(S) load balancer
  10. The Compute Engine metadata key that allows you to run code at startup.- : startup-script
  11. The name of the notation used for specifying IP address ranges.: CIDR notation
  12. Flag to use when deploying to app engine that will prevent the version from getting 100% of the traffic.: --no-promote
  13. A mechanism that allows you to extract data from logs and track it.: Custom logging metric.
  14. The name of the Kubernetes Controller that provides declarative updates for pods.: Deployments
  15. Service that can ingest event streams. Commonly used with IoT.: Pub/Sub
  16. The command to create a new Spanner database.: gcloud spanner databases create
  17. A special account used for authenticating between different services.: Service Accounts
  1. The command to list projects.: gcloud projects list
  2. gcloud-wide flag to suppress interactive prompts.: -q or -- quiet
  3. The command to set the CORS configuration on a bucket.: gsutil cors set...
  4. A Kubernetes resource that exposes deployments.: Services
  5. Command to run commands from inside a container that is running on Kubernetes.: kubectl exec
  6. A downloadable key allowing code to authenticate against Google Cloud services.: Service Account Key
  7. Scaling modes supported by App Engine.: Manual, Automatic, and Basic* *Only with standard environments
  8. The fully managed version of Redis.: Cloud Memorystore
  9. The App Engine, app.yaml handler property that allows directories to be static.: static_dir
  10. Supported persistent disk types.: HDD, SSD, and Local SSD.
  11. Command to list buckets.: gsutil ls
  12. A feature of Cloud Shell that allows you to browse to port 8080.: Web Preview
  13. A way to group different instances together.: Unmanaged instance groups.
  14. Name of a point-in-time backup of a persistent disk.: Snapshots
  15. The command to add an IAM binding policy.: gcloud projects add-iam- policy-binding
  16. A sparsely populated database.: Bigtable
  17. The command to deploy a Cloud Function.: gcloud functions deploy
  18. Cloud functions should be written in an way.: Idempotent
  19. A type of short-lived, reduced price instance commonly used for batch processing.: Preemptible instances
  20. The command to list networks.: gcloud compute networks list
  21. The compute services provided by Google Cloud.: Compute Engine, App Engine, Kuber-netes Engine, and Cloud Functions.
  22. The App Engine feature that allows fast rollbacks, A/B testing, and canary deployments.: Traflc Splitting
  1. Fully managed NoSQL database with a limited query syntax.: Cloud Datastore
  2. The command to get Pod logs in Kubernetes.: kubectl get logs
  3. A kubectl flag that allows you to specify the JSON path of properties in JSON output.: -o along with the jsonpath value. kubectl get svc -o jsonpath
  4. App Engine traffic can be split by:: IP address, Cookie, Random
  5. The flag to use that will allow you to determine the price of a BigQuery query without actually running the query.: The dry-run flag
  6. The command to create a Kubernetes Cluster.: gcloud container clusters create
  7. The command to update a Deployment Manager deployment.: gcloud deploy-ment-manager deployments update
  8. The database commonly paired with App Engine.: Datastore
  9. Types of available roles.: Types of available roles. Primitive roles, predefined roles, and custom roles.
  10. A feature that allows you to set the exact amount of memory and CPU.: Cus-tom machine type.
  11. The binary to interact with Cloud Storage.: gsutil
  12. A fully managed data warehouse.: BigQuery
  13. The identity providers that Cloud IAM can use.: G Suite, and Cloud Identity, Google Groups, Gmail accounts, Service Accounts
  14. The command to list the current configuration for gcloud.: gcloud config list
  15. Why can't Cloud Storage objects be changed?: They are immutable.
  16. Mounted directories that are accessible from inside containers.: Volumes
  17. A tool that helps estimate costs.: Pricing Calculator
  18. The thing that is attached to a project so that you can pay for resources.: - Billing account
  19. The command for creating a new Kubernetes Secret.: kubectl create secret
  20. Interfaces for interacting with Google Cloud.: - Directly to the REST API

D. Cloud Datastore Why is this correct? Datastore can be queried, it's fully managed, and is a great option for catalog based applications. Datastore also supports a basic query/filter syntax.

  1. Your development team has asked you to set up an external TCP load balancer with SSL offload. Which load balancer should you use? A. SSL proxy B. HTTP load balancer C. TCP proxy D. HTTPS load balancer: A. SSL proxy Why is this correct? The SSL proxy meets all the criteria. D. HTTPS load balancer Why is this incorrect HTTP(s) is a higher level protocol than TCP. The best option is to use the SSL proxy.
  2. Your company has hired a third-party analytics company to help find patterns in user data. Your development team has generated a file containing only the data they've requested; which includes personally identifiable infor-mation. What is the best way to share the data with the other company? A. Create a new user for the company and grant them access to the original data source for them to query. B. Send the file through email. C. Put the data on Cloud Storage and generate a signed URL that will expire in one hour, and securely share the URL. D. Put the data on Cloud Storage in a public bucket and securely share the URL.: B. Send the file through email. Why is this incorrect? This is a big no! Even if the customer is using encrypted email, don't risk letting sensitive data sit out on a contractor's personal devices. C. Put the data on Cloud Storage and generate a signed URL that will expire in one hour, and securely share

the URL. Why is this correct? This will allow anyone with the URL to access the data for an hour.

  1. You have an App Engine application serving as your front-end. It's going to publish messages to Pub/Sub. The Pub/Sub API hasn't been enabled yet. What is the fastest way to enable the API? A. Use a service account to auto-enable the API. B. Enable the API in the Console. C. Application's in App Engine don't require external APIs to be enabled. D. The API will be enabled the first time the code attempts to access Pub/Sub.- : B. Enable the API in the Console. Why is this correct? This is a simple way to enable APIs. D. The API will be enabled the first time the code attempts to access Pub/Sub. Why is this incorrect? APIs need to be enabled.
  2. You have an autoscaled managed instance group that is set to scale based on CPU utilization of 60%. There are currently 3 instances in the instance group. You're connected to one of the instances and notice that the CPU usage is a 70%. However, the instance group isn't starting up another instance. What's the most likely reason? A. The autoscaler is disabled. B. The autoscaler takes 60 seconds before creating a new instance. C. The load balancer doesn't recognize the instance as healthy. D. The average CPU for the entire instance group is below 60%.: C. The load balancer doesn't recognize the instance as healthy. Why is this incorrect? The load balancer doesn't have any impact on this scenario. The autoscaler averages the CPU usage of the entire group, so one instance could be higher than the usage threshold. D. The average CPU for the entire instance group is below 60%. Why is this correct? The autoscaler averages the CPU usage of the entire group. so one instance could be higher than the usage threshold.

Why is this incorrect? Windows instances don't use SSH, at least by default. They use RDP.

  1. You've created a bucket to store some data archives for compliance. The data isn't likely to need to be viewed. However, you need to store it for at least 7 years. What is the best default storage class? A. Multi-regional B. Coldline C. Regional D. Nearline: B. Coldline Why is this correct? Coldline storage is an ideal storage class for archives. C. Regional Why is this incorrect? This is more expensive and available than required.
  2. The development team needs a regional MySQL database with point-in-time recovery for a new proof- of-concept application. What's the most inexpensive way to enable point-in-time recovery? A. Replicate to a Cloud Spanner database. B. Create a read replica in the same region. C. Enable binary logging. D. Create hourly back-ups.: C. Enable binary logging. Why is this correct? Binary logging allows you to use point-in-time recovery. https://cloud.google.com/sql/docs/mysql/backup-recovery/restor e D. Create hourly back- ups. Why is this incorrect? This doesn't meet the point-in-time criteria. Binary logging allows you to use point-in-time recovery.
  3. You're attempting to deploy a new instance that uses the centos 7 family. You can't recall the exact name of the family. Which command could you use to determine the family names?

A. gcloud compute instances list B. gcloud compute images show-families C. gcloud compute instances show-families D. gcloud compute images list: B. gcloud compute images show- families Why is this incorrect? show-families is not a real command. Use list to list ott the images. D. gcloud compute images list Why is this correct? Family names are an attribute of images. This would list all the images and their family names.

  1. You're working on setting up a cluster of virtual machines with GPUs to perform some 3D rendering for a customer. They're on a limited budget and are looking for ways to save money. What is the best solution for implement-ing this? A. Use an autoscaled managed instance group containing some preemptible instances. B. Use an unmanaged instance group with preemptible instances. C. Use App Engine with Flexible Environments. D. Use App Engine with Standard Environments.: A. Use an autoscaled managed instance group containing some preemptible instances. Why is this correct? An autoscaled managed instance group will make it easy to have instances added automatically. Using a preemptible instance will save cost. D. Use App Engine with Standard Environments. Why is this incorrect? Even if App Engine had support for GPUs, it's not really designed for HPC.
  2. You've created the code for a Cloud Function that will respond to HTTP triggers and return some data in JSON format. You have the code locally, it's tested and working. Which command can you use to create the function inside Google Cloud? A. gcloud functions deploy B. gcloud function create C. gcloud functions create D. gcloud function deploy: A. gcloud functions deploy Why is this correct?

C. kubectl get svc -o html Why is this incorrect? This isn't going to help you access what you need easily.

  1. You have a Linux server running on a custom network. There's an allow firewall rule with an IP filter of 0.0.0.0/0 with a protocol/port of tcp:22. The logs on the instance show a constant stream of attempts from different IP addresses, trying to connect via SSH. You suspect this is a brute force attack. How might you change the firewall rule to stop this from happening and still enable access for legit users? A. Stop the instance. B. Deny all traffic to port 22. C. Change the port that SSH is running on in the instance and change the port number in the firewall rule. D. Change the IP address range in the filter to only allow known IP address-es.: A. Stop the instance. Why is this incorrect? This would stop the attack, though, it would also prevent legit traflc. D. Change the IP address range in the filter to only allow known IP addresses Why is this correct? By using 0.0.0.0/0, you're opening the port to the internet. By whitelisting known IP addresses, it will block anyone not on the list.
  2. You're about to deploy your team's App Engine application. They're using the Go runtime with a Standard Environment. Which command should you use to deploy the application? A. gcloud app deploy app.yaml B. gcloud app-engine apply app.yaml C. gcloud app apply app.yaml D. gcloud app-engine deploy app.yaml: A. gcloud app deploy app.yaml Why is this correct? Memorizing command on the CLI is boring, so well done! The configuration is contained in the app.yaml for most runtimes. Java uses app.xml. The command will also work without specifying the file if it's in the current working directory. C. gcloud app apply

app.yaml Why is this incorrect? Apply is a command used a lot with kubectl. However, with App Engine, you use the deploy command.

  1. You need to create a new development Kubernetes cluster with 4 nodes. The cluster will be named linux- academy-dev-cluster. Which of the following truncated commands will create a cluster? A. gcloud container clusters create linux-academy-dev- cluster --num- nodes 4 B. kubectl clusters create linux-academy-dev-cluster 4 C. kubectl clusters create linux-academy-dev-cluster --num-nodes 4 D. gcloud container clusters create linux-academy-dev-cluster 4: A. gcloud container clusters create linux-academy-dev- cluster --num-nodes 4 Why is this correct? This is the correct start of the command. There are some additional flags. C. kubectl clusters create linux-academy-dev-cluster --num- nodes 4 Why is this incorrect? kubectl isn't used to create clusters.
  2. You have a Cloud Storage bucket that needs to host static web assets. How do you make the bucket public? A. Trick question. Don't ever make a bucket public. B. Check the "make public" box in the UI. C. Set allUsers to have the Storage Object Viewer role. D. gsutil make-public gs://bucket-name: A. Trick question. Don't ever make a bucket public. Why is this incorrect? You might be a bit overzealous. Some buckets actually contain public data, and it's only private data we want to ensure isn't set to public. C. Set allUsers to have the Storage Object Viewer role. Why is this correct? This will make a bucket public.
  3. Your team has chosen to use Deployment Manager to create the Compute Engine infrastructure for your application. You've already run the gcloud de-ployment-manager deployments create command to create the deployment. You've updated 2 resources in the template and need to deploy the change. What command should you use? A. gcloud deployment-manager resources apply

replicas: 3 selector: matchLabels: app: "products-service" template: metadata: labels: app: "products-service" spec: containers:

  • name: "products" image: "gcr.io/find-seller-app-dev/products:latest" env:
  • name: "database_user" value: "admin"
  • name: "database_password" value: "TheB3stP@ssW0rd" What is Google's recommended best practice for working with sensitive infor-mation inside of Kubernetes? A. Store the credentials in a ConfigMap. B. Mount the credentials in a volume. C. Use an environment variable. D. Store the credentials in a Secret.: C. Use an environment variable. Why is this incorrect? This is doable; however, this answer is too generic to know if the credentials are actually secure. D. Store the credentials in a Secret. Why is this correct? Using a secret will keep the data secured and out of plain text.
  1. You're trying to provide temporary access to some files in a Cloud Storage bucket. You want to limit the time that the files are available to 10 minutes. With the fewest steps possible, what is the best way to generate a signed URL?

A. In the UI select the objects and click the Generate Signed URL button. B. Create a service account and JSON key. Use the gsutil signurl -t 10m com-mand and pass in the JSON key and bucket. C. In the UI select the objects and click the "Sign With Key" button. D. Create a service account and JSON key. Use the gsutil signurl -d 10m command and pass in the JSON key and bucket.: C. In the UI select the objects and click the "Sign With Key" button. Why is this incorrect? This isn't a real thing. The CLI is the easiest option in this scenario. D. Create a service account and JSON key. Use the gsutil signurl -d 10m command and pass in the JSON key and bucket. Why is this correct? This is a quick way to generate the URL. This will create a signed URL that will expire in 10 minutes.

  1. Your team has some new functionality that they want to roll out slowly so they can monitor for errors. The change contains some significant changes to the user interface. You've chosen to use traffic splitting to perform a canary deployment. You're going to start by rolling out the code to 15% of your users. How should you go about setting up traffic splitting? A. Deploy the new version. Split the traffic using an IP or cookie based distri-bution. B. Use the gcloud app deploy command with the distribution flag to deploy and split the traffic in one command. C. Deploy the new version using the no-promote flag. Split the traffic using a random distribution. D. Deploy the new version using the no-promote flag. Split the traffic using distribution.: A. Deploy the new version. Split the traflc using an IP or cookie based distribution. Why is this incorrect? This will work! However, by default when deploying applications the new version is promoted, so it will get 100% of the traflc. Using no-promote is important in this scenario. D. Deploy the new version using the no-promote flag. Split the traflc using distribution. Why is this correct?

happens in the API. The API allows end users to request the data as JSON, XML, CSV, and XLS. Supporting all of these formats is taking a lot of developer effort. Management would like to start tracking which options are used over the next month. Without modifying the code, what's the fastest way to be able to report on this data at the end of the month? A. Create a custom counter logging metric that uses a regex to extract the data format into a label. At the end of the month, use the metric viewer to see the group by the label. B. Create a log sink that filters for rows that mention the data format. Export that to BigQuery, and run a query at the end of the month. C. Create a custom monitoring metric in code and edit the API code to set the metric each time the API is called. D. Export the logs to excel, and search for the different fields.: A. Create a custom counter logging metric that uses a regex to extract the data format into a label. At the end of the month, use the metric viewer to see the group by the label. Why is this correct? This is a simple solution that only requires the metric to be created, and then Stackdriver will track each occurrence. D. Export the logs to excel, and search for the ditterent fields. Why is this incorrect? This sounds simple, however, by the time you get the logs filtered and exported into a form Excel can use, you could have already created the logging metric.

  1. Your data team is working on some new machine learning models. They're generating several files per day that they want to store in a regional bucket. They mostly focus on the files from the last week. However, they want to keep all the files just to base safe. With the fewest steps possible, what's the best way to lower the storage costs? A. Create a Cloud Function triggered when objects are added to a bucket. Look at the date on all the files and move it to nearline storage if it's older than a week. B. Create a Cloud Function triggered when objects are added to a

bucket. Look at the date on all the files and move it to coldline storage if it's older than a week. C. Create a lifecycle policy to switch the objects older than a week to coldline storage. D. Create a lifecycle policy to switch the objects older than a week to nearline storage.: C. Create a lifecycle policy to switch the objects older than a week to coldline storage. Why is this incorrect? Since they "mostly" focus on newer files, that means they sometimes need to access the old files. Coldline isn't the best option in this case. D. Create a lifecycle policy to switch the objects older than a week to nearline storage. Why is this correct?