A company needs to monitor and analyze security logs in real time. Which tool should they use?
ACloud Audit Logs
BCloud Logging
CCloud Trace
DCloud Monitoring
Explanation
Cloud Logging allows you to collect and analyze log data, while the others do not focus specifically on logs.
Q12
What happens when you do not set an IAM policy for a Google Cloud resource?
AResource defaults to public access
BNo access is granted by default
COnly admins can access it
DResource becomes read-only by default
Explanation
Google Cloud resources deny access by default unless specified, while the other options incorrectly assume defaults or behaviors about access controls.
Q13
Which Google Cloud service facilitates automated security scanning?
AGoogle Cloud Security Command Center
BGoogle BigQuery
CGoogle Compute Engine
DGoogle Cloud Pub/Sub
Explanation
Google Cloud Security Command Center provides automated security scanning, while the others serve different purposes like data analytics or messaging.
Q14
A company needs to ensure that all API calls are logged for audit purposes. Which service should they use?
ACloud Tasks
BCloud Logging
CCloud Pub/Sub
DCloud Functions
Explanation
Cloud Logging captures logs for all activities including API calls while the others do not focus on logging.
Q15
What happens when a VM instance is set to 'preemptible'?
AInstance runs indefinitely but can be resumed
BInstance may be terminated at any time
CInstance becomes permanently free
DInstance cannot be accessed remotely
Explanation
Preemptible VMs can be terminated by Google Cloud at any time, unlike the other options.
Q16
Which service is primarily used for managing identity and access in Google Cloud?
AIdentity and Access Management (IAM)
BCloud Logs
CCloud Storage
DCloud Functions
Explanation
IAM manages user access and policies, while others serve different functions.
Q17
A company needs to implement VPC peering between two projects. What is a prerequisite?
ABoth projects must belong to same organization
BBoth projects should use the same IP range
CCross-project billing enabled
DVPCs cannot have overlapping IP ranges
Explanation
VPCs must have non-overlapping IP ranges for successful peering.
Q18
What happens when you disable a Google Cloud service account?
AAll access rights are revoked
BThe service account remains active
COnly IAM roles are revoked
DBilling stops immediately
Explanation
Disabling a service account revokes all access rights immediately.
Q19
Which service is best for analyzing real-time streaming data in Google Cloud?
ABigQuery
BDataflow
CCloud Storage
DCloud Pub/Sub
Explanation
Dataflow is designed for real-time data processing, unlike the other options.
Q20
A company needs to secure its APIs against external threats. Which practice is most effective?
AEnable CORS for all APIs
BImplement IP whitelisting
CUse API keys only
DDeploy API on public subnet
Explanation
IP whitelisting significantly limits access to trusted sources, whereas the other options provide weaker protections.