A company needs to securely manage API keys for multiple services. What is the best practice?
AEmbed keys in the application code
BStore in Google Cloud Key Management
CUse environment variables only
DStore in a plaintext file
Explanation
Storing keys in Google Cloud Key Management ensures security and proper access control, while the other options expose keys to risks.
Q72
You are configuring IAM policies for a project. What happens if you grant a user both Viewer and Editor roles?
AUser can only view resources
BUser loses Viewer access
CUser retains both permissions
DUser gains no permissions
Explanation
In IAM, a user retains all granted permissions, accumulating access from multiple roles.
Q73
Which Google Cloud service is best for real-time analytics?
ABigQuery
BCloud Storage
CCloud Functions
DCloud Pub/Sub
Explanation
BigQuery is optimized for real-time analytics, while the others serve different uses like storage or serverless execution.
Q74
A company needs to process large streams of data in real time while ensuring low latency. Which Google Cloud component should they use?
ACloud Dataflow
BCloud SQL
CCloud Storage
DCloud Run
Explanation
Cloud Dataflow is designed for real-time data processing, whereas the other options are primarily for transactional storage or computing tasks.
Q75
You are configuring IAM permissions for a GCP project. What happens if you use a custom role with no permissions?
AUser inherits project owner permissions.
BUser cannot perform any actions.
CUser has default IAM roles applied.
DUser gains full control over resources.
Explanation
A custom role with no permissions effectively denies all access, while the other options misrepresent IAM behavior in GCP.
Q76
Which Google Cloud service can automatically scale to manage variability in workloads?
AGoogle Kubernetes Engine
BCompute Engine
CCloud Functions
DApp Engine
Explanation
App Engine automatically scales based on demand, while others require manual setup.
Q77
A company needs to transfer large datasets quickly and securely into Google Cloud. Which option is optimal?
ACloud Storage Transfer Service
BDirect upload via console
CGoogle Cloud Console for BigQuery
DMigration tools in Dataflow
Explanation
Cloud Storage Transfer Service is designed specifically for quick, secure data transfer.
Q78
What happens when you assign a Compute Engine instance to a predefined IAM role?
AInstance loses all permissions
BRole grants instance predefined permissions
CInstance inherits project permissions
DNone of the above
Explanation
Assigning a role grants the instance permissions defined by that role, affecting its access level.
Q79
A company needs to store vast amounts of unstructured data efficiently. Which Google Cloud service is best suited for this?
ACloud Datastore
BCloud Storage
CBigQuery
DCloud SQL
Explanation
Cloud Storage is optimized for unstructured data; other services cater better to structured or transactional data.
Q80
You are configuring IAM policies for a team. What happens when you assign a role to a user at the organization level?
ARole applies only to that project.
BRole applies across all resources.
CUser cannot access any resources.
DRole is overridden by project roles.
Explanation
Assigning a role at the organization level grants access to all resources unless overridden by more specific roles.