Google Cloud Associate Cloud Engineer Domain 1: Setting Up a Cloud Solution Environment
47 free practice questions for Setting Up a Cloud Solution Environment in the Google Cloud Certified Associate Cloud Engineer exam. Try each question first, then open "Show answer" for the correct option and explanation.
Setting Up a Cloud Solution Environment practice questions
-
Question 1. What is the correct order of the Google Cloud resource hierarchy, from top to bottom?
Show answer
Answer: C. Organization, folders, projects, resources
The organization node sits at the top. Folders group projects, and projects contain resources.
-
Question 2. A company wants a policy set once to apply to every project in its Finance department. Where should it be applied?
Show answer
Answer: B. On the Finance folder
IAM and organization policies are inherited down the hierarchy, so a folder-level policy covers all projects inside it.
-
Question 3. Which statement about IAM policy inheritance is correct?
Show answer
Answer: D. A role granted on a folder applies to all projects and resources in it
Allow policies are additive and inherited downward. A lower level can't remove access granted higher up.
-
Question 4. Which service restricts what configurations are allowed, such as blocking external IP addresses on VMs across the organization?
Show answer
Answer: A. Organization Policy Service
Organization policies set constraints on resource configuration. IAM controls who can act; org policies control what can be configured.
-
Question 5. What must happen before a project can use the Cloud SQL Admin API?
Show answer
Answer: C. The API must be enabled in the project
Most Google Cloud APIs are disabled by default and must be enabled per project, for example with gcloud services enable.
-
Question 6. Which command enables the Compute Engine API in the current project?
Show answer
Answer: B. gcloud services enable compute.googleapis.com
gcloud services enable turns on APIs by their service name.
-
Question 7. A company uses Google Workspace for email. Where are its users and groups managed for Google Cloud access?
Show answer
Answer: D. In Google Workspace or Cloud Identity
Google Cloud relies on Cloud Identity or Workspace accounts, which can be synced from Active Directory.
-
Question 8. Which tool synchronizes users and groups from an on-premises Active Directory to Cloud Identity?
Show answer
Answer: C. Google Cloud Directory Sync
GCDS performs one-way sync from LDAP or Active Directory into Cloud Identity or Workspace.
-
Question 9. Why is it recommended to grant IAM roles to Google groups rather than individual users?
Show answer
Answer: A. Access is easier to manage and audit as people join or leave
Managing membership in a group is simpler than editing IAM bindings for each person.
-
Question 10. Every project that uses paid services must be associated with what?
Show answer
Answer: B. A Cloud Billing account
Projects without a linked billing account can only use free resources.
-
Question 11. A manager wants an email when a project's spending reaches 50%, 90%, and 100% of a monthly amount. What should be configured?
Show answer
Answer: C. A budget with alert thresholds on the billing account
Budgets send alerts at thresholds. They don't stop spending automatically unless you add programmatic actions.
-
Question 12. Does a Cloud Billing budget stop resources when the limit is reached?
Show answer
Answer: B. No, it only sends notifications unless you build an automated response
Budgets notify by default. Pub/Sub notifications can trigger a function that disables billing or scales resources.
-
Question 13. A finance team wants to analyze detailed daily billing data with SQL. What should be set up?
Show answer
Answer: C. Cloud Billing export to BigQuery
Billing export sends detailed cost data to a BigQuery dataset for analysis and dashboards.
-
Question 14. Which IAM role lets a user link projects to a billing account?
Show answer
Answer: A. Billing Account User on the billing account
Linking requires Billing Account User on the billing account and permission to change billing on the project, such as Project Billing Manager or Owner.
-
Question 15. Which command sets the default project for the gcloud CLI?
Show answer
Answer: D. gcloud config set project my-project
gcloud config set stores defaults in the active configuration.
-
Question 16. An engineer works with a development and a production project and wants to switch quickly between their settings. What should they use?
Show answer
Answer: D. Named gcloud configurations, switched with activate
Each named configuration stores its own account, project, and default region and zone.
-
Question 17. Which command sets the default Compute Engine zone for gcloud?
Show answer
Answer: C. gcloud config set compute/zone us-central1-a
compute/region and compute/zone are properties in the compute section of the configuration.
-
Question 18. What is Cloud Shell?
Show answer
Answer: C. A browser-based terminal with gcloud and kubectl preinstalled
Cloud Shell gives an authenticated shell with common tools preinstalled and a persistent home directory.
-
Question 19. A VM creation fails with a message that the regional CPU quota was exceeded. What should the engineer do?
Show answer
Answer: C. Request a quota increase for that region
Quotas limit resource usage per project and region. Increases can be requested from the Quotas page.
-
Question 20. What is the difference between a project ID and a project number?
Show answer
Answer: A. The project ID is chosen by the user and immutable; the number is assigned by Google
Project IDs are globally unique and set at creation. The project name is the only one of the three that can change.
-
Question 21. Which component is the root node that lets a company centrally control all its projects?
Show answer
Answer: D. The organization resource
The organization resource is tied to a Cloud Identity or Workspace domain and provides central control.
-
Question 22. Which role at the organization level can manage organization policies?
Show answer
Answer: B. Organization Policy Administrator
Setting organization policy constraints requires the Organization Policy Administrator role.
-
Question 23. Which tool gives a single place to view metrics, logs, and alerts for Google Cloud resources?
Show answer
Answer: D. Cloud Monitoring and Cloud Logging
Cloud Monitoring and Cloud Logging collect metrics and logs. Setting them up is part of preparing the environment.
-
Question 24. How can one Cloud Monitoring workspace view metrics from several projects?
Show answer
Answer: C. Add the projects to a metrics scope of the scoping project
A metrics scope lets one project monitor metrics from multiple projects.
-
Question 25. Which region concept is correct in Google Cloud?
Show answer
Answer: A. A region contains several zones, which are isolated failure domains
Deploying across zones protects against a zone failure; across regions protects against regional outages.
-
Question 26. Which resource scope does a Compute Engine VM instance have?
Show answer
Answer: D. Zonal
VMs and persistent disks (other than regional disks) live in a single zone.
-
Question 27. Which resource is global in Google Cloud?
Show answer
Answer: C. A VPC network
VPC networks are global. Subnets are regional and VMs are zonal.
-
Question 28. What does gcloud auth login do?
Show answer
Answer: B. Authorizes the gcloud CLI with a user account through the browser
gcloud auth login obtains credentials for a user. For a service account, gcloud auth activate-service-account can be used.
-
Question 29. Which command lists the projects the current account can access?
Show answer
Answer: B. gcloud projects list
gcloud projects list returns project IDs, names, and numbers.
-
Question 30. A new project should have a descriptive name and belong to the Engineering folder. Which command creates it?
Show answer
Answer: A. gcloud projects create eng-app-1 --folder=FOLDER_ID
gcloud projects create accepts --folder or --organization to set the parent.
-
Question 31. What happens when a project is deleted?
Show answer
Answer: D. It is shut down and can be restored within about 30 days
Deleted projects enter a pending deletion period, during which they can be restored.
-
Question 32. Which organization policy constraint restricts the regions where resources can be created?
Show answer
Answer: C. Resource location restriction (gcp.resourceLocations)
The resource locations constraint limits resource creation to allowed regions, which supports data residency.
-
Question 33. A company wants to prevent anyone from creating service account keys. How can it do this organization-wide?
Show answer
Answer: C. Enforce the iam.disableServiceAccountKeyCreation organization policy
This constraint blocks key creation, pushing teams to safer options such as workload identity federation.
-
Question 34. What is the purpose of labels on Google Cloud resources?
Show answer
Answer: B. Key/value metadata used to organize resources and break down costs
Labels appear in billing exports, so costs can be grouped by team, environment, or application.
-
Question 35. Which tool gives an inventory of all resources and IAM policies across the organization?
Show answer
Answer: C. Cloud Asset Inventory
Cloud Asset Inventory lets you search and export resource metadata and IAM policies.
-
Question 36. Which billing role lets a finance analyst view costs without managing payment settings?
Show answer
Answer: C. Billing Account Viewer
Billing Account Viewer gives read-only access to billing information and cost data.
-
Question 37. What does the Google Cloud Pricing Calculator help with?
Show answer
Answer: D. Estimating the cost of resources before deploying
The Pricing Calculator estimates costs based on configuration choices such as machine types and usage.
-
Question 38. Which command installs extra components, such as kubectl, into the gcloud CLI?
Show answer
Answer: B. gcloud components install kubectl
gcloud components manages optional tools. On some package-managed installs, the system package manager is used instead.
-
Question 39. Which statement about projects is correct?
Show answer
Answer: D. Projects are the base level for enabling APIs, billing, and IAM
Each resource belongs to exactly one project, which provides API, billing, and permission boundaries.
-
Question 40. What can a Cloud Billing budget be scoped to?
Show answer
Answer: C. A billing account, projects, services, or labels
Budgets can filter by projects, services, labels, and more.
-
Question 41. Which statement about free trial and free tier usage is correct?
Show answer
Answer: A. Always Free usage limits apply to some products even after the trial ends
Some services have monthly always-free limits in eligible regions, separate from trial credits.
-
Question 42. An administrator must let a team create projects only inside their own folder. Which role should they get on that folder?
Show answer
Answer: C. Project Creator
Project Creator on the folder lets the team create projects there without broader organization rights.
-
Question 43. Where can an engineer see how close a project is to its API request limits?
Show answer
Answer: D. The Quotas page, or quota metrics in Monitoring
Quota usage appears on the Quotas page and can be monitored with alerting.
-
Question 44. Which action lets an engineer find the gcloud command for a task they just completed in the console?
Show answer
Answer: C. Use the "Equivalent command line" link in the console
Many console pages offer an equivalent gcloud or REST command, which helps with scripting.
-
Question 45. What is Active Assist in Google Cloud?
Show answer
Answer: B. A set of recommenders for cost, security, and performance improvements
Recommenders suggest actions such as rightsizing VMs, removing idle resources, and reducing excess IAM permissions.
-
Question 46. Which organization policy prevents VMs from having external IP addresses?
Show answer
Answer: D. compute.vmExternalIpAccess
This constraint lists which VMs, if any, may have external IPs, reducing internet exposure.
-
Question 47. A company wants to allow IAM bindings only for identities in its own domain. Which organization policy should it use?
Show answer
Answer: A. Domain restricted sharing
Domain restricted sharing blocks granting roles to accounts outside the allowed customer IDs.
Google Cloud is a trademark of Google LLC. These questions are original study material, not questions from the real exam.