A company needs to securely connect to their Google Cloud resources from on-premises. Which approach provides the most secure connection?
ANAT configuration
BVPN gateway
CPublic IP allocation
DCloud Load Balancer
Explanation
A VPN gateway creates secure connections, while others do not provide such security.
Q222
What happens when you set a Google Cloud Pub/Sub topic with no retention period?
AMessages persist indefinitely
BMessages expire after 7 days
CMessages are lost immediately
DMessages are stored for one hour
Explanation
Without a custom retention period, the default is 7 days before message expiration.
Q223
Which service would you use to manage Kubernetes clusters?
ACloud Functions
BCloud Run
CGoogle Kubernetes Engine
DBigQuery
Explanation
Google Kubernetes Engine is specifically designed for managing Kubernetes clusters, while the other options serve different purposes.
Q224
A company needs a lightweight, serverless orchestration solution for automated tasks. Which service do you recommend?
ACloud Run
BApp Engine
CCloud Functions
DCompute Engine
Explanation
Cloud Functions provides a lightweight, serverless environment specifically for running automated tasks in response to events.
Q225
You are configuring a Cloud Pub/Sub topic but forget to set the access control policies. What happens when a user tries to publish messages?
AMessages will be published successfully.
BAccess denied error will occur.
COnly some users can publish.
DNo messages will be processed.
Explanation
If no access control policies are defined, the default behavior allows publishing by anyone, while other options suggest restrictive outcomes that do not occur.
Q226
Which service allows users to manage Docker containers?
AGoogle Kubernetes Engine
BCloud Functions
CApp Engine
DCloud Run
Explanation
Google Kubernetes Engine orchestrates Docker containers, while others handle different compute services.
Q227
A company needs to store sensitive user data securely. Which database option should they use?
ABigQuery
BCloud SQL with encryption
CFirestore without rules
DSpanner with no IAM roles
Explanation
Cloud SQL with encryption provides the necessary security for sensitive data, while the others are less secure or improper choices.
Q228
You are configuring a Virtual Private Cloud (VPC). What happens when you use a custom subnet?
AResources are isolated from the internet
BAll services are automatically allowed
CIP ranges cannot be defined
DSubnet does not support Peering
Explanation
Custom subnets provide isolation, while the others present incorrect functionalities.
Q229
Which service is used for managing containerized applications?
AGoogle Kubernetes Engine
BGoogle App Engine
CGoogle Cloud Functions
DGoogle Compute Engine
Explanation
Google Kubernetes Engine is specifically designed for managing containers, while the other options serve different purposes.
Q230
A company needs to store sensitive data securely. What is the best practice?
AUse public cloud storage
BEncrypt the data at rest
CLeave data unencrypted
DUse only local storage
Explanation
Encrypting data at rest adds security; other options expose sensitive data.