Google Cloud Associate Cloud Engineer · Domain 1 of 4 · 23% of the exam

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

  1. Question 1. What is the correct order of the Google Cloud resource hierarchy, from top to bottom?

    1. Projects, folders, organization, resources
    2. Folders, organization, resources, projects
    3. Organization, folders, projects, resources
    4. Organization, projects, folders, resources
    Show answer

    Answer: C. Organization, folders, projects, resources

    The organization node sits at the top. Folders group projects, and projects contain resources.

  2. Question 2. A company wants a policy set once to apply to every project in its Finance department. Where should it be applied?

    1. On each project individually
    2. On the Finance folder
    3. On each Compute Engine instance in them
    4. On the billing account
    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.

  3. Question 3. Which statement about IAM policy inheritance is correct?

    1. A role granted on a project overrides a deny at the organization level
    2. Roles granted on a project apply to the parent folder
    3. Inheritance only applies to organization policies, not IAM
    4. A role granted on a folder applies to all projects and resources in it
    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.

  4. Question 4. Which service restricts what configurations are allowed, such as blocking external IP addresses on VMs across the organization?

    1. Organization Policy Service
    2. Cloud Asset Inventory
    3. Cloud Billing budgets
    4. Cloud Monitoring alerting
    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.

  5. Question 5. What must happen before a project can use the Cloud SQL Admin API?

    1. The project must be moved to a new organization
    2. A service account key must be downloaded
    3. The API must be enabled in the project
    4. The project must be linked to a second billing account
    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.

  6. Question 6. Which command enables the Compute Engine API in the current project?

    1. gcloud compute enable api
    2. gcloud services enable compute.googleapis.com
    3. gcloud config set compute/api enabled
    4. gcloud projects add-api compute
    Show answer

    Answer: B. gcloud services enable compute.googleapis.com

    gcloud services enable turns on APIs by their service name.

  7. Question 7. A company uses Google Workspace for email. Where are its users and groups managed for Google Cloud access?

    1. In each project's IAM page, one by one
    2. In the Compute Engine OS Login settings
    3. In a Cloud SQL users table
    4. In Google Workspace or Cloud Identity
    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.

  8. Question 8. Which tool synchronizes users and groups from an on-premises Active Directory to Cloud Identity?

    1. Cloud Deploy
    2. Database Migration Service
    3. Google Cloud Directory Sync
    4. Transfer Appliance
    Show answer

    Answer: C. Google Cloud Directory Sync

    GCDS performs one-way sync from LDAP or Active Directory into Cloud Identity or Workspace.

  9. Question 9. Why is it recommended to grant IAM roles to Google groups rather than individual users?

    1. Access is easier to manage and audit as people join or leave
    2. Groups receive a discount on billing
    3. Individual users cannot hold predefined roles
    4. Groups bypass organization policy constraints
    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.

  10. Question 10. Every project that uses paid services must be associated with what?

    1. A Cloud Storage bucket
    2. A Cloud Billing account
    3. A VPC network
    4. A service account key
    Show answer

    Answer: B. A Cloud Billing account

    Projects without a linked billing account can only use free resources.

  11. 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?

    1. A quota limit on the Compute Engine API
    2. An organization policy on resource locations
    3. A budget with alert thresholds on the billing account
    4. A Cloud Monitoring uptime check
    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.

  12. Question 12. Does a Cloud Billing budget stop resources when the limit is reached?

    1. Yes, it shuts down all resources in the project
    2. No, it only sends notifications unless you build an automated response
    3. Yes, but only for Compute Engine instances
    4. No, and budgets cannot trigger any actions
    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.

  13. Question 13. A finance team wants to analyze detailed daily billing data with SQL. What should be set up?

    1. Billing reports downloaded as PDF each month
    2. A Cloud Storage lifecycle rule
    3. Cloud Billing export to BigQuery
    4. A log sink from Cloud Audit Logs
    Show answer

    Answer: C. Cloud Billing export to BigQuery

    Billing export sends detailed cost data to a BigQuery dataset for analysis and dashboards.

  14. Question 14. Which IAM role lets a user link projects to a billing account?

    1. Billing Account User on the billing account
    2. Project Viewer on the project
    3. Compute Admin on the project
    4. Storage Object Viewer on the project
    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.

  15. Question 15. Which command sets the default project for the gcloud CLI?

    1. gcloud projects set-default my-project
    2. gcloud init project my-project
    3. gcloud auth project my-project
    4. gcloud config set project my-project
    Show answer

    Answer: D. gcloud config set project my-project

    gcloud config set stores defaults in the active configuration.

  16. Question 16. An engineer works with a development and a production project and wants to switch quickly between their settings. What should they use?

    1. A separate installation of the Cloud SDK per project
    2. A different Google account for each of the projects
    3. Environment variables in Cloud Shell only
    4. Named gcloud configurations, switched with activate
    Show answer

    Answer: D. Named gcloud configurations, switched with activate

    Each named configuration stores its own account, project, and default region and zone.

  17. Question 17. Which command sets the default Compute Engine zone for gcloud?

    1. gcloud compute zones set us-central1-a
    2. gcloud config set zone us-central1-a
    3. gcloud config set compute/zone us-central1-a
    4. gcloud set compute zone us-central1-a
    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.

  18. Question 18. What is Cloud Shell?

    1. A managed Kubernetes cluster for running batch jobs
    2. A VPN client for connecting laptops to VPC networks
    3. A browser-based terminal with gcloud and kubectl preinstalled
    4. A code repository service for Terraform modules
    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.

  19. Question 19. A VM creation fails with a message that the regional CPU quota was exceeded. What should the engineer do?

    1. Enable a different billing account
    2. Delete the project's service accounts
    3. Request a quota increase for that region
    4. Change the organization's domain name
    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.

  20. Question 20. What is the difference between a project ID and a project number?

    1. The project ID is chosen by the user and immutable; the number is assigned by Google
    2. The project number can be changed at any time; the ID cannot
    3. Both are chosen by the user and can be changed
    4. The project ID is used only for billing, not APIs
    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.

  21. Question 21. Which component is the root node that lets a company centrally control all its projects?

    1. A folder named root
    2. The default VPC network
    3. The first project created
    4. The organization resource
    Show answer

    Answer: D. The organization resource

    The organization resource is tied to a Cloud Identity or Workspace domain and provides central control.

  22. Question 22. Which role at the organization level can manage organization policies?

    1. Project Editor
    2. Organization Policy Administrator
    3. Compute Viewer
    4. Billing Account Viewer
    Show answer

    Answer: B. Organization Policy Administrator

    Setting organization policy constraints requires the Organization Policy Administrator role.

  23. Question 23. Which tool gives a single place to view metrics, logs, and alerts for Google Cloud resources?

    1. Cloud Build and Cloud Deploy
    2. Artifact Registry and Cloud Source Repositories
    3. Cloud Scheduler and Cloud Tasks
    4. Cloud Monitoring and Cloud Logging
    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.

  24. Question 24. How can one Cloud Monitoring workspace view metrics from several projects?

    1. Create a separate dashboard in each project only
    2. Export metrics to Cloud Storage and combine them
    3. Add the projects to a metrics scope of the scoping project
    4. Link each project to the same billing account
    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.

  25. Question 25. Which region concept is correct in Google Cloud?

    1. A region contains several zones, which are isolated failure domains
    2. A zone contains several regions for redundancy
    3. Regions and zones are the same thing
    4. Every service is available only in one global zone
    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.

  26. Question 26. Which resource scope does a Compute Engine VM instance have?

    1. Regional
    2. Global
    3. Multi-regional
    4. Zonal
    Show answer

    Answer: D. Zonal

    VMs and persistent disks (other than regional disks) live in a single zone.

  27. Question 27. Which resource is global in Google Cloud?

    1. A subnet
    2. A zonal persistent disk
    3. A VPC network
    4. A VM instance
    Show answer

    Answer: C. A VPC network

    VPC networks are global. Subnets are regional and VMs are zonal.

  28. Question 28. What does gcloud auth login do?

    1. Creates a new service account key
    2. Authorizes the gcloud CLI with a user account through the browser
    3. Enables the IAM API in the project
    4. Grants the Owner role to the current user
    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.

  29. Question 29. Which command lists the projects the current account can access?

    1. gcloud config list projects
    2. gcloud projects list
    3. gcloud organizations list-projects
    4. gcloud compute projects list
    Show answer

    Answer: B. gcloud projects list

    gcloud projects list returns project IDs, names, and numbers.

  30. Question 30. A new project should have a descriptive name and belong to the Engineering folder. Which command creates it?

    1. gcloud projects create eng-app-1 --folder=FOLDER_ID
    2. gcloud folders create eng-app-1 --project
    3. gcloud config set project eng-app-1 --new
    4. gcloud projects add eng-app-1 --parent=org
    Show answer

    Answer: A. gcloud projects create eng-app-1 --folder=FOLDER_ID

    gcloud projects create accepts --folder or --organization to set the parent.

  31. Question 31. What happens when a project is deleted?

    1. It is removed immediately with no recovery option
    2. Its resources are moved to the parent folder
    3. Its billing account is deleted too
    4. It is shut down and can be restored within about 30 days
    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.

  32. Question 32. Which organization policy constraint restricts the regions where resources can be created?

    1. Restrict public IP on Cloud SQL
    2. Disable service account key creation
    3. Resource location restriction (gcp.resourceLocations)
    4. Require OS Login
    Show answer

    Answer: C. Resource location restriction (gcp.resourceLocations)

    The resource locations constraint limits resource creation to allowed regions, which supports data residency.

  33. Question 33. A company wants to prevent anyone from creating service account keys. How can it do this organization-wide?

    1. Remove the IAM API from all projects
    2. Delete the default compute service account
    3. Enforce the iam.disableServiceAccountKeyCreation organization policy
    4. Set a budget of zero on the billing account
    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.

  34. Question 34. What is the purpose of labels on Google Cloud resources?

    1. Security controls that restrict access to resources
    2. Key/value metadata used to organize resources and break down costs
    3. Firewall tags that allow network traffic
    4. Names that must be globally unique
    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.

  35. Question 35. Which tool gives an inventory of all resources and IAM policies across the organization?

    1. Cloud Scheduler
    2. Cloud Tasks
    3. Cloud Asset Inventory
    4. Cloud Source Repositories
    Show answer

    Answer: C. Cloud Asset Inventory

    Cloud Asset Inventory lets you search and export resource metadata and IAM policies.

  36. Question 36. Which billing role lets a finance analyst view costs without managing payment settings?

    1. Billing Account Administrator
    2. Project Owner
    3. Billing Account Viewer
    4. Organization Administrator
    Show answer

    Answer: C. Billing Account Viewer

    Billing Account Viewer gives read-only access to billing information and cost data.

  37. Question 37. What does the Google Cloud Pricing Calculator help with?

    1. Paying monthly invoices automatically by card
    2. Setting quota limits for each project's APIs
    3. Creating budgets with alert thresholds
    4. Estimating the cost of resources before deploying
    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.

  38. Question 38. Which command installs extra components, such as kubectl, into the gcloud CLI?

    1. gcloud install kubectl
    2. gcloud components install kubectl
    3. gcloud container kubectl add
    4. gcloud config set component kubectl
    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.

  39. Question 39. Which statement about projects is correct?

    1. Resources can belong to several projects at once
    2. A project can have several parent folders
    3. Projects cannot contain Compute Engine resources
    4. Projects are the base level for enabling APIs, billing, and IAM
    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.

  40. Question 40. What can a Cloud Billing budget be scoped to?

    1. Only an entire organization and its folders
    2. Only a single VM instance at a time
    3. A billing account, projects, services, or labels
    4. Only Cloud Storage buckets and their objects
    Show answer

    Answer: C. A billing account, projects, services, or labels

    Budgets can filter by projects, services, labels, and more.

  41. Question 41. Which statement about free trial and free tier usage is correct?

    1. Always Free usage limits apply to some products even after the trial ends
    2. The free trial never requires a billing account
    3. Free tier resources can be used without any project
    4. Free tier limits are unlimited in all regions
    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.

  42. Question 42. An administrator must let a team create projects only inside their own folder. Which role should they get on that folder?

    1. Organization Administrator
    2. Folder Viewer
    3. Project Creator
    4. Billing Account Viewer
    Show answer

    Answer: C. Project Creator

    Project Creator on the folder lets the team create projects there without broader organization rights.

  43. Question 43. Where can an engineer see how close a project is to its API request limits?

    1. The Cloud Billing reports page for the account
    2. The VPC firewall rules page for the network
    3. The Cloud Storage bucket details page
    4. The Quotas page, or quota metrics in Monitoring
    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.

  44. Question 44. Which action lets an engineer find the gcloud command for a task they just completed in the console?

    1. Download the audit log as CSV
    2. Open the Cloud Shell editor settings
    3. Use the "Equivalent command line" link in the console
    4. Export the resource to Terraform only
    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.

  45. Question 45. What is Active Assist in Google Cloud?

    1. A customer support chat for billing questions
    2. A set of recommenders for cost, security, and performance improvements
    3. A managed CI/CD pipeline service
    4. An automatic backup service for VMs
    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.

  46. Question 46. Which organization policy prevents VMs from having external IP addresses?

    1. compute.requireOsLogin
    2. iam.allowedPolicyMemberDomains
    3. storage.uniformBucketLevelAccess
    4. compute.vmExternalIpAccess
    Show answer

    Answer: D. compute.vmExternalIpAccess

    This constraint lists which VMs, if any, may have external IPs, reducing internet exposure.

  47. Question 47. A company wants to allow IAM bindings only for identities in its own domain. Which organization policy should it use?

    1. Domain restricted sharing
    2. Restrict resource locations
    3. Disable serial port access
    4. Skip default network creation
    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.