You are configuring IAM permissions for a project. What happens if a user has multiple roles with conflicting permissions?
AThe more restrictive permission applies
BThe least restrictive permission applies
CConflict results in no permissions
DRandomly selected permissions apply
Explanation
In IAM, the least restrictive permission takes precedence over conflicting permissions assigned to the user.
Q442
Which service provides serverless execution in GCP?
AGoogle Cloud Functions
BGoogle Compute Engine
CGoogle Kubernetes Engine
DGoogle App Engine
Explanation
Cloud Functions is specifically designed for serverless execution, while other options focus on managed or container-based services.
Q443
A company needs to restrict access to certain GCP projects for its service account. What should you use?
AIAM Policies
BCloud Functions
CCloud Shell
DBigQuery Datasets
Explanation
IAM Policies allow you to manage access control policies, while the other options do not manage permissions.
Q444
You are configuring a firewall rule in GCP. What happens if you set an 'allow' rule for a port without an applicable 'deny' rule?
ATraffic is blocked by default.
BTraffic is allowed to that port.
CTraffic is allowed for all ports.
DOnly internal traffic is allowed.
Explanation
An allow rule permits traffic on the specified port; no deny rule means default behavior allows that traffic, while other options misinterpret default behaviors.
Q445
Which service is best for executing serverless code?
ACloud Functions
BCloud Run
CCompute Engine
DApp Engine
Explanation
Cloud Functions is designed for serverless code execution, while others are not serverless in their nature.
Q446
A company needs to upload large datasets regularly. Which storage class is most cost-effective for infrequent access?
AStandard
BNearline
CColdline
DArchive
Explanation
Coldline is designed for infrequent access at a lower cost than Nearline.
Q447
What happens when you delete a Google Cloud Pub/Sub topic?
AMessages remain accessible
BAll subscriptions are deleted
CData is permanently lost
DTopic can be restored later
Explanation
Deleting a topic also deletes all subscriptions associated, while messages are inaccessible thereafter.
Q448
Which service provides fully managed relational databases?
ACloud SQL
BBigQuery
CCloud Datastore
DFirestore
Explanation
Cloud SQL manages relational databases, while others do not.
Q449
A company needs to analyze large datasets quickly. Which Google Cloud service should they use?
ACloud Pub/Sub
BBigQuery
CCompute Engine
DCloud Functions
Explanation
BigQuery is optimized for fast analysis of large datasets.
Q450
What happens when you set a VM's disk to be non-bootable?
AVM will shut down immediately
BData can still be accessed
CVM will not start from that disk
DDisk will be deleted automatically
Explanation
A non-bootable disk won't allow the VM to start from it.