0
0
GCPcloud~20 mins

Configuration properties in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Configuration Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Configuration
intermediate
2:00remaining
Identify the correct GCP configuration for enabling Stackdriver logging on a Compute Engine VM

You want to enable Stackdriver logging on a Google Compute Engine VM instance using the metadata server. Which configuration property must be set correctly?

ASet the metadata key 'enable-stackdriver-logging' to 'true' on the VM instance
BSet the metadata key 'google-logging-enabled' to 'TRUE' on the VM instance
CSet the metadata key 'logging.googleapis.com/enable' to 'true' on the VM instance
DSet the metadata key 'enable-oslogin' to 'TRUE' on the VM instance
Attempts:
2 left
💡 Hint

Think about the exact metadata key that controls Stackdriver logging on VM instances.

Architecture
intermediate
2:00remaining
Choose the correct configuration to restrict Cloud Storage bucket access to a specific VPC network

You want to configure a Cloud Storage bucket so that only resources inside a specific VPC network can access it. Which configuration property should you use?

AEnable the bucket's 'publicAccessPrevention' property to 'enforced'
BConfigure a VPC Service Controls perimeter including the bucket and the VPC network
CSet the bucket's IAM policy to include the VPC network as a member
DSet the bucket's 'networkConfig' property to the VPC network's name
Attempts:
2 left
💡 Hint

Think about how Google Cloud restricts access between services and networks.

security
advanced
2:00remaining
Determine the effect of setting 'publicAccessPrevention' to 'enforced' on a Cloud Storage bucket

What is the result of setting the 'publicAccessPrevention' property to 'enforced' on a Cloud Storage bucket?

AThe bucket allows public access only if the 'allUsers' member is added to IAM
BOnly users with the 'Storage Object Viewer' role can access the bucket publicly
CThe bucket becomes publicly accessible to anyone on the internet
DAll public access to the bucket is blocked regardless of IAM policies
Attempts:
2 left
💡 Hint

Consider what 'publicAccessPrevention' means for public permissions.

service_behavior
advanced
2:00remaining
Predict the behavior when setting 'autoscalingPolicy' minInstances higher than maxInstances in Cloud Run

In Cloud Run, what happens if you configure the autoscaling policy with 'minInstances' set to 5 and 'maxInstances' set to 3?

ACloud Run will throw a configuration error and reject the deployment
BCloud Run will set both 'minInstances' and 'maxInstances' to 5 automatically
CCloud Run will autoscale between 3 and 5 instances dynamically
DCloud Run will ignore the 'minInstances' and use 'maxInstances' as 3
Attempts:
2 left
💡 Hint

Think about valid ranges for autoscaling configuration.

Best Practice
expert
3:00remaining
Select the best configuration property to enforce encryption with customer-managed keys (CMEK) on all BigQuery datasets in a project

You want to enforce that all BigQuery datasets in your project use customer-managed encryption keys (CMEK) by default. Which configuration approach achieves this best?

AEnable CMEK enforcement via an Organization Policy constraint for BigQuery datasets
BSet the project-level default encryption key property to the CMEK key resource name
CManually specify the CMEK key in each dataset's encryption configuration
DConfigure a Cloud IAM role that requires CMEK usage on BigQuery datasets
Attempts:
2 left
💡 Hint

Consider how to enforce policies across all datasets automatically.