Free Practice Questions ACE - Associate Cloud Engineer 30 Questions with Answers Free Practice Questions ACE - Associate Cloud Engineer 30 Questions with Answers
FREE QUESTIONS

ACE - Associate Cloud Engineer
Practice Questions

30 free questions with correct answers and detailed explanations.

30 Free Questions
2 Free Exams
100% With Explanations

ACE Practice Set-01

15 questions
Q1
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
10.0.0.0/8
C 172.16.0.0/12
D 192.168.0.0/16
Correct Answer
10.0.0.0/8
Explanation
In Google Cloud VPC, the largest valid subnet CIDR is 10.0.0.0/8, which provides over 16 million IP addresses. This is the widest permitted range for a custom subnet in a VPC network. See: https://cloud.google.com/vpc/docs/subnets#valid-ranges
Q2
You want to select and configure a cost-effective solution for relational data on Google Cloud Platform. You are working with a small set of operational data in one geographic location. You need to support point-in-time recovery. What should you do?
Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected.
B Select Cloud SQL (MySQL). Select the create failover replicas option.
C Select Cloud Spanner. Set up your instance with 2 nodes.
D Select Cloud Spanner. Set up your instance as multi-regional.
Correct Answer
Select Cloud SQL (MySQL). Verify that the enable binary logging option is selected.
Explanation
Cloud SQL for MySQL supports point-in-time recovery (PITR) when binary logging is enabled, allowing restore to any second within the retention window. This is more cost-effective than Cloud Spanner for small, single-region operational datasets. See: https://cloud.google.com/sql/docs/mysql/backup-recovery/pitr
Q3
You want to configure autohealing for network load balancing for a group of Compute Engine instances that run 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.
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.
Correct Answer
Create a managed instance group. Set the Autohealing health check to healthy (HTTP)
Explanation
Managed Instance Groups (MIGs) natively support autohealing by attaching an HTTP health check that recreates VMs unresponsive after a configurable number of attempts. Creating a MIG and setting the autohealing health check achieves multi-zone autohealing in the fewest steps. See: https://cloud.google.com/compute/docs/instance-groups/autohealing-instances-in-migs
Q4
You are using multiple configurations for gcloud. You want to review the configured Kubernetes Engine cluster of an inactive configuration using the fewest possible steps. What should you do?
Use gcloud config configurations describe to review the output.
B Use gcloud config configurations activate and gcloud config list to review the output.
C Use kubectl config get-contexts to review the output.
D Use kubectl config use-context and kubectl config view to review the output.
Correct Answer
Use gcloud config configurations describe to review the output.
Explanation
The 'gcloud config configurations describe <NAME>' command displays the full settings of a named gcloud configuration, including the configured GKE cluster, without switching the active configuration. This is the minimum-step approach. See: https://cloud.google.com/sdk/gcloud/reference/config/configurations/describe
Q5
Your company uses Cloud Storage to store application backup files for disaster recovery purposes. You want to follow Google's recommended practices. Which storage option should you use?
A Multi-Regional Storage
B Regional Storage
C Nearline Storage
Coldline Storage
Correct Answer
Coldline Storage
Explanation
Coldline Storage is Google's recommended class for disaster recovery backups accessed fewer than once per year. It offers the lowest storage price for rarely-accessed data while remaining immediately available when needed. See: https://cloud.google.com/storage/docs/storage-classes#coldline
Q6
You have sensitive data stored in three Cloud Storage buckets and have enabled data access logging. You want to verify activities for a particular user for these buckets, using the fewest possible steps. You need to verify the addition of metadata labels and which files have been viewed from those buckets. What should you do?
A Using the GCP Console, filter the Activity log to view the information.
Using the GCP Console, filter the Stackdriver log to view the information.
C View the bucket in the Storage section of the GCP Console.
D Create a trace in Stackdriver to view the information.
Correct Answer
Using the GCP Console, filter the Stackdriver log to view the information.
Explanation
Cloud Audit Logs captures Data Access log entries for Cloud Storage, recording metadata writes and object reads. Filtering the Cloud Logging (Stackdriver) log by user and resource allows verification of both metadata label additions and file views in a single view. See: https://cloud.google.com/storage/docs/audit-logging
Q7
Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to maintain the number of running instances specified by the template to be able to process expected application traffic. What should you do?
Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
B Create an instance template that contains valid syntax that will be used by the instance group. Verify that the instance name and persistent disk name values are not the same in the template.
C Verify that the instance template being used by the instance group contains valid syntax. Delete any persistent disks with the same name as instance names. Set the disks.autoDelete property to true in the instance template.
D Delete the current instance template and replace it with a new instance template. Verify that the instance name and persistent disk name values are not the same in the template. Set the disks.autoDelete property to true in the instance template.
Correct Answer
Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
Explanation
A MIG fails to create instances when the instance template has invalid syntax or when instance names conflict with existing persistent disk names. Creating a corrected instance template with distinct names resolves the conflict without deleting persistent disks unnecessarily. See: https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances
Q8
You have an application on a general-purpose Compute Engine instance that is experiencing excessive disk read throttling on its Zonal SSD Persistent Disk. The application primarily reads large files from disk. The disk size is currently 350 GB. You want to provide the maximum amount of throughput while minimizing costs. What should you do?
A Increase the size of the disk to 1 TB.
B Increase the allocated CPU to the instance.
Migrate to use a Local SSD on the instance.
D Migrate to use a Regional SSD on the instance.
Correct Answer
Migrate to use a Local SSD on the instance.
Explanation
Local SSDs deliver significantly higher throughput and IOPS than Zonal Persistent SSDs and cost less than Regional SSDs. For a read-heavy workload with large files, migrating to a Local SSD maximizes throughput while minimizing cost. See: https://cloud.google.com/compute/docs/disks/local-ssd
Q9
Your company is using Google Workspace to manage employee accounts. Anticipated growth will increase the number of personnel from 100 employees to 1,000 employees within 2 years. Most employees will need access to your company’s Google Cloud account. The systems and processes will need to support 10x growth without performance degradation, unnecessary complexity, or security issues. What should you do?
A Migrate the users to Active Directory. Connect the Human Resources system to Active Directory. Turn on Google Cloud Directory Sync (GCDS) for Cloud Identity. Turn on Identity Federation from Cloud Identity to Active Directory.
Organize the users in Cloud Identity into groups. Enforce multi-factor authentication in Cloud Identity.
C Turn on identity federation between Cloud Identity and Google Workspace. Enforce multi-factor authentication for domain wide delegation.
D Use a third-party identity provider service through federation. Synchronize the users from Google Workplace to the third-party provider in real time.
Correct Answer
Organize the users in Cloud Identity into groups. Enforce multi-factor authentication in Cloud Identity.
Explanation
Organizing Cloud Identity users into groups and enforcing multi-factor authentication (MFA) is Google's recommended scalable identity management approach. It supports 10x growth without architectural changes and hardens security posture. See: https://cloud.google.com/identity/docs/how-to/set-up-mfa
Q10
Your managed instance group raised an alert stating that new instance creation has failed to create new instances. You need to solve the instance creation problem. What should you do?
Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
B Create an instance template that contains valid syntax that will be used by the instance group. Verify that the instance name and persistent disk name values are not the same in the template.
C Verify that the instance template being used by the instance group contains valid syntax. Delete any persistent disks with the same name as instance names. Set the disks.autoDelete property to true in the instance template.
D Delete the current instance template and replace it with a new instance template. Verify that the instance name and persistent disk name values are not the same in the template. Set the disks.autoDelete property to true in the instance template.
Correct Answer
Create an instance template that contains valid syntax which will be used by the instance group. Delete any persistent disks with the same name as instance names.
Explanation
MIG instance creation failures most commonly arise from invalid instance template syntax or name conflicts between instances and persistent disks. Creating a new valid template with distinct instance and disk names restores the desired replica count. See: https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances
Q11
You have an on-premises data analytics set of binaries that processes data files in memory for about 45 minutes every midnight. The sizes of those data files range from 1 gigabyte to 16 gigabytes. You want to migrate this application to Google Cloud with minimal effort and cost. What should you do?
A Create a container for the set of binaries. Use Cloud Scheduler to start a Cloud Run job for the container.
B Create a container for the set of binaries. Deploy the container to Google Kubernetes Engine (GKE) and use the Kubernetes scheduler to start the application.
C Upload the code to Cloud Functions. Use Cloud Scheduler to start the application.
Lift and shift to a VM on Compute Engine. Use an instance schedule to start and stop the instance.
Correct Answer
Lift and shift to a VM on Compute Engine. Use an instance schedule to start and stop the instance.
Explanation
Migrating on-premises analytics binaries to Compute Engine VMs provides a lift-and-shift path that runs existing binaries without code changes, leveraging cloud scalability. This is the recommended first step when binaries cannot be easily refactored. See: https://cloud.google.com/solutions/migration-to-gcp-getting-started
Q12
You want to set up a Google Kubernetes Engine cluster. Verifiable node identity and integrity are required for the cluster, and nodes cannot be accessed from the internet. You want to reduce the operational cost of managing your cluster, and you want to follow Google-recommended practices. What should you do?
Deploy a private autopilot cluster.
B Deploy a public autopilot cluster.
C Deploy a standard public cluster and enable shielded nodes.
D Deploy a standard private cluster and enable shielded nodes.
Correct Answer
Deploy a private autopilot cluster.
Explanation
Shielded GKE Nodes provide verifiable node identity and integrity via Secure Boot, vTPM, and Integrity Monitoring, ensuring nodes are not tampered with at boot time. Enable this feature with --enable-shielded-nodes at cluster creation. See: https://cloud.google.com/kubernetes-engine/docs/how-to/shielded-gke-nodes
Q13
Your application stores files on Cloud Storage by using the Standard Storage class. The application only requires access to files created in the last 30 days. You want to automatically save costs on files that are no longer accessed by the application. What should you do?
Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days.
B Create a cron job in Cloud Scheduler to call a Cloud Functions instance every day to delete files older than 30 days.
C Create a retention policy on the storage bucket of 30 days, and lock the bucket by using a retention policy lock.
D Enable object versioning on the storage bucket and add lifecycle rules to expire non-current versions after 30 days.
Correct Answer
Create an object lifecycle on the storage bucket to change the storage class to Archive Storage for objects with an age over 30 days.
Explanation
Cloud Storage Object Lifecycle Management automatically moves objects to cheaper storage classes (Nearline, Coldline, Archive) or deletes them based on configurable rules such as object age. This reduces costs without manual intervention. See: https://cloud.google.com/storage/docs/lifecycle
Q14
You recently discovered an issue with your rolling update in Google Kubernetes Engine (GKE). You now need to roll back a rolling update. What should you do?
A Delete the deployment.
B Use the kubectl rollout restart command to revert the deployment.
Use the kubectl rollout undo command.
D Manually scale down the new Pods and scale up the old Pods.
Correct Answer
Use the kubectl rollout undo command.
Explanation
The 'kubectl rollout undo deployment/<name>' command immediately reverts a GKE Deployment to its previous stable revision, recovering from a failed rolling update. This is the standard Kubernetes rollback mechanism. See: https://cloud.google.com/kubernetes-engine/docs/how-to/updating-apps#rolling_back_a_deployment
Q15
Several employees at your company have been creating projects with Cloud Platform and paying for it with their personal credit cards, which the company reimburses. The company wants to centralize all these projects under a single, new billing account. What should you do?
A Contact cloud-billing@google.com with your bank account details and request a corporate billing account for your company.
B Create a ticket with Google Support and wait for their call to share your credit card details over the phone.
C In the Google Platform Console, go to the Resource Manage and move all projects to the root Organizarion.
In the Google Cloud Platform Console, create a new billing account and set up a payment method.
Correct Answer
In the Google Cloud Platform Console, create a new billing account and set up a payment method.
Explanation
The Organization Policy Service with the 'constraints/resourcemanager.projectCreation' constraint restricts who can create new projects, preventing unauthorized project sprawl. Applying this at organization level enforces it across all folders and projects. See: https://cloud.google.com/resource-manager/docs/organization-policy/restricting-resources

