Google Cloud

Free ACE - Associate Cloud Engineer Practice Questions

Test your knowledge with 10 free sample practice questions for the ACE - Associate Cloud Engineer certification. Each question includes a detailed explanation to help you learn.

10 Questions
No time limit
Free - No signup required

Disclaimer: These are original, AI-generated practice questions created by ProctorPulse for exam preparation purposes. They are not sourced from any official exam and are not affiliated with or endorsed by Google Cloud. Use them as a study aid alongside official preparation materials.

Question 1Medium

Your organization runs a Cloud Build CI/CD pipeline in Project A that needs to deploy Compute Engine instances in Project B. You want to avoid storing service account keys in the build configuration. What authentication approach should you configure to allow the Cloud Build service account to deploy resources in Project B?

AGrant the Cloud Build service account from Project A the serviceAccountUser role on a service account in Project B, then configure impersonation in the deployment script using the --impersonate-service-account flag
BCreate a custom IAM role in Project B that includes compute.instances.create permission and bind it directly to the Cloud Build service account from Project A
CEnable the Service Account Credentials API in both projects and use short-lived access tokens generated through the generateAccessToken method for cross-project authentication
DConfigure a VPC Service Controls perimeter that spans both projects and grant the Cloud Build service account the iam.serviceAccountTokenCreator role in Project A
Question 2Medium

An organization is using a Google Cloud service account for a data processing application. The application only needs to read data from a specific Cloud Storage bucket. How should you configure the IAM policy for the service account to follow the principle of least privilege?

AGrant the service account the 'Storage Object Viewer' role on the specific bucket.
BAssign the 'Storage Admin' role to the service account at the project level.
CAdd the 'Storage Object Creator' role to the service account on the bucket.
DProvide the service account with the 'Storage Legacy Bucket Reader' role on the bucket.
Question 3Medium

What approach should the team adopt to authenticate the Cloud Function during local testing while maintaining security best practices?

AGenerate a service account key file, store it in the project repository with restricted file permissions, and reference it using the GOOGLE_APPLICATION_CREDENTIALS environment variable during local execution
BCreate a service account key file, store it outside the project directory in a secure location on each developer's workstation, set GOOGLE_APPLICATION_CREDENTIALS to its path, and add the key filename pattern to .gitignore
CUse the gcloud auth application-default login command on each developer workstation to obtain user credentials, then impersonate the service account programmatically within the Cloud Function code during local testing
DExtract the service account's private key from Cloud Console, encrypt it using a team-shared passphrase, commit the encrypted file to the repository, and decrypt it during local function initialization
Question 4Easy

A new application needs to access data stored in a cloud storage bucket. You have created a service account for this application. Which role should you assign to the service account to ensure it can read data from the bucket without granting unnecessary permissions?

AStorage Viewer
BStorage Admin
CStorage Object Creator
DStorage Object Viewer
Question 5Hard

After reviewing the access logs, which sequence of actions would establish the minimum required permissions for this service account while maintaining operational continuity?

AUse Policy Analyzer to identify accessed APIs over 90 days, create a custom role with only those permissions, bind the custom role to the service account, remove the Owner role, then monitor for access denied errors over 2 weeks
BCreate a custom role with predefined roles Editor and Viewer combined, apply it to the service account, remove Owner role immediately, then use Policy Troubleshooter to verify all operations succeed
CExport Cloud Audit Logs to BigQuery, query for service account activity, manually map each API call to IAM permissions, create a custom role, test in a development project, then apply to production
DEnable Policy Intelligence recommendations, wait 90 days for machine learning analysis, apply the auto-generated custom role suggestions, remove Owner role, then use Access Transparency logs to confirm no permission gaps
Question 6Easy

What is the primary purpose of a service account in a cloud project?

ATo manage billing and invoicing for the project.
BTo provide authentication for applications and services.
CTo store and manage large datasets securely.
DTo facilitate communication between team members.
Question 7Hard

A service account is unable to access a certain cloud storage bucket, despite being configured with a role that should allow access. What would be the most effective step to diagnose the issue?

ACheck if the service account has the correct role assigned at the project level.
BReview the bucket's IAM policy to ensure the service account is explicitly granted access.
CVerify if the service account's key has been revoked or expired.
DInspect the project's organization policy for any restrictions affecting the service account.
Question 8Easy

Your team has deployed a data processing application on a Compute Engine instance that needs to retrieve log files stored in a Cloud Storage bucket. What approach should you use to enable the application to authenticate and access the bucket contents?

ACreate a service account with Storage Object Viewer role, attach it to the Compute Engine instance, and configure the application to use Application Default Credentials
BGenerate a service account key file, store it in the instance's home directory, and set the GOOGLE_APPLICATION_CREDENTIALS environment variable to its path
CCreate an IAM user account with bucket access permissions and embed the username and password directly in the application code
DEnable public access on the Cloud Storage bucket and configure the application to read objects without authentication
Question 9Medium

(Select all that apply) You are configuring access for three containerized microservices deployed on Google Kubernetes Engine. Service A handles user analytics and writes to BigQuery datasets. Service B processes messages from Pub/Sub and stores summaries in Cloud SQL. Service C reads from BigQuery for reporting purposes only. Which configurations properly implement least privilege access control?

(Select all that apply)

ACreate three separate service accounts: grant Service A's account BigQuery Data Editor on specific datasets, grant Service B's account Pub/Sub Subscriber and Cloud SQL Client roles, grant Service C's account BigQuery Data Viewer on required datasets
BCreate three separate service accounts with identical permissions including BigQuery Admin, Pub/Sub Admin, and Cloud SQL Admin to ensure all services can perform their functions without access errors
CCreate a single service account with BigQuery Data Editor, Pub/Sub Subscriber, and Cloud SQL Client roles, then configure all three microservices to use this shared service account for simplified management
DCreate three separate service accounts: grant Service A's account roles/bigquery.dataEditor at the dataset level, grant Service B's account roles/pubsub.subscriber on specific subscriptions and roles/cloudsql.client, grant Service C's account roles/bigquery.dataViewer at the dataset level
Question 10Medium

What should you configure to allow a team member to temporarily access a cloud resource using service account impersonation?

AGrant the user the 'Service Account User' role on the service account and configure time-based access.
BShare the service account key file with the user for a limited period.
CAdd the user to a group with the necessary IAM roles for the required access.
DCreate a custom role with service account impersonation permissions and assign it to the user.

Ready for More?

These 10 questions are just a preview. Create a free account to practice up to 3 topics with 50 questions per day — or upgrade to Pro for unlimited access.

Ready to Pass the ACE - Associate Cloud Engineer?

Join thousands of professionals preparing for their ACE - Associate Cloud Engineer certification with ProctorPulse. AI-generated questions, detailed explanations, and progress tracking.