Associate Cloud Engineer · ~20% of the exam
Associate Cloud Engineer: Setting up a cloud solution environment practice questions
10 free Setting up a cloud solution environment questions for the Google Cloud Associate Cloud Engineer (Associate Cloud Engineer) exam, each with the correct answer and an explanation for every option.
What this domain covers
Getting an organisation ready to build: the resource hierarchy, organisation policies, Cloud Identity, APIs, quotas and billing.
- Exam weight
- ~20%
- On a real exam
- ≈ 11 questions
- In our bank
- 83 questions
Topics that come up most
- Organisations, folders and projects
- Organisation policy constraints
- Cloud Identity users, groups and federation
- Enabling APIs and checking quotas
- Billing accounts, budgets and exports
How to study it
Create a project from scratch with gcloud once, link billing and set a budget; setup questions follow that exact path.
Sample Setting up a cloud solution environment questions
Try each one before opening the answer. Original questions written to the official exam objectives.
Question 1
A platform team is writing automation that creates new projects under specific folders and creates new folders under the organization node as teams are onboarded. Which Google Cloud API should the automation call to create these projects and folders?
- AThe Cloud Resource Manager API
- BThe Cloud Asset Inventory API
- CThe Service Usage API
- DThe Cloud Billing API
Show answer and explanation
Answer: A) The Cloud Resource Manager API
Projects, folders and organizations are managed through the Cloud Resource Manager API. Service-specific APIs such as Service Usage, Cloud Billing and Cloud Asset Inventory work with projects that already exist, or with what's inside them.
- ACorrect. The Cloud Resource Manager API manages the resource hierarchy containers themselves. Its projects and folders endpoints (for example, POST to cloudresourcemanager.googleapis.com/v3/projects or /v3/folders) create, update, move and delete projects and folders. gcloud projects create and gcloud resource-manager folders create call this API.
- BIncorrect. Cloud Asset Inventory searches, exports and monitors metadata about existing resources and IAM policies. It reports on the hierarchy but can't create projects or folders.
- CIncorrect. The Service Usage API enables and disables services (APIs) inside a project that already exists. It doesn't create the project or its parent folder.
- DIncorrect. The Cloud Billing API manages billing accounts and links projects to them. Linking billing is often the next step after creating a project, but this API can't create projects or folders.
Question 2
A developer creates a new Google Cloud account and gets $300 in credit that can be spent on most Google Cloud services. Any unused credit expires after 90 days. Which Google Cloud program provides this credit?
- AThe Google Cloud Free Trial
- BThe Google Cloud Free Tier
- CCommitted use discounts
- DSustained use discounts
Show answer and explanation
Answer: A) The Google Cloud Free Trial
New customers get a one-time $300 Free Trial credit that expires after 90 days. The Free Tier is a separate, ongoing allowance of free monthly usage for specific products.
- ACorrect. The Free Trial gives eligible new customers a one-time $300 credit to use across most Google Cloud services. The credit expires after 90 days or once it's used up, whichever comes first.
- BIncorrect. The Free Tier doesn't give a dollar credit. It lets all customers use specific products free, up to set monthly limits, and it doesn't expire after 90 days.
- CIncorrect. Committed use discounts lower prices in exchange for committing to a level of usage or spend for one or three years. They aren't a sign-up credit for new customers.
- DIncorrect. Sustained use discounts are applied automatically to eligible Compute Engine resources that run for a large part of the billing month. They aren't a one-time credit.
Question 3
A developer is writing a Python application that must create Cloud Storage buckets and publish Pub/Sub messages at runtime. They want the code to call Google Cloud APIs directly, with authentication and low-level request handling taken care of for them, rather than running gcloud commands from inside the program. What should they use?
- AThe Cloud Client Libraries for Python, added as application dependencies
- BThe Cloud Code extension installed in the developer's IDE
- CThe APIs Explorer panel in the API reference documentation
- DThe gcloud CLI alpha and beta command groups for early API access
Show answer and explanation
Answer: A) The Cloud Client Libraries for Python, added as application dependencies
Google recommends Cloud Client Libraries for calling Cloud APIs from application code. They give idiomatic interfaces in each language and handle authentication and request details. Cloud Code, APIs Explorer and gcloud are developer or CLI tools, not runtime libraries.
- ACorrect. Google recommends Cloud Client Libraries for calling Cloud APIs from code. They give idiomatic, per-language interfaces, handle authentication and communication with the server, and install with package managers such as pip.
- BCloud Code is IDE tooling that helps developers write, deploy and debug apps. It can help browse and add client libraries, but the running application doesn't call it to reach Cloud APIs.
- CAPIs Explorer lets a person try API methods interactively in a browser. It's for exploring and testing, not something application code calls at runtime.
- DThe alpha and beta groups are still gcloud CLI commands. Using them would still mean running CLI commands from the program, which the developer wants to avoid.
Question 4
A student wants to learn BigQuery by running SQL against public datasets. They have a Google account but do not want to create a Cloud Billing account or enter any payment details. Which option meets this requirement?
- AUse the BigQuery sandbox, which runs within fixed free storage and query limits
- BSign up for the Google Cloud Free Trial and use its introductory credits
- CUse the BigQuery free tier's monthly query allowance in a regular project
- DBuy a small BigQuery Editions reservation with autoscaling slots
Show answer and explanation
Answer: A) Use the BigQuery sandbox, which runs within fixed free storage and query limits
The BigQuery sandbox is the only listed option that needs no billing account or payment details. The Free Trial, free tier usage in a regular project and Editions reservations all require billing to be set up.
- ACorrect. The BigQuery sandbox lets anyone with a Google account use BigQuery without a credit card or billing account. It has limits, such as 10 GiB of storage, 1 TiB of query processing per month and a 60-day default table expiration.
- BIncorrect. Signing up for the Free Trial requires a payment method for verification and creates a Cloud Billing account, which the student wants to avoid.
- CIncorrect. The free tier allowance applies to projects linked to a billing account. Using it outside the sandbox still means setting up billing.
- DIncorrect. Editions reservations are a paid capacity-based pricing model and require a billing-enabled project.
Question 5
Before running a command that deletes resources, a developer wants to confirm which account, project, and default Compute Engine region and zone their gcloud CLI will use. Which command shows all of these in a single output?
- Agcloud config list
- Bgcloud auth list
- Cgcloud projects list
- Dgcloud compute regions list
Show answer and explanation
Answer: A) gcloud config list
gcloud config list shows the active configuration's properties, including the account, project, and compute region and zone. The other commands each show only part of this, or show unrelated lists.
- ACorrect. gcloud config list shows the properties set in the active configuration. These include core/account, core/project, compute/region and compute/zone, so all the values the developer needs appear in one output.
- BIncorrect. gcloud auth list shows the credentialed accounts and marks which one is active. It doesn't show the default project, region or zone.
- CIncorrect. gcloud projects list lists the projects the caller can access. It doesn't say which project is set as the default in the active configuration, and it doesn't show the account, region or zone.
- DIncorrect. gcloud compute regions list lists the Compute Engine regions available to the project. It doesn't show which region or zone is configured as the default, or the active account.
Question 6
A developer working in Cloud Shell needs to browse the project's directories, edit source files with syntax highlighting and code completion, and debug the code. They can't install any software on their laptop. Which capability that comes with Cloud Shell meets this need?
- ACloud Shell Editor, opened from the Open Editor button
- BWeb preview, opened from the Cloud Shell toolbar
- CThe persistent home directory of the Cloud Shell instance
- DCloud Workstations, configured as a managed workstation
Show answer and explanation
Answer: A) Cloud Shell Editor, opened from the Open Editor button
Every Cloud Shell instance includes Cloud Shell Editor, a browser-based editor based on Code OSS for browsing, editing and debugging code. Web preview and the persistent home directory support other tasks, and Cloud Workstations is a separate service.
- ACorrect. Every Cloud Shell instance includes Cloud Shell Editor by default. It is based on Code OSS and lets you browse directories and edit files while keeping access to the Cloud Shell terminal. It provides language features such as code suggestions, linting and debugging support. You open it with the Open Editor button or at ide.cloud.google.com.
- BIncorrect. Web preview lets you view, in your browser, a web application that is running on a port in your Cloud Shell instance. You can use it to see the app's output, but not to edit or debug source files.
- CIncorrect. The persistent home directory keeps your files between Cloud Shell sessions. It is storage, not an editor with highlighting, completion or debugging.
- DIncorrect. Cloud Workstations is a separate managed service that you must configure yourself. It also offers a browser-based editor, but it doesn't come with Cloud Shell.
Question 7
An administrator wants to protect a critical production project so that it cannot be deleted by accident, even by someone who holds permission to delete projects. Which command meets this requirement?
- Agcloud alpha resource-manager liens create --project=PROJECT_ID --restrictions=resourcemanager.projects.delete --reason="Production"
- Bgcloud projects update PROJECT_ID --update-labels=environment=production,protected=true
- Cgcloud projects add-iam-policy-binding PROJECT_ID --member=user:EMAIL --role=roles/resourcemanager.lienModifier
- Dgcloud projects undelete PROJECT_ID
Show answer and explanation
Answer: A) gcloud alpha resource-manager liens create --project=PROJECT_ID --restrictions=resourcemanager.projects.delete --reason="Production"
A lien that restricts resourcemanager.projects.delete, created with gcloud alpha resource-manager liens create, blocks deletion of the project until the lien is removed. Labels, granting the lien modifier role, and undelete do not prevent deletion.
- ACorrect. This command places a lien on the project that restricts the resourcemanager.projects.delete permission. Nobody can delete the project until the lien is removed.
- BIncorrect. Labels are only metadata used to organize resources and report costs. They do not block any operation, so the project can still be deleted.
- CIncorrect. This grants a user permission to create and remove liens, but it does not create a lien. The project is still unprotected.
- DIncorrect. This command restores a project that was already shut down, as long as it is still within the recovery period. It does not stop the project from being deleted in the first place.
Question 8
A team wants to run gcloud commands in the build steps of its containerized CI/CD pipeline. They do not want to install and maintain the Google Cloud CLI on each build runner. What should they use?
- ARun the build steps in the official Google Cloud CLI Docker image from Google's registry
- BOpen Cloud Shell and run the gcloud commands from its browser-based terminal
- CAdd a step that runs the interactive installer script and then gcloud components install
- DCopy a service account key file onto each runner and point the pipeline at the key
Show answer and explanation
Answer: A) Run the build steps in the official Google Cloud CLI Docker image from Google's registry
The official Google Cloud CLI Docker image comes with gcloud already installed, so pipeline steps can run gcloud in a container without installing the CLI on each runner.
- ACorrect. Google publishes Google Cloud CLI Docker images (gcr.io/google.com/cloudsdktool/google-cloud-cli, with tags such as :stable, :alpine and :slim). These images already include gcloud, gsutil and bq, so build steps can run gcloud in an isolated container without installing the CLI on the runner.
- BIncorrect. Cloud Shell is an interactive environment for a single user, opened in the browser. It is not meant to run as an automated build step inside a CI/CD pipeline.
- CIncorrect. This installs the Google Cloud CLI on the runner during each build, which is exactly the installation and maintenance work the team wants to avoid.
- DIncorrect. A key file only provides credentials. It does not provide the gcloud binary, and spreading long-lived keys across runners is also a security risk.
Question 9
A developer in a privacy-sensitive environment wants their local Google Cloud CLI to stop sending Google anonymized data about which commands they run, how long the commands take, and whether errors occur. Which command should they run?
- Agcloud config set disable_usage_reporting true
- Bgcloud config set survey/disable_prompts true
- Cgcloud config set core/log_http false
- Dgcloud config set core/disable_prompts true
Show answer and explanation
Answer: A) gcloud config set disable_usage_reporting true
Setting the gcloud property disable_usage_reporting to true opts the CLI out of sending anonymized usage statistics. The survey, log_http and disable_prompts properties control unrelated behavior.
- ACorrect. The disable_usage_reporting property controls whether gcloud collects anonymized statistics such as the command run, how long it took and whether it failed. Setting it to true opts out. The property is first set during installation and can be changed at any time.
- BIncorrect. This property only stops gcloud from showing prompts that invite the user to take a feedback survey. It does not change usage statistics collection.
- CIncorrect. log_http controls whether gcloud logs HTTP requests and responses to the terminal for debugging. It does not affect usage reporting to Google.
- DIncorrect. disable_prompts makes gcloud run without interactive prompts and use default answers. It has nothing to do with anonymized usage statistics.
Question 10
As part of an exposure review, a security team needs a quick, single query that finds every Compute Engine instance with an external IP address across all projects in their organization. What should they use?
- ARun a Cloud Asset Inventory resource search with the organization as the scope, filtered to Compute Engine instances with external IPs
- BRun gcloud compute instances list with a filter on external IP addresses from Cloud Shell in the team's own project
- CEnable VPC Flow Logs on every subnet and query the logs for instances that are sending traffic to internet addresses
- DQuery Admin Activity audit logs in Logs Explorer for instance-creation events that included an external access configuration
Show answer and explanation
Answer: A) Run a Cloud Asset Inventory resource search with the organization as the scope, filtered to Compute Engine instances with external IPs
Cloud Asset Inventory resource search can be scoped to a whole organization and filtered by asset type and attributes, so it can find every instance with an external IP in one query. Per-project listings, flow logs, and audit logs either cover only one project or show events and traffic instead of current configuration.
- ACorrect. Cloud Asset Inventory's searchAllResources (gcloud asset search-all-resources) accepts a project, folder, or organization as its scope. It can filter on asset type compute.googleapis.com/Instance and instance attributes, so one query covers every project in the organization.
- BIncorrect. gcloud compute instances list returns instances from one project at a time. To cover the organization, the team would have to repeat it for every project, which is not a single org-wide query.
- CIncorrect. VPC Flow Logs record sampled network flows and only after being enabled per subnet. They show traffic, not configuration, so an instance that has an external IP but no recent traffic would be missed.
- DIncorrect. Audit logs record API events, not current resource state. They would miss instances created before the retention window and IPs that were added or removed later, so they don't reliably show what is exposed right now.
More Setting up a cloud solution environment questions, one per page
- A team creates a new GCP project and later wants to rename it for clarity.
- A company wants to make sure that, in every project in its organization, Compute Engine VM instances can only be created…
- A user is signed in to the Google Cloud console and has access to several projects.
- A startup wants to use folders and organization policies, both of which require an organization resource in its Google…
- A company runs production workloads on Google Cloud and only has the Basic Support that every customer gets.
- An on-call engineer wants to get push notifications for alerts on their phone, check the status of Compute Engine…
- A consultant works on several client projects. Each client uses a different Google account, project, and default Compute…
- A developer wants their custom dotfiles and small utility scripts to stay available in later Cloud Shell sessions…
Setting up a cloud solution environment: FAQs
How much of the Associate Cloud Engineer exam is Setting up a cloud solution environment?
Setting up a cloud solution environment is about 20% of the Associate Cloud Engineer exam by the official exam guide's weighting, which on a 55-question form works out to roughly 11 questions. The real exam's exact split varies by form.
What does the Setting up a cloud solution environment domain cover?
Getting an organisation ready to build: the resource hierarchy, organisation policies, Cloud Identity, APIs, quotas and billing.
How should I study Setting up a cloud solution environment for Associate Cloud Engineer?
Create a project from scratch with gcloud once, link billing and set a budget; setup questions follow that exact path.
Where can I practise more Setting up a cloud solution environment questions?
This page has 10 free Setting up a cloud solution environment questions with answers. CertRidge's Associate Cloud Engineer question bank has 83 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.
Other Associate Cloud Engineer domains
- Planning and implementing a cloud solution~30% of the exam
- Ensuring the successful operation of a cloud solution~30% of the exam
- Configuring access and security~20% of the exam
Also: 15 free questions across all domains, the Associate Cloud Engineer cheat sheet and the study guide.
Get Setting up a cloud solution environment exam-ready
The full Associate Cloud Engineer bank has 83 Setting up a cloud solution environment questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.
Not affiliated with Google Cloud; questions are original and never copied from the real exam.