ACE Practice Set-02

15 questions
Q1
You have an application that looks for its licensing server on the IP 10.0.3.21. You need to deploy the licensing server on Compute Engine. You do not want to change the configuration of the application and want the application to be able to reach the licensing server. What should you do?
Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server.
B Reserve the IP 10.0.3.21 as a static public IP address using gcloud and assign it to the licensing server.
C Use the IP 10.0.3.21 as a custom ephemeral IP address and assign it to the licensing server.
D Start the licensing server with an automatic ephemeral IP address, and then promote it to a static internal IP address.
Correct Answer
Reserve the IP 10.0.3.21 as a static internal IP address using gcloud and assign it to the licensing server.
Explanation
Assigning a static internal IP address to the Compute Engine instance that hosts the license server ensures that the application always finds it at the expected IP (10.0.3.21) after reboots or migrations. See: https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address
Q2
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.
Automatic Scaling with min_idle_instances set to 3.
Correct Answer
Automatic Scaling with min_idle_instances set to 3.
Explanation
App Engine Standard Environment supports automatic scaling to zero instances when there is no traffic, making it cost-efficient for variable workloads. Setting automatic scaling with min_instances=0 achieves this behavior. See: https://cloud.google.com/appengine/docs/standard/python3/config/appref#scaling_elements
Q3
You have a development project with appropriate IAM roles defined. You are creating a production project and want to have the same IAM roles on the new project, using the fewest possible steps. What should you do?
Use gcloud iam roles copy and specify the production project as the destination project.
B Use gcloud iam roles copy and specify your organization as the destination organization.
C In the Google Cloud Platform Console, use the 'create role from role' functionality.
D In the Google Cloud Platform Console, use the 'create role' functionality and select all applicable permissions.
Correct Answer
Use gcloud iam roles copy and specify the production project as the destination project.
Explanation
In Google Cloud IAM, roles granted at the project level apply only to that project. To give a developer the same access in a new project, you must explicitly grant the same IAM roles in that project, following the principle of least privilege. See: https://cloud.google.com/iam/docs/granting-changing-revoking-access
Q4
You need a dynamic way of provisioning VMs on Compute Engine. The exact specifications will be in a dedicated configuration file. You want to follow Google's recommended practices. Which method should you use?
Deployment Manager
B Cloud Composer
C Managed Instance Group
D Unmanaged Instance Group
Correct Answer
Deployment Manager
Explanation
Managed Instance Groups (MIGs) combined with instance templates provide a dynamic, declarative way to provision and manage groups of identical Compute Engine VMs. The template defines VM configuration, and the MIG manages creation, deletion, and healing. See: https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances
Q5
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>.
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.
Correct Answer
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.
Explanation
The recommended workflow for deploying a Dockerfile to GKE is: build the image with Cloud Build, push it to Artifact Registry (or Container Registry), create a Kubernetes Deployment manifest referencing the image, and apply it with kubectl. See: https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
Q6
Your development team needs a new Jenkins server for their project. You need to deploy the server using the fewest steps possible. What should you do?
A Download and deploy the Jenkins Java WAR to App Engine Standard.
B Create a new Compute Engine instance and install Jenkins through the command line interface.
C Create a Kubernetes cluster on Compute Engine and create a deployment with the Jenkins Docker image.
Use GCP Marketplace to launch the Jenkins solution.
Correct Answer
Use GCP Marketplace to launch the Jenkins solution.
Explanation
Google Cloud Marketplace offers pre-configured Jenkins solutions that can be deployed to Compute Engine in minutes, reducing setup complexity. This is Google's recommended approach for deploying third-party software quickly. See: https://cloud.google.com/marketplace/docs/deploy
Q7
You need to update a deployment in Deployment Manager without any resource downtime in the deployment. Which command should you use?
A gcloud deployment-manager deployments create --config <deployment-config-path>
gcloud deployment-manager deployments update --config <deployment-config-path>
C gcloud deployment-manager resources create --config <deployment-config-path>
D gcloud deployment-manager resources update --config <deployment-config-path>
Correct Answer
gcloud deployment-manager deployments update --config <deployment-config-path>
Explanation
Deployment Manager supports rolling updates with the 'gcloud deployment-manager deployments update' command. Using the --create-policy=CREATE_OR_ACQUIRE flag prevents downtime by updating resources in place rather than replacing them. See: https://cloud.google.com/deployment-manager/docs/deployments/updating-deployments
Q8
You need to run an important query in BigQuery but expect it to return a lot of records. You want to find out how much it will cost to run the query. You are using on-demand pricing. What should you do?
A Arrange to switch to Flat-Rate pricing for this query, then move back to on-demand.
Use the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator.
C Use the command line to run a dry run query to estimate the number of bytes returned. Then convert that bytes estimate to dollars using the Pricing Calculator.
D Run a select count (*) to get an idea of how many records your query will look through. Then convert that number of rows to dollars using the Pricing Calculator.
Correct Answer
Use the command line to run a dry run query to estimate the number of bytes read. Then convert that bytes estimate to dollars using the Pricing Calculator.
Explanation
For BigQuery queries that return very large result sets, setting the 'allowLargeResults' option combined with a destination table bypasses the default result size limit and persists results for downstream processing. See: https://cloud.google.com/bigquery/docs/writing-results#large-results
Q9
You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?
A Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
Create an instance template, and use the template in a managed instance group with autoscaling configured.
C Create an instance template, and use the template in a managed instance group that scales up and down based on the time of day.
D Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
Correct Answer
Create an instance template, and use the template in a managed instance group with autoscaling configured.
Explanation
For a single binary application that needs a traditional server environment, Compute Engine is the appropriate choice as it provides full control over the OS, runtime, and binary execution environment, unlike managed platforms such as App Engine. See: https://cloud.google.com/compute/docs/instances
Q10
You are analyzing Google Cloud Platform service costs from three separate projects. You want to use this information to create service cost estimates by service type, daily and monthly, for the next six months using standard query syntax. What should you do?
A Export your bill to a Cloud Storage bucket, and then import into Cloud Bigtable for analysis.
B Export your bill to a Cloud Storage bucket, and then import into Google Sheets for analysis.
C Export your transactions to a local file, and perform analysis with a desktop tool.
Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis.
Correct Answer
Export your bill to a BigQuery dataset, and then write time window-based SQL queries for analysis.
Explanation
Cloud Billing data export to BigQuery enables detailed cost analysis across multiple projects using SQL queries. This is Google's recommended approach for analyzing and visualizing billing data across an organization. See: https://cloud.google.com/billing/docs/how-to/export-data-bigquery
Q11
You need to set up a policy so that videos stored in a specific Cloud Storage Regional bucket are moved to Coldline after 90 days, and then deleted after one year from their creation. How should you set up the policy?
A Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 275 days (365 ג€" 90)
Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.
C Use gsutil rewrite and set the Delete action to 275 days (365-90).
D Use gsutil rewrite and set the Delete action to 365 days.
Correct Answer
Use Cloud Storage Object Lifecycle Management using Age conditions with SetStorageClass and Delete actions. Set the SetStorageClass action to 90 days and the Delete action to 365 days.
Explanation
Cloud Storage Object Lifecycle Management rules can automatically transition objects to Nearline Storage after a set number of days, reducing storage costs for infrequently accessed data without manual intervention. See: https://cloud.google.com/storage/docs/lifecycle#conditions
Q12
You have a Linux VM that must connect to Cloud SQL. You created a service account with the appropriate access rights. You want to make sure that the VM uses this service account instead of the default Compute Engine service account. What should you do?
When creating the VM via the web console, specify the service account under the 'Identity and API Access' section.
B Download a JSON Private Key for the service account. On the Project Metadata, add that JSON as the value for the key compute-engine-service- account.
C Download a JSON Private Key for the service account. On the Custom Metadata of the VM, add that JSON as the value for the key compute-engine- service-account.
D Download a JSON Private Key for the service account. After creating the VM, ssh into the VM and save the JSON under ~/.gcloud/compute-engine-service- account.json.
Correct Answer
When creating the VM via the web console, specify the service account under the 'Identity and API Access' section.
Explanation
Attaching a service account with the Cloud SQL Client role to a Compute Engine instance is the recommended way to authenticate the instance to Cloud SQL without managing credentials manually. The Cloud SQL Auth Proxy uses this identity. See: https://cloud.google.com/sql/docs/mysql/connect-compute-engine
Q13
You created an instance of SQL Server 2017 on Compute Engine to test features in the new version. You want to connect to this instance using the fewest number of steps. What should you do?
A Install a RDP client on your desktop. Verify that a firewall rule for port 3389 exists.
B Install a RDP client in your desktop. Set a Windows username and password in the GCP Console. Use the credentials to log in to the instance.
C Set a Windows password in the GCP Console. Verify that a firewall rule for port 22 exists. Click the RDP button in the GCP Console and supply the credentials to log in.
Set a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in.
Correct Answer
Set a Windows username and password in the GCP Console. Verify that a firewall rule for port 3389 exists. Click the RDP button in the GCP Console, and supply the credentials to log in.
Explanation
When a Compute Engine instance running SQL Server 2017 is no longer needed, deleting the instance stops all associated charges. Persistent disks must also be deleted separately unless set to auto-delete. See: https://cloud.google.com/compute/docs/instances/deleting-instance
Q14
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?
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.
Correct Answer
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.
Explanation
The 'gcloud config' command manages named configurations that store account, project, and region/zone settings. Switching between configurations with 'gcloud config configurations activate' is the recommended way to work across multiple accounts and regions. See: https://cloud.google.com/sdk/gcloud/reference/config/configurations
Q15
You significantly changed a complex Deployment Manager template and want to confirm that the dependencies of all defined resources are properly met before committing it to the project. You want the most rapid feedback on your changes. What should you do?
A Use granular logging statements within a Deployment Manager template authored in Python.
B Monitor activity of the Deployment Manager execution on the Stackdriver Logging page of the GCP Console.
C Execute the Deployment Manager template against a separate project with the same configuration, and monitor for failures.
Execute the Deployment Manager template using the ג€"-preview option in the same project, and observe the state of interdependent resources.
Correct Answer
Execute the Deployment Manager template using the ג€"-preview option in the same project, and observe the state of interdependent resources.
Explanation
The 'gcloud deployment-manager deployments create --preview' flag validates a Deployment Manager template and shows what resources would be created or changed without actually deploying them, allowing safe review of complex template changes. See: https://cloud.google.com/deployment-manager/docs/deployments/previewing-deployments

Want More Practice?

These are just the free questions. Unlock the full ACE - Associate Cloud Engineer exam library with hundreds of additional questions, timed practice mode, and progress tracking.

← Back to ACE - Associate Cloud Engineer Exams