You are configuring IAM roles for a team. What happens when you assign a custom role without sufficient permissions?
APermissions are inherited.
BAccess Denied errors occur.
CUsers gain full access.
DRole is ignored altogether.
Explanation
Without sufficient permissions, users will face access restrictions, and thus receive Access Denied errors.
Q172
Which service would you use for real-time analytics on streaming data?
ABigQuery
BCloud Dataflow
CCloud Storage
DCloud SQL
Explanation
Cloud Dataflow processes streaming data in real-time, while the others focus on storage or batch processing.
Q173
A company needs to set up a VM with specific security requirements. What should be done first?
AConfigure firewall rules.
BDeploy the VM instance.
CAssign IAM roles.
DChoose correct machine type.
Explanation
Assigning IAM roles sets up access controls before deploying resources.
Q174
What happens when you apply a Custom IAM Role to a user in GCP?
AUser loses all permissions.
BLess privileges than predefined roles.
CUser gets all project permissions.
DUser obtains explicit permissions defined.
Explanation
Custom roles grant only the permissions specified, not more or less.
Q175
Which service automates resource scaling in Google Cloud?
ACloud Functions
BCloud Load Balancing
CGoogle Kubernetes Engine
DCloud Pub/Sub
Explanation
Google Kubernetes Engine automatically scales containerized applications, while others do not provide full automation.
Q176
A company needs to securely share files across multiple teams. Which solution should they use?
AGoogle Cloud Functions
BGoogle Drive Shared Drives
CCloud Storage Standard Bucket
DCompute Engine Instances
Explanation
Google Drive Shared Drives allows secure team file sharing, while the others are not designed for that purpose.
Q177
You are configuring a firewall rule that allows traffic only from IP address 203.0.113.0. What is the result if you also include a rule to allow all traffic?
AOnly traffic from 203.0.113.0 is allowed
BAll traffic will be allowed through
CNo traffic will be allowed
DDefault denies all traffic
Explanation
Including a rule to allow all traffic overrides specific rules, making the specific rule ineffective.
Q178
What service allows automatic scaling of application instances?
ACloud Run
BCloud SQL
CCloud Pub/Sub
DCloud Storage
Explanation
Cloud Run scales applications automatically based on incoming traffic; others do not provide this function.
Q179
You are configuring a service account for a VM instance. Which permission should you grant for accessing Cloud Storage?
AStorage Object Viewer
BCompute Instance Admin
CViewer
DAdministrator
Explanation
Storage Object Viewer provides read access to Cloud Storage, while others are unrelated to storage access.
Q180
What happens when a GCP Cloud Function times out during execution?
AFunction restarts automatically
BFunction fails without response
CFunction's output is cached
DFunction scales up instantly
Explanation
A timeout results in the function failing, and an error response is returned; other options do not occur upon timeout.