Which Google Cloud service is best for deploying containerized applications?
AGoogle Kubernetes Engine
BCloud Functions
CApp Engine
DCloud Run
Explanation
Google Kubernetes Engine is optimized for container orchestration, unlike the other options which serve different purposes.
Q32
A company needs to process large datasets in real-time. Which service should they choose?
ACloud Storage
BDataflow
CBigQuery
DCloud Pub/Sub
Explanation
Dataflow is specifically designed for real-time data processing, while others focus on storage or analysis.
Q33
What happens when you assign a custom IAM role without any permissions to a user?
AUser gains no access
BUser retains inherited permissions
CUser can access all resources
DUser must wait for approval
Explanation
The user retains inherited permissions from their group roles and cannot lose access granted through them.
Q34
Which service helps manage Kubernetes clusters in Google Cloud?
AGoogle Kubernetes Engine
BGoogle App Engine
CCloud Functions
DCloud Run
Explanation
Google Kubernetes Engine is specifically designed for managing Kubernetes clusters, while the others are for different tasks/levels of abstraction.
Q35
A company needs to store large amounts of image files to serve to users in near real-time. Which storage option should they select for efficiency?
ACloud SQL
BCloud Storage
CCloud Memorystore
DBigQuery
Explanation
Cloud Storage is optimized for unstructured data like images, as opposed to databases or analytics solutions.
Q36
You are configuring IAM permissions for a project. What happens if you grant a user an explicit role while they are also part of a group with a more restrictive role?
AThe explicit role applies.
BThe group role applies.
CBoth roles are combined.
DNo permissions are granted.
Explanation
Explicit permissions take precedence over group permissions in IAM, meaning the user will receive the permissions of the more permissive role.
Q37
Which Google Cloud service is optimal for building scalable web applications?
AApp Engine
BCloud Functions
CCloud Run
DCompute Engine
Explanation
App Engine provides a fully managed environment tailored for scalable web applications, while others have different use cases.
Q38
You are configuring IAM permissions for a new project. What is the principle of least privilege?
AMaximum privileges granted immediately
BMinimal privileges required provided
CPeriodic privilege reassessment
DRole-based access for all users
Explanation
The principle of least privilege means providing users only the permissions they need to perform their jobs.
Q39
What happens when you set a Cloud Function's HTTP trigger to 'allow unauthenticated requests'?
AOnly authorized users can access
BPublic can invoke the function
CFunction becomes disabled
DRequires API key for access
Explanation
Allowing unauthenticated requests enables anyone on the internet to invoke the Cloud Function.
Q40
Which service is used for building serverless applications on Google Cloud?
ACloud Functions
BCompute Engine
CApp Engine
DKubernetes Engine
Explanation
Cloud Functions is specifically designed for serverless applications; the others require managing infrastructure.