Courseiva

CCNA Cdl Google Cloud Security Questions

72 questions · Cdl Google Cloud Security topic · All types, answers revealed

1
MCQhard

A company has a VPC with multiple subnets and wants to prevent data exfiltration by restricting access to a Cloud Storage bucket from only resources within a defined perimeter. Which Google Cloud service should they use to create an API perimeter around the bucket?

A.VPC Service Controls
B.Cloud Armor
C.Cloud NAT
D.VPC firewall rules
AnswerA

VPC Service Controls is correct because it establishes security perimeters around Google Cloud resources such as Cloud Storage, BigQuery, and Cloud Bigtable. These perimeters restrict data movement by allowing only requests that originate from authorized projects, networks, and identities within the perimeter. This API-level control prevents data exfiltration even if credentials are compromised, going beyond what network-level firewalls can achieve.

Why this answer

VPC Service Controls allows you to define perimeters around Google Cloud services like Cloud Storage, preventing data exfiltration to networks outside the perimeter. VPC firewall rules control network traffic but not API access. Cloud Armor is for DDoS protection.

Cloud NAT is for outbound internet access.

2
Multi-Selecthard

A security team needs to detect and respond to threats in real time using network traffic analysis and log correlation. Which THREE services should they use? (Choose 3)

Select 3 answers
A.Cloud KMS
B.Chronicle
C.Cloud IDS
D.Cloud Armor
E.Security Command Center
AnswersB, C, E

Chronicle is Google Cloud's SIEM offering that ingests large volumes of telemetry and log data, normalizes it, and applies analytics and detection rules to identify suspicious activity. It correlates events across multiple data sources with context like user and network behavior, enabling security teams to prioritize and respond to threats. As a SIEM, Chronicle is designed specifically for centralized security analytics and incident investigation.

Why this answer

Cloud IDS provides network threat detection. Chronicle offers SIEM capabilities for log correlation and analysis. Security Command Center provides overall threat detection and response orchestration.

Cloud Armor is for web protection, not network traffic analysis. Cloud KMS is for key management.

3
MCQeasy

A developer needs to store a database password securely and access it from a Compute Engine VM. The password should be automatically rotated every 90 days. Which Google Cloud service should they use?

A.IAM
B.Cloud Storage with server-side encryption
C.Cloud KMS
D.Secret Manager
AnswerD

Secret Manager is Google Cloud's dedicated service for storing secrets like database passwords, API keys, and certificates. It provides versioned secret values, fine-grained IAM roles, and Cloud Audit Logging to track access, and it supports rotation policies by using Cloud Scheduler to create new versions. Unlike the other options, Secret Manager handles the password directly and offers the necessary controls for secure retrieval by applications.

Why this answer

Secret Manager is designed to store secrets like passwords, API keys, and certificates. It supports automatic rotation of secrets. Cloud KMS is for encryption keys, not secrets.

Cloud Storage is not secure for secrets. IAM does not store secrets.

4
MCQmedium

A company wants to protect its web application from common web exploits like SQL injection and cross-site scripting. They also need to block traffic from known malicious IP addresses. Which Google Cloud service should they use?

A.Security Command Center
B.reCAPTCHA Enterprise
C.Cloud IDS
D.Cloud Armor
AnswerD

Cloud Armor is Google Cloud's web application firewall (WAF) that filters HTTP/HTTPS traffic at the edge before it reaches your application. Its pre-configured WAF rules along with custom expressions block common web exploits such as SQL injection, cross-site scripting, and OWASP Top 10 threats. It also supports IP reputation lists, geo-blocking, and DDoS mitigation, delivering real-time protection for public web applications.

Why this answer

Cloud Armor provides WAF capabilities to protect against web exploits and DDoS, and can block traffic based on IP reputation.

5
MCQhard

A security engineer needs to ensure that a Compute Engine instance can access a Cloud Storage bucket using its own identity, without embedding service account keys in the instance. What should the engineer do?

A.Create a service account, grant it the required IAM roles on the bucket, and attach the service account to the Compute Engine instance.
B.Create a service account and download its key. Store the key in Cloud Storage and have the instance download it at startup.
C.Create a service account, generate a key, and use the gcloud auth activate-service-account command on the instance.
D.Use the default Compute Engine service account and grant it roles on the bucket; no additional steps needed.
AnswerA

Attaching a dedicated service account to the Compute Engine instance is the recommended keyless approach. The metadata server automatically provides OAuth2 access tokens to the instance, so the application code can implicitly use the attached identity to authenticate to Google Cloud APIs. Granting only the required IAM roles on the bucket (e.g., Storage Object Viewer) follows least privilege, and because no private key ever leaves Google's infrastructure, credential rotation and expiry are handled automatically by the platform.

Why this answer

Attaching a service account to the Compute Engine instance allows it to authenticate using instance metadata without keys.

6
MCQeasy

An organization needs to ensure that data stored in Cloud Storage is encrypted using keys that they manage and rotate themselves. Which encryption option should they choose?

A.Customer-managed encryption keys (CMEK)
B.Default encryption at rest
C.Customer-supplied encryption keys (CSEK)
D.Google-managed encryption keys
AnswerA

CMEK lets you create and manage your own keys within Cloud KMS, giving you control over the full key lifecycle—rotation schedules, enables/disables, and deletions—while still leveraging Google's infrastructure for storage and encryption operations. You can grant and revoke access to keys via IAM, and audit key use with Cloud Audit Logs. This directly satisfies the need to manage keys as the customer, because you retain administrative authority over the key material that protects the data.

Why this answer

CMEK allows customers to manage their own keys via Cloud KMS. CSEK requires customer-supplied keys but has operational overhead. Google-managed keys are default but not customer-managed.

7
MCQmedium

A security team wants to find misconfigurations and vulnerabilities across their Google Cloud environment, including VMs, storage, and IAM. Which service provides a unified view of these findings?

A.Cloud IDS
B.Security Command Center
C.Assured Workloads
D.Cloud Audit Logs
AnswerB

Security Command Center (SCC) is the correct choice because it provides a unified security management platform that continuously scans GCP resources for misconfigurations, vulnerabilities, and compliance violations. It aggregates findings from built-in detectors, integrates with services like Cloud Asset Inventory, and offers a dashboard with actionable insights and risk scores. This directly enables a security team to identify and remediate configuration weaknesses across the organization.

Why this answer

Security Command Center provides a centralized view of vulnerabilities and misconfigurations. Cloud Audit Logs are for auditing actions. Cloud IDS is for network threats.

Assured Workloads is for compliance.

8
MCQmedium

A company wants to implement a zero-trust access model for its internal applications, eliminating the need for a traditional VPN. Employees should be allowed access based on device posture and user identity, not just network location. Which Google Cloud solution should be used?

A.Security Command Center
B.Cloud VPN
C.Identity-Aware Proxy (IAP)
D.BeyondCorp Enterprise
AnswerD

BeyondCorp Enterprise is Google's fully integrated zero-trust solution that replaces the corporate VPN with identity- and context-aware access. It combines IAP with continuous device posture verification via Endpoint Verification, adaptive risk scoring, data loss prevention, and a centralized policy management console. BeyondCorp also offers a global 'kill switch' to instantly revoke access for any user or device, enabling security teams to enforce granular, zero-trust policies based on user identity, device state, and environmental context.

Why this answer

BeyondCorp Enterprise provides a zero-trust access model that uses identity and context to grant access without a VPN. Identity-Aware Proxy (IAP) is a component that enforces access policies based on identity and context.

9
MCQmedium

A security analyst needs to analyze large volumes of security logs from multiple GCP projects, detect anomalies, and investigate incidents. The solution should support advanced analytics and threat hunting. Which service is best suited?

A.Chronicle
B.Cloud Logging
C.BigQuery
D.Security Command Center
AnswerA

Chronicle is a cloud-native security information and event management (SIEM) platform designed specifically for ingesting, normalizing, and analyzing large volumes of security logs. It provides built-in threat detection, correlation rules, and fast search for threat hunting, making it the correct choice for a security analyst who needs to perform large-scale log analysis. Unlike general-purpose log or data tools, Chronicle is purpose-built for security operations, with features like detections, timelines, and retroactive analysis.

Why this answer

Chronicle is a cloud-native SIEM that ingests logs, provides analytics, and supports threat hunting.

10
MCQmedium

A data engineering team needs to store and manage database passwords and API keys used by their applications. Which Google Cloud service should they use?

A.Cloud KMS
B.Secret Manager
C.Cloud Key Management Service
D.Cloud Storage
AnswerB

Secret Manager is the correct choice for storing and managing database passwords because it is a dedicated secrets-management service that provides versioning, fine-grained IAM permissions, and audit logging for each secret access. It encrypts secret values in transit and at rest, and integrates seamlessly with Compute Engine, GKE, Cloud Run, and Cloud Functions so applications can retrieve secrets at runtime via a simple API. This avoids hardcoding credentials and supports easy rotation.

Why this answer

Secret Manager is designed to store secrets like passwords and API keys. Cloud KMS is for encryption keys. Cloud Key Management Service is for creating and managing cryptographic keys, not storing secrets.

Cloud Storage is for objects.

11
MCQeasy

A startup wants to secure access to its internal web applications without using a VPN. They need to enforce access based on user identity and device security posture. Which Google Cloud service should they use?

A.Identity-Aware Proxy (IAP)
B.Cloud VPN
C.VPC Service Controls
D.Cloud Armor
AnswerA

Identity-Aware Proxy (IAP) is the correct answer because it implements zero-trust access control at the application layer. When a user requests the internal web app, IAP uses OAuth-based authentication to verify their identity and validates contextual signals such as device security status, IP address, and geographic location. It then enforces fine-grained IAM roles (e.g., the 'IAP-secured Web App User' role) to allow or deny each session, providing user-centric access without exposing the entire VPC.

Why this answer

BeyondCorp Enterprise is Google's zero-trust solution that replaces VPNs by using identity and context (device, location) to grant access. Identity-Aware Proxy (IAP) is a component of BeyondCorp that enforces access at the application layer.

12
MCQmedium

A security engineer needs to monitor and analyze security logs from multiple GCP projects and on-premises sources in a centralized SIEM. Which Google Cloud service is designed for log management and security analytics at scale?

A.Cloud Logging
B.Chronicle
C.Security Command Center
D.Cloud IDS
AnswerB

Chronicle is Google Cloud's cloud-native SIEM purpose-built for ingesting massive volumes of security telemetry, normalizing it, and running continuous threat detection. Unlike simpler log tools, it provides automated correlation, an entity graph, and detection rules that enable security teams to hunt for and investigate threats. It integrates with Cloud Logging and other sources, making it the correct choice for security log monitoring and analysis.

Why this answer

Chronicle is Google Cloud's SIEM platform that ingests logs from various sources and provides security analytics. Security Command Center is for vulnerability management, not a SIEM. Cloud Logging is for log storage and basics, but not a full SIEM.

13
MCQmedium

A company wants to protect its web application running on Google Cloud from DDoS attacks and SQL injection. Which service should they use?

A.reCAPTCHA Enterprise
B.Cloud Armor
C.Cloud CDN
D.VPC firewall rules
AnswerB

Cloud Armor is Google Cloud's DDoS protection and web application firewall (WAF) service. It enforces L7 filtering rules—such as the OWASP ModSecurity Core Rule Set for SQLi and XSS, rate limiting, and custom expressions—at the edge of Google's global load balancing and Cloud CDN infrastructure. In addition, it provides always-on network-layer DDoS mitigation, making it the correct answer for protecting a GKE-hosted web app. It can be configured with preconfigured rules or tailored to block specific attack signatures.

Why this answer

Cloud Armor provides DDoS protection and WAF capabilities (including SQL injection prevention). Cloud CDN caches content but does not protect against attacks. VPC firewall rules are network-level only. reCAPTCHA protects against bots but not SQL injection.

14
MCQmedium

A company wants to replace its VPN-based remote access with a solution that grants access to internal web applications based on user identity and device context, without requiring a VPN. Which Google Cloud service should they use?

A.Access Transparency
B.Cloud Identity
C.Identity-Aware Proxy (IAP)
D.Cloud VPN
AnswerC

Identity-Aware Proxy (IAP) sits in front of HTTPS applications and evaluates each connection using Google credentials and additional context like IP address, geolocation, and device security posture before granting access. It enforces fine-grained role-based policies per resource, eliminating the need for a full VPN for remote users. IAP also supports TCP forwarding for SSH/RDP, so it can directly replace VPN for administrative access to VMs.

Why this answer

Identity-Aware Proxy (IAP) provides context-aware access to applications without a VPN, verifying user identity and device context. BeyondCorp Enterprise is a framework that includes IAP, but the question asks for the service that directly enforces access based on identity and context.

15
Multi-Selectmedium

A company wants to implement a zero-trust security model for accessing internal applications. Which TWO Google Cloud services should they use together? (Choose 2)

Select 2 answers
A.Cloud Identity
B.Cloud Armor
C.Identity-Aware Proxy (IAP)
D.BeyondCorp Enterprise
E.Cloud VPN
AnswersC, D

Identity-Aware Proxy (IAP) enforces zero-trust access by intercepting requests to applications and verifying the user's identity and contextual attributes, such as device security and network origin, against Cloud IAM policies. It applies least-privilege principles at the application layer, allowing only authenticated and authorized users to reach resources. IAP is a key building block for zero trust because it turns access decisions from network-based to identity-based.

Why this answer

BeyondCorp Enterprise provides the zero-trust framework, and IAP enforces identity and context-based access to applications. Cloud VPN is not zero-trust. Cloud Identity is an identity provider but not sufficient alone.

Cloud Armor is for DDoS protection.

16
MCQeasy

A developer needs to allow a Compute Engine VM to read from a specific Cloud Storage bucket. Which IAM role should be granted to the VM's service account?

A.roles/storage.objectViewer
B.roles/storage.legacyBucketReader
C.roles/storage.admin
D.roles/storage.objectCreator
AnswerA

roles/storage.objectViewer grants storage.objects.get and storage.objects.list, which allow the VM to read object contents and list objects within a bucket without any write, delete, or admin permissions. This precisely matches the requirement of only reading from Cloud Storage and follows least privilege by not granting any unnecessary capabilities.

Why this answer

The roles/storage.objectViewer role grants read access to objects in a bucket.

17
Multi-Selectmedium

A company wants to protect its web application deployed on Google Cloud from OWASP Top 10 attacks and also block traffic from specific geographic regions. Which TWO services should they use together? (Choose 2)

Select 2 answers
B.Cloud CDN
C.Cloud Armor
D.Cloud IDS
E.reCAPTCHA Enterprise
AnswersB, C

Cloud CDN serves as a caching layer that shields backend origins by absorbing requests and can deliver cached content globally with low latency. When integrated with Cloud Armor, CDN policies evaluate incoming requests against WAF rules before they reach the origin, making it a valid component in a protection strategy; however, the WAF itself is Cloud Armor, not CDN.

Why this answer

Cloud Armor provides WAF rules for OWASP Top 10 and geo-blocking. Cloud CDN caches content and can be used with Cloud Armor for edge protection.

18
MCQmedium

A developer needs to store and manage API keys and certificates in a secure, centralized manner, with automatic rotation and integration with Cloud Functions. Which Google Cloud service should they use?

A.Cloud Storage
B.Cloud KMS
C.Secret Manager
D.Cloud Asset Inventory
AnswerC

Secret Manager is the correct choice because it is a dedicated, purpose-built service for storing and managing sensitive data such as API keys, passwords, and certificates as immutable secret versions. It provides fine-grained IAM roles, automatic log-based auditing, built-in rotation with etag validation, and integration with App Engine, Cloud Functions, and Kubernetes workloads. You can upload certificate data directly as a secret payload and access it securely via the Secret Manager API or client libraries, giving the developer exactly the managed workflow they need.

Why this answer

Secret Manager stores secrets like API keys, passwords, and certificates, and integrates with Cloud Functions for secure access. Cloud KMS manages encryption keys, not secrets. Cloud Storage is not designed for secret management.

Cloud Asset Inventory tracks resources.

19
Multi-Selectmedium

Which TWO statements about encryption in transit in Google Cloud are correct? (Choose 2)

Select 2 answers
A.Google Cloud uses TLS for all external traffic to its APIs.
B.Data in transit between Google Cloud regions is encrypted by default.
C.Users must configure TLS certificates for all Google Cloud services.
D.Data in transit between Google Cloud and the internet is encrypted by default for all services.
E.Encryption in transit uses AES-256.
AnswersA, B

Google Cloud mandates TLS (HTTPS) for every external call to its public API endpoints, covering services like BigQuery and Cloud Storage. This requirement is enforced at the infrastructure level, so clients must use TLS to communicate, regardless of the client library or SDK. As a result, data confidentiality and integrity are protected from the client to Google's edge, and users do not need to configure certificates themselves.

Why this answer

Google Cloud uses TLS for all external and internal traffic by default between data centers. Encryption is applied automatically. The question asks for correct statements.

20
MCQhard

A security team wants to detect and respond to threats across multiple GCP projects, including identifying misconfigurations and vulnerabilities. They need a single pane of glass. Which service provides a unified view of security findings across projects?

A.Cloud Operations
B.Security Command Center
C.Cloud Audit Logs
D.Chronicle
AnswerB

Security Command Center is the central security and risk management platform for Google Cloud, aggregating findings from built-in and third-party services, including Security Health Analytics, Event Threat Detection, Cloud Asset Inventory, and Cloud Armor. It gives security teams a single pane of glass to view vulnerabilities, misconfigurations, and active threats across all projects. This service includes preset compliance metrics, malware discovery, and integration with Google Cloud's Web Security Scanner and partner solutions. Its role as the unified findings hub is exactly why it is the recommended solution for threat detection and response at cloud scale.

Why this answer

Security Command Center provides a unified dashboard for security findings across projects, including vulnerability scanning, threat detection, and misconfiguration alerts. Chronicle is a SIEM for log analysis but not a unified view of findings. Cloud Audit Logs provide logs but not aggregation.

Cloud Operations is for monitoring and logging, not security-specific findings.

21
MCQmedium

An organization needs to enforce that developers can only create Compute Engine instances in the us-central1 region. Which IAM approach should they use?

A.Use Organization Policy to restrict allowed regions
B.Create a custom role with permission restricted to us-central1
C.Grant the Compute Instance Admin role with an IAM condition on resource.location
D.Create a separate project for each region
AnswerC

Granting the Compute Instance Admin role with an IAM condition on `resource.location` restricts instance creation to only the `us-central1` region by evaluating the resource’s location attribute at request time. This satisfies the constraint that developers cannot create instances outside that specific region, using a native IAM condition rather than a separate organisational policy.

Why this answer

IAM conditions allow setting regional constraints on roles, such as granting the Compute Instance Admin role with a condition on resource.location == 'us-central1'.

22
MCQmedium

A security team needs to detect and alert on suspicious outbound network traffic from their GCP environment, such as data exfiltration attempts. They require a managed service that analyzes traffic for threats. Which service should they use?

A.Cloud Armor
B.Security Command Center
C.Cloud IDS
D.Chronicle
AnswerC

Cloud IDS is a managed intrusion detection service that uses packet mirroring in your VPC to copy traffic and apply deep packet inspection with threat signatures against full bidirectional flows, including outbound communications. Because it evaluates connections initiated from your workloads, it can detect command-and-control callbacks, outbound malware propagation, and data exfiltration attempts in near real time. This makes Cloud IDS the appropriate choice for detecting and alerting on suspicious outbound network behavior.

Why this answer

Cloud IDS (Intrusion Detection System) monitors network traffic for threats like malware and data exfiltration. It integrates with VPC flow logs and provides threat detection. Cloud Armor is for inbound DDoS/WAF.

Security Command Center is a broader security management platform. Chronicle is a SIEM for log analysis, not real-time network traffic inspection.

23
MCQeasy

Which IAM component determines what actions a user is allowed to perform on a resource?

A.Authorization
B.Audit Logging
C.Authentication
D.Encryption
AnswerA

Authorization is the IAM component that explicitly determines which actions a user is permitted to perform on a given set of resources. In Google Cloud, this is implemented by binding principals to roles, each containing a collection of permissions, and attaching those bindings to projects, folders, or organizations. The authorization engine evaluates the requested action against the effective allow policies and renders a definitive allow or deny decision.

Why this answer

Authorization is the process of determining what actions a user can perform; IAM roles and permissions define this.

24
MCQhard

A company must meet regulatory requirements that restrict where data can be stored and processed. They need to ensure that Google Cloud personnel have limited and audited access to their data. Which combination of services should they use?

A.Access Transparency and VPC Service Controls
B.Assured Workloads and Access Transparency
C.Cloud KMS and Cloud Audit Logs
D.VPC Service Controls and Cloud Audit Logs
AnswerB

Assured Workloads is the correct foundation because it enforces data residency by pinning resources to a selected region and imposes access restrictions such as preventing Google personnel from accessing customer data without explicit approval. Access Transparency complements it by providing detailed, audit-ready logs of any Google employee access actions, satisfying the regulatory need for both enforcement and accountability. This pairing directly addresses location restrictions and personnel access tracking, which are the core requirements.

Why this answer

Assured Workloads provides regulatory compliance controls and access restrictions for specific regions. Access Transparency logs Google personnel access. Cloud Audit Logs track user activity.

The question asks for a combination that restricts personnel access and provides audit logs.

25
MCQeasy

An organization needs to store API keys, database passwords, and certificates securely, with automatic rotation and audit logging. Which Google Cloud service should they use?

A.Cloud Storage with encryption
B.Cloud KMS
C.Cloud HSM
D.Secret Manager
AnswerD

Secret Manager is the purpose-built Google Cloud service for storing API keys, database passwords, certificates, and other sensitive configuration data. It maintains immutable secret versions, supports granular IAM roles and conditions (e.g., accessor, giver, view access to a specific secret version), and is natively integrated with Cloud Audit Logs so every access to a secret's plaintext is recorded. You can automate rotation by using Cloud Functions or Cloud Scheduler to regenerate the secret value and add a new version, and then grant applications access only to the active version. It is the only option here that directly satisfies the requirements for secure storage, rotation, and auditing of manage to manage runtime secrets.

Why this answer

Secret Manager is designed to store secrets like API keys and passwords, with built-in rotation and audit logging.

26
MCQmedium

An organization wants to ensure that all data stored in Cloud Storage is encrypted with customer-managed keys that can be rotated on demand. They also need to log every key use for audit compliance. Which combination of services should they use?

A.Cloud KMS with Customer-Supplied Encryption Keys (CSEK)
B.Google-managed encryption keys with Access Transparency
C.Cloud KMS with Customer-Managed Encryption Keys (CMEK) and Cloud Audit Logs
D.Secret Manager with encryption keys and Cloud Logging
AnswerC

CMEK allows you to create and manage key material in Cloud KMS and assign it as the key that encrypts Cloud Storage objects through a key ring and CryptoKey. You retain lifecycle control—enabling, disabling, rotating, or destroying the key—and every encryption or decryption operation under that key is recorded as a Cloud KMS operation in Cloud Audit Logs, giving you the auditability needed for security monitoring and forensic investigation.

Why this answer

Cloud KMS allows creation and management of customer-managed encryption keys (CMEK) for Cloud Storage. Cloud Audit Logs can be used to log key usage (e.g., via Data Access audit logs). CSEK is deprecated; Secret Manager is for secrets, not encryption keys for storage.

27
MCQmedium

A company wants to encrypt sensitive data stored in Cloud Storage with a key that is generated and stored on-premises using a hardware security module (HSM). They do not want Google to have access to the key. Which encryption option should they use?

A.Google-managed encryption keys
B.Customer-managed encryption keys (CMEK)
C.Cloud HSM
D.Customer-supplied encryption keys (CSEK)
AnswerD

Customer-supplied encryption keys (CSEK) are keys that the customer generates and provides directly to Google Cloud via API when writing data. Google's systems use the customer-supplied key to encrypt the data at rest and then destroy the key from its memory, ensuring that Google does not retain the key material. This aligns with the company's requirement because the customer retains exclusive control over the key, and Google cannot access the plaintext without the customer re-supplying the key, making it the correct choice.

Why this answer

Customer-Supplied Encryption Keys (CSEK) allow customers to provide their own keys; Google does not store the key and has no access to it.

28
MCQmedium

A company wants to implement a zero-trust security model to replace its legacy VPN for accessing internal web applications. Employees use both company-managed and personal devices. Which Google Cloud service provides context-aware access based on user identity and device posture?

A.Cloud VPN
B.Identity-Aware Proxy (IAP)
C.Cloud Armor
D.VPC Service Controls
AnswerB

Identity-Aware Proxy (IAP) is a Google Cloud service that sits in front of your applications and proxies every request, enforcing access control based on the requester's identity, group membership, and contextual attributes such as IP address, device security status, and geolocation. Because it operates at the application layer (HTTP/S or TCP) rather than the network layer, it can grant or deny access to individual resources without changing your network topology or requiring a VPN. IAP is the core enforcement point for a BeyondCorp-style zero-trust architecture, enabling context-aware, least-privilege access to both web applications and SSH/RDP services.

Why this answer

Identity-Aware Proxy (IAP) verifies user identity and context (device security, location, etc.) before granting access to applications, enabling zero-trust without a VPN.

29
Multi-Selecthard

An engineer needs to prevent data exfiltration from a project by ensuring that Cloud Storage buckets can only be accessed from within a VPC network. Which TWO steps should they take? (Choose 2)

Select 2 answers
A.Set an ingress policy to allow access only from the VPC network
B.Use IAM conditions to restrict access to the VPC
C.Enable Private Google Access on the VPC subnets
D.Create a VPC Service Controls perimeter
E.Create a firewall rule that denies all traffic to Cloud Storage
AnswersA, D

Ingress rules specify allowed sources, such as the VPC.

Why this answer

Create a VPC Service Controls perimeter that includes the project and restricts access to the VPC, and set ingress rules to allow traffic from the VPC.

30
MCQmedium

An organization wants to protect its web application from DDoS attacks and SQL injection. Which Google Cloud service should they deploy?

A.Cloud DNS
B.Security Command Center
C.Cloud IDS
D.Cloud Armor
AnswerD

Cloud Armor is a security policy service for HTTP(S) load balancers that combines both network-layer DDoS protection and a Web Application Firewall (WAF) with Layer 3-7 filtering. It enforces allow/deny rules at the edge, including preconfigured rules for OWASP Top 10 risks such as SQL injection and cross-site scripting, and scales to absorb volumetric DDoS attacks. Because it operates inline on incoming traffic, it actively blocks malicious requests before they ever reach the application, making it the correct choice for protecting a web application from DDoS and SQL injection.

Why this answer

Cloud Armor provides DDoS protection and Web Application Firewall (WAF) capabilities to block attacks like SQL injection. Cloud IDS is for intrusion detection. Security Command Center is for vulnerability management.

Cloud DNS is for DNS resolution.

31
MCQhard

A security team needs to monitor and analyze logs from multiple GCP projects to detect threats across the organization. They require a SIEM solution that can ingest logs from on-premises and other clouds. Which service should they use?

A.Security Command Center
B.Cloud IDS
C.Chronicle
D.Cloud Logging
AnswerC

Chronicle is a cloud-native SIEM from Google Cloud designed to ingest, normalize, and analyze security logs from multiple cloud providers, on-premises systems, and SaaS applications. Its architecture leverages BigQuery for scalable log storage and provides advanced threat detection, retroactive analysis, and custom detection rules with low-latency searching. As a Google Cloud product purpose-built for security log analytics, it directly addresses the need to monitor and analyze logs across a multi-cloud environment.

Why this answer

Chronicle is a Google Cloud SIEM that ingests logs from various sources, including on-premises and other clouds, and provides threat detection. Security Command Center is for vulnerability scanning, not SIEM.

32
MCQmedium

A company uses Cloud SQL and wants to encrypt data at rest with a key that they manage and rotate themselves. They also want to ensure that the encryption happens automatically before data is written to disk. Which configuration should they choose?

A.Enable default Google-managed encryption
B.Store the encryption key in Secret Manager and configure Cloud SQL to use it
C.Use a Customer-Managed Encryption Key (CMEK) from Cloud KMS
D.Use a Customer-Supplied Encryption Key (CSEK)
AnswerC

CMEK in Cloud KMS lets you create and control a key that Cloud SQL automatically uses for encrypting data, backups, and logs at rest. You control key rotation, enabling/disabling, and access via IAM, and Cloud KMS records key usage for auditing. This gives the required customer control while keeping transparent, automatic encryption.

Why this answer

Cloud SQL supports CMEK (Customer-Managed Encryption Keys) via Cloud KMS. The key is created in Cloud KMS and specified when creating the Cloud SQL instance. The data is automatically encrypted with the key at rest.

CSEK is deprecated and not supported by Cloud SQL. Google-managed keys do not allow customer control. Secret Manager is for secrets.

33
MCQhard

A DevOps engineer wants to audit all actions performed by Google personnel on their customer data stored in Cloud Storage. They need to review logs that show access by Google employees and the reason for access. Which logging feature should they enable?

A.Cloud Audit Logs
B.Cloud Logging
C.Access Transparency
D.VPC Flow Logs
AnswerC

Access Transparency is the correct feature because it provides real-time logs of every action taken by Google personnel (and certain subprocessors) when accessing customer content, including reads, writes, and administrative operations. It complements Cloud Audit Logs by covering the 'Google-side' of the shared responsibility model, which no other logging option addresses. It must be explicitly enabled on the organization, folder, or project, and it works only for a defined set of Google Cloud services.

Why this answer

Access Transparency provides logs of Google personnel accessing customer data. It shows the time, reason, and data accessed. Cloud Audit Logs track actions performed by users and services within the customer's project, not Google personnel.

VPC Flow Logs are for network flows. Cloud Logging is the general platform but does not specifically capture Google personnel access without Access Transparency.

34
MCQeasy

A company wants to replace its VPN-based remote access with a solution that grants access based on user identity, device security status, and context (e.g., location, IP). Which Google Cloud service should they use?

A.BeyondCorp Enterprise
B.Cloud Armor
C.Identity-Aware Proxy (IAP)
D.Cloud VPN
AnswerA

BeyondCorp Enterprise is Google's zero-trust access solution that fully replaces a VPN-based remote access model. It grants users access to specific applications based on verified identity, device trust, and context (such as location and security posture) rather than opening up network-level connectivity. This eliminates the implicit trust and lateral movement risks inherent in traditional VPNs, while also integrating with Google Cloud's security capabilities like DLP and threat detection.

Why this answer

BeyondCorp Enterprise provides zero-trust remote access without a VPN, using identity and context-aware access policies.

35
MCQhard

A security engineer needs to analyze network traffic for malicious payloads and anomalies in real-time across multiple VPC networks in a project. The solution must be managed and not require deploying third-party appliances. Which service should they use?

A.Security Command Center
B.Cloud Armor
C.Cloud IDS
D.VPC Flow Logs
AnswerC

Cloud IDS is a fully managed intrusion detection service that performs deep packet inspection (DPI) on all network traffic within a VPC, including both east-west and north-south flows. It leverages the industry-leading threat signatures from Palo Alto Networks to detect malicious payloads, command-and-control communications, and other network-based attacks. By comparing packet payloads against known signatures, Cloud IDS provides real-time visibility into actual traffic content, directly meeting the requirement to analyze network traffic for threats.

Why this answer

Cloud IDS provides managed intrusion detection across VPC networks, analyzing traffic for threats like malware and anomalies.

36
MCQhard

An administrator wants to enforce that all API calls to a specific Cloud Storage bucket must come from a limited range of IP addresses. Which configuration should they use?

A.Cloud Armor security policy
B.Identity-Aware Proxy (IAP)
C.VPC Service Controls with an access level that includes the IP range
D.VPC firewall rules
AnswerC

VPC Service Controls with an access level that includes the IP range is correct because these perimeters restrict all API calls to protected services like Cloud Storage, and access levels apply context-aware conditions (including source IP address) at the Google Front End. When you add Cloud Storage to a service perimeter and attach an access level with your allowed CIDR range, any API request originating outside that IP range is denied, regardless of IAM permissions. This gives you perimeter-based, context-sensitive enforcement directly on the Cloud Storage API.

Why this answer

VPC Service Controls can restrict access based on IP addresses via access levels. IAP is for user authentication. Cloud Armor is for HTTP(S) load balancing.

Firewall rules apply to network traffic, not API access to Cloud Storage.

37
MCQeasy

Which defense-in-depth layer includes measures like access controls, vulnerability management, and intrusion detection systems?

A.Data security
B.Physical security
C.Operational security
D.Infrastructure security
AnswerC

Operational security is correct because it encompasses the day-to-day processes and controls that protect systems, including user access management (authentication, authorization, least privilege), vulnerability management, continuous monitoring, and incident response. These are precisely the measures described in the question—access control lists and intrusion detection—which require ongoing operational discipline rather than static architectural safeguards. This layer ensures that policies and procedures are executed consistently across the environment.

Why this answer

Operational security involves the policies and procedures to protect data and systems during operation, including access controls, vulnerability scanning, and intrusion detection. Physical security covers hardware and facilities; infrastructure security covers network and platform; data security covers encryption and data loss prevention.

38
Multi-Selectmedium

A company needs to encrypt data at rest using keys that they manage, but they want to reduce operational overhead by having Google Cloud host the key management infrastructure. Which TWO options achieve this? (Choose 2)

Select 2 answers
A.Secret Manager
B.Google-managed encryption keys
C.Customer-supplied encryption keys (CSEK)
D.Cloud HSM
E.Customer-managed encryption keys (CMEK)
AnswersD, E

Cloud HSM is a fully managed hardware security module that provides FIPS 140-2 Level 3 validated protection for cryptographic keys. When used with Cloud KMS, Cloud HSM services generate and store customer-managed keys within tamper-resistant hardware, ensuring keys never leave the HSM boundary while enabling encryption of data at rest across Google Cloud services. This directly meets the requirement for the company to control keys with hardware-backed security and simplifies compliance.

Why this answer

CMEK uses Cloud KMS to manage keys, which Google hosts. CSEK requires the customer to supply and manage keys outside Google. Google-managed keys are not customer-managed.

Cloud HSM is a hardware security module that can be used with CMEK. Secret Manager is for secrets, not encryption keys.

39
MCQeasy

What is the primary purpose of VPC Service Controls?

A.To control ingress and egress traffic at the network level
B.To detect network intrusions
C.To prevent data exfiltration from Google Cloud services
D.To protect against DDoS attacks
AnswerC

VPC Service Controls create perimeters around Google Cloud APIs and services, using context such as identity, source IP, and resource metadata to authorize access. This prevents copying or moving data from within the perimeter to external destinations, directly reducing the risk of data theft. By working at the API layer, it complements IAM and network controls with a data-boundary layer.

Why this answer

VPC Service Controls create perimeters around Google Cloud services to prevent data exfiltration. VPC firewall rules control network traffic. Cloud Armor is for DDoS.

Cloud IDS is for intrusion detection.

40
MCQhard

A security administrator needs to ensure that Google personnel do not access customer data without explicit authorization. Which service should they use to get logs of Google employee access?

A.Access Transparency
B.Cloud Audit Logs
C.Security Command Center
D.Assured Workloads
AnswerA

Access Transparency is the correct control because it provides near real-time, read-only audit logs specifically for actions taken by Google personnel against customer data. These logs capture each instance of access (e.g., when a Google engineer troubleshoots a support issue) and are viewable in Cloud Logging. Unlike standard audit logs, Access Transparency is designed solely for visibility into Google's own staff activity, making it the exact mechanism for this requirement.

Why this answer

Access Transparency provides logs of Google personnel actions on customer data. Cloud Audit Logs track user activities within the customer's project. Assured Workloads is for regulatory compliance.

Security Command Center is for threat detection.

41
Multi-Selecthard

A company wants to implement the principle of least privilege for a team of developers who need to deploy applications on Compute Engine and monitor logs. Which THREE IAM roles should be granted? (Choose 3)

Select 3 answers
A.roles/iam.serviceAccountUser
B.roles/compute.networkAdmin
C.roles/logging.viewer
D.roles/compute.instanceAdmin
E.roles/compute.admin
AnswersA, C, D

Allows developers to use service accounts with instances.

Why this answer

roles/compute.instanceAdmin provides permissions to manage instances. roles/logging.viewer provides read access to logs. roles/iam.serviceAccountUser allows attaching service accounts to instances. roles/compute.networkAdmin is too broad for developers. roles/compute.admin is a full admin role, violating least privilege.

42
MCQeasy

A small startup wants to protect its web application from common attacks like SQL injection and cross-site scripting (XSS). They also need DDoS protection. Which Google Cloud security service should they use?

A.Security Command Center
B.Cloud IDS
C.reCAPTCHA Enterprise
D.Cloud Armor
AnswerD

Cloud Armor is a web application firewall (WAF) and distributed denial-of-service (DDoS) protection service that runs at Google's network edge. It provides preconfigured and customizable rules to block SQL injection, cross-site scripting, and other OWASP Top 10 attack vectors before they reach your application. By integrating with Cloud Load Balancing and offering ML-based adaptive protection, Cloud Armor actively filters malicious requests and safeguards your web application from application-layer and volumetric attacks.

Why this answer

Cloud Armor provides web application firewall (WAF) rules to block SQL injection and XSS, plus DDoS protection.

43
Multi-Selecthard

A security team needs to implement a zero-trust architecture for a web application that is accessed by both internal employees and external partners. They require context-aware access that checks device posture and identity. Which THREE components should they use? (Choose three.)

Select 3 answers
A.Identity-Aware Proxy (IAP)
B.VPC firewall rules
C.Access levels (context-aware conditions)
D.BeyondCorp Enterprise
E.Cloud Armor
AnswersA, C, D

Identity-Aware Proxy (IAP) enforces Zero Trust by brokering access to applications and resources based on the requester's identity and context, rather than their network location. It authenticates users via OAuth, checks IAM policies, and can be combined with context-aware conditions before proxying the connection. This ensures that even if a request originates from inside the VPC, it is only allowed if the user is verified and authorized, eliminating the need for a traditional VPN.

Why this answer

BeyondCorp Enterprise provides the zero-trust framework, including device and identity verification. Identity-Aware Proxy (IAP) is a key component that enforces access based on context. Access levels in IAP define conditions (e.g., device posture, IP range) that must be met for access.

Cloud Armor is for DDoS/WAF, not context-aware access. VPC firewall rules are network-level, not user-level. Chronicle is a SIEM.

44
MCQeasy

Which Google Cloud service provides a fully managed SIEM solution for log analysis, threat detection, and incident response?

A.Chronicle
B.Security Command Center
C.Operations Suite
D.Cloud Logging
AnswerA

Chronicle is a fully managed, enterprise-grade SIEM (Security Information and Event Management) solution on Google Cloud. It ingests petabytes of log and telemetry data, performs high-speed search without traditional indexing, and applies detection engines and threat intelligence to uncover malicious activity, enabling security analysts to hunt, investigate, and respond to threats. Its native integration with other Google Cloud services makes it the only option here that is a dedicated SIEM, rather than a component or adjacent security tool.

Why this answer

Chronicle is Google's SIEM offering that ingests logs and telemetry for security analytics.

45
MCQeasy

Which Google Cloud security layer is responsible for protecting data stored on disk using either Google-managed or customer-managed encryption keys?

A.Operational security
B.Infrastructure security
C.Data security
D.Hardware security
AnswerC

Data security is the Google Cloud layer that directly protects the data itself using encryption at rest and in transit, customer-managed encryption keys (CMEK), and data loss prevention APIs for classifying and redacting sensitive information. It is the only option that explicitly addresses how stored data is encrypted and how access to that encrypted data is managed. Google Cloud encrypts data at rest by default, and the data security layer governs key management, cipher suite selection, and rotation policies.

Why this answer

Data encryption at rest is a core component of data security, ensuring data stored on disk is encrypted. Google Cloud encrypts all data at rest by default using Google-managed keys, with options for CMEK and CSEK.

46
MCQmedium

An organization wants to enforce that all data stored in Cloud Storage buckets is encrypted with a key that they control and rotate periodically. They also need to audit key usage. Which approach should they take?

A.Use Customer-Supplied Encryption Keys (CSEK)
B.Use Customer-Managed Encryption Keys (CMEK) with Cloud KMS
C.Use default Google-managed encryption keys
D.Use Cloud External Key Manager (Cloud EKM)
AnswerB

Customer-Managed Encryption Keys (CMEK) with Cloud KMS let you create, rotate, and disable keys directly within Google Cloud while retaining full control. Each encryption/decryption operation is logged to Cloud Audit Logs, providing detailed visibility into who used the key. You can set automatic rotation periods and restrict key usage via IAM, making it the natural choice to enforce the organization's data governance requirements.

Why this answer

Customer-Managed Encryption Keys (CMEK) via Cloud KMS allow customers to control and rotate keys and audit usage via Cloud Audit Logs.

47
Multi-Selecthard

A large enterprise wants to enforce the principle of least privilege for its cloud resources. The security team needs to audit all IAM policy changes across the organization and ensure that custom roles are used where predefined roles are too permissive. Which three Google Cloud services or features should be combined to achieve this? (Choose three.)

Select 3 answers
A.IAM Recommender
B.Cloud Key Management Service
C.Cloud Audit Logs
D.Organization Policies
E.Security Command Center
AnswersA, C, D

IAM Recommender leverages Google Cloud's usage data and machine learning to analyze each principal's actual permissions usage over the past 90 days, then generates role recommendations that remove unnecessary permissions and flags over-privileged accounts. It surfaces findings like role churn or unused roles, and supports applying the suggested least-privilege bindings directly or via Terraform, enabling continuous, data-driven remediation of excessive IAM permissions without disrupting existing workflows.

Why this answer

Cloud Audit Logs track IAM policy changes. Organization policies can enforce constraints like restricting the use of predefined roles. IAM Recommender provides recommendations to reduce permissions.

Cloud Asset Inventory can also be used for IAM policy auditing. Security Command Center is for threat detection, not IAM auditing. Policy Analyzer helps understand access, but the combination of Audit Logs, Organization Policies, and IAM Recommender is most direct.

48
MCQmedium

A company wants to scan its Cloud Storage buckets for sensitive data like credit card numbers and social security numbers. Which service should they use?

A.Security Command Center
B.Sensitive Data Protection
C.reCAPTCHA Enterprise
D.Web Risk API
AnswerB

Sensitive Data Protection (formerly Cloud DLP) is the correct service because it provides native data discovery, classification, and de-identification. You can create inspect jobs that scan Cloud Storage buckets using predefined or custom infoTypes to detect sensitive data like credit card numbers, names, or addresses. It supports both full scans and time-based sampling, and integrates with other security services for remediation.

Why this answer

Sensitive Data Protection (DLP API) is used to inspect and de-identify sensitive data. Security Command Center is for vulnerabilities. Web Risk API checks URLs against threat lists. reCAPTCHA is for bot protection.

49
Multi-Selectmedium

A company wants to store encryption keys for encrypting data at rest in Cloud Storage, and also needs to automatically rotate the keys every 30 days. Additionally, they require an audit log of key usage. Which TWO services should they use? (Choose two.)

Select 2 answers
A.Cloud HSM
B.Secret Manager
C.Cloud KMS
D.Cloud Audit Logs
E.Cloud Storage
AnswersC, D

Cloud KMS is the correct choice because it is the Google Cloud service purpose-built for creating, storing, and managing encryption keys. It supports symmetric and asymmetric keys, automatic rotation, and fine-grained IAM controls, and it integrates with Cloud Storage, BigQuery, Compute Engine, and other services for seamless data encryption. Keys are kept in a centralized, secure environment, and you can use them to encrypt and decrypt data without exposing the raw key material.

Why this answer

Cloud KMS allows creating and managing keys with automatic rotation (via rotation period). Cloud Audit Logs can be configured to log every use of the key (Data Access audit logs). Secret Manager is for secrets, not encryption keys.

Cloud HSM provides hardware-backed keys but is part of Cloud KMS. Cloud Storage itself does not manage key rotation.

50
MCQmedium

A company uses Cloud Storage to store sensitive data. They want to enforce that all objects uploaded are encrypted with a customer-managed key that they can rotate and control. What should they configure?

A.Use customer-supplied encryption keys (CSEK) for each upload.
B.Use Cloud HSM to generate a key and import it to Cloud KMS.
C.Set default encryption on the bucket to use a CMEK key from Cloud KMS.
D.Enable default encryption with a Google-managed key.
AnswerC

Setting default encryption on a bucket to use a CMEK key from Cloud KMS is the correct action because it applies a customer-managed key to all new objects automatically, giving you control over key lifecycle, rotation, and permissions. This configuration satisfies the requirement for persistent, customer-controlled encryption without forcing per-request key management, and it integrates with Cloud KMS for auditing and access management.

Why this answer

Customer-Managed Encryption Keys (CMEK) allow customers to manage their own keys using Cloud KMS.

51
Multi-Selecthard

An organization needs to ensure that data stored in Cloud Storage is encrypted at rest using keys that are rotated every 30 days. They also need to audit who accesses the keys and when. Which THREE services should they use? (Choose 3)

Select 3 answers
A.Cloud HSM
B.Cloud Audit Logs
C.Secret Manager
D.Cloud Storage
E.Cloud KMS
AnswersB, D, E

Cloud Audit Logs records both admin activity and data access events, including every call to decrypt data with a Cloud KMS key. By enabling Data Access audit logs for Cloud KMS, the organization gains a detailed trail of who accessed which key, when, and from what context, enabling anomaly detection and compliance audits. This visibility is essential for verifying that key rotation policies are enforced and that keys are not misused.

Why this answer

Cloud KMS manages key rotation. Cloud Audit Logs record key access. Cloud Storage stores the data.

Cloud HSM can be used but is not required for the scenario.

52
Multi-Selectmedium

A company wants to ensure data encryption at rest using customer-managed keys for Cloud SQL and Cloud Storage. Which TWO actions must they take? (Choose 2)

Select 2 answers
A.Create a key ring and cryptographic key in Cloud KMS
B.Grant the Cloud KMS CryptoKey Encrypter/Decrypter role to the service accounts
C.Enable CMEK in the project settings
D.Configure Cloud SQL and Cloud Storage to use the CMEK key
E.Upload a custom key to Cloud HSM
AnswersA, D

Keys must be created in Cloud KMS before use.

Why this answer

Create a key ring and key in Cloud KMS, then configure each service to use that key (CMEK).

53
MCQmedium

A company wants to ensure that only API calls from within a specific VPC can access their Cloud Storage buckets, even if the bucket is public. Which Google Cloud feature should they use?

A.VPC firewall rules
B.Cloud Armor
C.IAM conditions
D.VPC Service Controls
AnswerD

VPC Service Controls create security perimeters around Google Cloud services like Cloud Storage, restricting which networks, IP ranges, and identities can invoke their APIs. It enforces a context-aware boundary at the service level, preventing data exfiltration and unauthorized access even if an IAM policy is misconfigured. When the goal is 'only API calls from within', VPC Service Controls are the correct mechanism because they block access from outside the defined perimeter regardless of IAM permissions.

Why this answer

VPC Service Controls allow creating perimeters that restrict access to Google Cloud services to trusted VPCs and IP ranges.

54
MCQhard

A company has a requirement to rotate encryption keys every 90 days. They are using Cloud KMS to manage keys for Cloud Storage. What is the correct way to achieve key rotation with minimal impact to existing encrypted objects?

A.Manually rotate the key every 90 days by generating a new key version.
B.Enable automatic rotation on the key with a 90-day period.
C.Use Cloud HSM to generate a new key and update the bucket default encryption.
D.Create a new key and re-encrypt all existing objects using the new key.
AnswerB

Enabling automatic rotation with a 90-day period configures Cloud KMS to create a new primary key version every 90 days. All future Cloud Storage objects encrypted with this CMEK will use the new primary version, while older objects remain readable via their original key versions, which stay enabled for decryption. This satisfies the rotation requirement without forcing a rewrite or copy of existing data, since each key version is cryptographic material that can be retired on a future schedule.

Why this answer

Cloud KMS supports automatic rotation based on a schedule. When a key is rotated, a new version is created, and new data is encrypted with the new version while old data remains decryptable with the old version.

55
MCQeasy

Which IAM concept defines what actions a user can perform on a resource?

A.Permissions
B.Authentication
C.Authorization
D.Roles
AnswerC

Authorization is the IAM concept that determines exactly what actions a specific principal is allowed to perform on a resource. It evaluates the existing policies, permissions, and conditions (e.g., IP address, time, or MFA state) to decide whether to allow or deny an operation. Thus, authorization is the fundamental control point that answers the question: "Can this user do this action?"

Why this answer

Authorization defines what actions are allowed. Authentication verifies identity. Roles and permissions are part of authorization.

The question asks for the concept that defines actions.

56
MCQeasy

A company needs to audit all actions performed by administrators on their Google Cloud project, including who accessed what resource and when. Which logging feature should they enable?

A.Cloud Monitoring
B.Access Transparency
C.VPC Flow Logs
D.Cloud Audit Logs
AnswerD

Cloud Audit Logs are the native audit trail for Google Cloud, capturing Admin Activity, Data Access, and System Event records that answer who performed an action, on what resource, when, and from where. Admin Activity logs are enabled by default and include all control-plane API calls, such as creating a project, updating IAM policies, or deleting a service — exactly the 'all actions performed by administrators' requirement. These logs are immutable and can be exported to Cloud Storage or BigQuery for long-term retention and compliance analysis.

Why this answer

Cloud Audit Logs record admin activity, data access, and system events for compliance and auditing.

57
Multi-Selectmedium

A security team needs to implement the principle of least privilege for a group of data scientists who only need to query BigQuery datasets, but not modify or delete them. Which THREE IAM roles should be granted? (Choose 3)

Select 3 answers
A.roles/bigquery.dataEditor
B.roles/bigquery.dataViewer
C.roles/bigquery.admin
D.roles/bigquery.user
E.roles/bigquery.jobUser
AnswersB, D, E

Allows viewing dataset metadata and querying data.

Why this answer

BigQuery Data Viewer allows querying datasets. BigQuery Job User allows running jobs. BigQuery User is a broader role that includes querying but also other permissions.

The combination of these allows read-only querying.

58
MCQhard

A DevOps engineer needs to grant a CI/CD pipeline (running on Compute Engine) permissions to deploy a Cloud Run service. The pipeline uses a service account. What is the correct approach to assign the necessary IAM role to the service account?

A.Create a new service account, grant the Cloud Run Deployer role, and export a key file to the instance
B.Grant the Cloud Run Deployer role to the Compute Engine default service account
C.Use the Cloud Run service agent with the roles/run.serviceAgent role
D.Grant the Cloud Run Admin role to the user account running the pipeline
AnswerB

The Compute Engine default service account is automatically attached to the instance and is authenticated through the instance metadata server, so no key file is needed. Granting it the roles/run.deployer role gives the pipeline permission to create and update Cloud Run services that run in the same project, while adhering to the principle of least privilege and avoiding long-lived credentials. This is the recommended pattern for workloads running on Compute Engine that need to deploy Cloud Run resources.

Why this answer

The best practice is to attach the service account to the Compute Engine instance and grant the Cloud Run Deployer role to that service account.

59
MCQmedium

An organization wants to detect and respond to threats across their GCP environment, including finding misconfigurations, vulnerabilities, and potential malicious activity. Which service provides a unified view of security findings?

A.Mandiant
B.Chronicle
C.Cloud Audit Logs
D.Security Command Center
AnswerD

Security Command Center is Google Cloud's built-in security and risk management platform that automatically discovers and aggregates security findings from over 100 integrated services, including Event Threat Detection, Container Threat Detection, and VPC Service Controls. It provides a single-pane-of-glass dashboard for vulnerabilities, threat detections, and policy misconfigurations across the organization, with APIs for custom integrations and automated remediation. This makes it the appropriate tool for detecting and responding to threats across GCP.

Why this answer

Security Command Center is a central dashboard for security findings including vulnerabilities, misconfigurations, and threats.

60
MCQeasy

Which Google Cloud service provides threat intelligence and incident response capabilities, including access to Mandiant expertise?

A.Security Command Center
B.Chronicle
C.Mandiant
D.Cloud IDS
AnswerC

Mandiant is Google Cloud's front-line threat intelligence and incident response unit, offering curated cyber threat intelligence, threat actor research, and on-demand incident response consulting. Its services include digital forensics, compromise assessments, and strategic intelligence, making it the direct match for this question's description of providing threat intelligence and incident response.

Why this answer

Mandiant is Google Cloud's threat intelligence and incident response service. Security Command Center provides vulnerability scanning but not Mandiant expertise. Chronicle is a SIEM.

Cloud IDS is network intrusion detection.

61
MCQmedium

A company wants to detect and prioritize vulnerabilities in their Compute Engine VMs and GKE clusters. They also need a centralized view of security findings across their organization. Which service should they use?

A.Cloud IDS
B.Web Risk API
C.Security Command Center
D.Chronicle
AnswerC

Security Command Center (SCC) is Google Cloud's centralized security and risk management platform, and it provides built-in vulnerability scanning for Compute Engine VMs and GKE container images. It aggregates findings from native Google Cloud services and partner security tools into a single view, then uses severity scores, exposure data, and attack path simulation to help security teams prioritize which vulnerabilities to remediate first. This directly matches the requirement to detect and prioritize vulnerabilities across a cloud environment.

Why this answer

Security Command Center (SCC) is the central vulnerability and threat detection service for GCP. It finds misconfigurations, vulnerabilities, and threats across services like Compute Engine and GKE, and provides a dashboard for prioritization. Chronicle is a SIEM for log analysis, not vulnerability scanning.

Cloud IDS is for network intrusion detection. Web Risk API is for checking URLs against threat lists.

62
MCQeasy

Which layer of Google's defence-in-depth security model includes the use of TLS for data in transit?

A.Data security
B.Operational security
C.Deployment security
D.Physical security
AnswerA

Data security is the correct layer because it directly protects the confidentiality and integrity of the data itself through encryption. Google uses TLS for data in transit and AES-256 (or stronger) for data at rest, managed via Cloud KMS. This layer also includes key management, data classification, and DLP policies.

Why this answer

Data security covers encryption of data at rest and in transit. Physical security is about data centers. Operational security covers processes.

Deployment security is about secure infrastructure deployment.

63
Multi-Selectmedium

A security team needs to detect and respond to threats across their Google Cloud environment. Which THREE services should they use together? (Choose 3)

Select 3 answers
A.Mandiant
B.Cloud Logging
C.Cloud Armor
D.Security Command Center
E.Chronicle
AnswersA, D, E

Mandiant is Google Cloud's managed threat detection and response service, combining front-line expertise from Mandiant's incident response consultants with automated threat hunting and forensic capabilities. It is purpose-built for investigating advanced persistent threats, containing breaches, and performing root cause analysis, unlike logging or network filtering services. This makes Mandiant the direct match for a security team's requirement to detect and respond to sophisticated threats.

Why this answer

Security Command Center for vulnerability scanning and threat detection, Chronicle for SIEM and incident response, and Mandiant for threat intelligence and forensic investigation.

64
MCQeasy

A company wants to enforce the principle of least privilege by granting a service account only the permissions necessary to publish messages to a specific Pub/Sub topic. Which IAM approach should they use?

A.Grant the roles/editor role to the service account at the project level
B.Grant the roles/pubsub.subscriber role to the service account at the topic level
C.Grant the roles/pubsub.publisher role to the service account at the topic level
D.Grant the roles/pubsub.publisher role to the service account at the project level
AnswerC

The roles/pubsub.publisher role contains exactly the pubsub.topics.publish permission required to send messages to a topic. Attaching this role as a binding on the specific topic resource restricts the grant to that single topic, so the service account cannot publish to any other topics in the project. This is the least-privilege approach because it grants the minimal permission on the narrowest resource scope that still fulfills the requirement.

Why this answer

IAM allows granting roles at specific resource levels. To grant only publish permission on a specific topic, you should add the service account as a member and assign the Pub/Sub Publisher role (roles/pubsub.publisher) directly on that topic. Granting the role at the project level would give too broad access.

Using a custom role with only the required permission is also correct but more complex; however, the simplest correct approach among the options is to assign a predefined role at the topic level.

65
MCQmedium

An engineer needs to store database passwords and API keys securely. The secrets must be encrypted at rest with a customer-managed key and automatically rotated every 90 days. Which service should they use?

A.Cloud Secret Manager
B.Cloud KMS
C.Datastore
D.Cloud Storage with encryption
AnswerA

Cloud Secret Manager is the native Google Cloud service designed specifically to store and manage API keys, passwords, and other sensitive strings. It provides centralized IAM-based access control, automatic secret versioning, configurable rotation policies, and full audit logging via Cloud Audit Logs. Secrets can be encrypted with customer-managed keys (CMEK) using Cloud KMS, and the service integrates with Compute Engine and GKE for runtime secret injection. This combination of fine-grained access, lifecycle management, and integration makes it the correct and secure choice.

Why this answer

Secret Manager is designed for storing secrets like API keys and passwords, with built-in rotation and integration with Cloud KMS for CMEK.

66
MCQmedium

An organization needs to protect a web application hosted on Google Cloud from DDoS attacks and SQL injection attempts. They want a managed security service that integrates with Cloud Load Balancing. Which service should they use?

A.Cloud IDS
B.reCAPTCHA Enterprise
C.Cloud Armor
D.VPC firewall rules
AnswerC

Cloud Armor is the correct choice because it combines distributed denial-of-service (DDoS) protection with a web application firewall (WAF) at the Google Cloud edge. It offers preconfigured rules for the OWASP Top 10, including SQL injection (SQLi) and cross-site scripting (XSS), and can enforce these rules inline as traffic passes through Cloud Load Balancing. Cloud Armor also provides adaptive protection, rate limiting, and edge security policies to mitigate volumetric DDoS attacks. This dual capability directly addresses both the DDoS and SQL injection threats described in the scenario.

Why this answer

Cloud Armor is Google's managed DDoS protection and Web Application Firewall (WAF) service. It integrates with Cloud Load Balancing to filter traffic based on IP, geo, and HTTP headers, and includes preconfigured rules (e.g., OWASP) to block SQL injection. Cloud IDS is for network intrusion detection. reCAPTCHA Enterprise is for bot detection.

VPC firewall rules are for network-level access control.

67
MCQeasy

Which principle states that a user should be granted only the permissions necessary to perform their job functions?

A.Principle of least privilege
B.Defence in depth
C.Separation of duties
D.Zero trust
AnswerA

Principle of least privilege is the security doctrine mandating that any user, process, or system component be granted only the minimum permissions essential to perform its prescribed functions. By restricting privileges to the exact scope of job duties, it minimizes the attack surface and contains the blast radius of a compromised credential, preventing lateral movement or unauthorized data access. This principle is foundational to access control and directly answers the question about how much permission a user should receive.

Why this answer

The principle of least privilege is the security concept of granting minimal required permissions. Separation of duties divides tasks among multiple people. Zero trust is a broader security model.

Defence in depth is layered security.

68
MCQhard

A security team wants to be alerted when Google Cloud personnel access their customer data. They need logs that show the reason for access and what data was accessed. Which service provides this?

A.Cloud Audit Logs
B.Access Transparency
C.Security Command Center
D.Cloud Logging
AnswerB

Access Transparency is the correct service because it provides logs of actions taken by Google personnel (e.g., Cloud Support or Site Reliability Engineers) on the content of your data and the metadata of your resources. It uses the same audit log framework but specifically surfaces events where Google staff access customer data, and it distinguishes these from customer-initiated API calls. Administrators can route these logs to Cloud Logging or Pub/Sub to set up alerts, giving the security team the exact visibility they need into human access by Google employees.

Why this answer

Access Transparency logs provide detailed records of Google personnel access to customer data, including reason and scope.

69
MCQmedium

A company wants to replace its VPN-based remote access with a zero-trust solution that verifies user identity and device health before granting access to internal applications. Which Google Cloud service should they use?

A.BeyondCorp Enterprise
B.Identity-Aware Proxy (IAP)
C.Cloud VPN
D.Cloud Identity
AnswerA

BeyondCorp Enterprise is Google Cloud's complete zero-trust access solution, designed to replace a traditional VPN. It enforces access decisions based on user identity, device security posture, and context, rather than granting broad network-level entry. By combining Identity-Aware Proxy, endpoint verification, and adaptive policies into a single platform, it protects applications without exposing the entire network, which is why it is the correct replacement for VPN-based remote access.

Why this answer

BeyondCorp Enterprise provides zero-trust access based on user identity and device context, eliminating the need for a VPN. IAP is a component but the full solution is BeyondCorp Enterprise.

70
MCQhard

A company wants to ensure that its Google Cloud resources can only be accessed from within a specific VPC network, preventing data exfiltration to the internet. They need to enforce this for Cloud Storage and BigQuery APIs. Which service should they use?

A.Cloud NAT
B.VPC Service Controls
C.VPC Firewall Rules
D.Private Google Access
AnswerB

VPC Service Controls define security perimeters around Google Cloud resources such as Cloud Storage and BigQuery, using context-aware access conditions (identity, IP, device) to block data exfiltration. It works at the API layer, independent of VPC network boundaries, and is the only option here that actively restricts data movement outside a defined perimeter.

Why this answer

VPC Service Controls create perimeters around managed services to restrict access to only allowed VPC networks.

71
MCQhard

An organization has a compliance requirement to run workloads in specific geographic regions only. They want to prevent any resources from being created outside those regions. Which Google Cloud control should they use?

A.Cloud Audit Logs
B.Organization policy with location restriction
C.VPC Service Controls
D.IAM conditions with resource location
AnswerB

The organization policy constraint `gcp.resourceLocations` is the correct mechanism because it actively enforces geographic compliance at resource creation time. By defining an allowlist of permitted locations at the organization, folder, or project level, Google Cloud blocks any attempt to create a resource outside those regions. This is a centralized, context-aware enforcement that works across supported services, making it the native, authoritative way to guarantee workloads run only in mandated locations.

Why this answer

Organization policies with location restrictions allow administrators to set constraints on where resources can be created. The constraint `gcp.resourceLocations` can be used to restrict allowed regions. IAM roles control who can create resources, but not where.

VPC Service Controls restrict data access, not resource creation location. Cloud Audit Logs only record actions.

72
MCQeasy

Which Google Cloud service helps identify and classify sensitive data such as credit card numbers or personal health information in Cloud Storage and BigQuery?

A.Security Command Center
B.Data Loss Prevention (DLP) API
C.Cloud Data Catalog
D.Access Transparency
AnswerB

The Data Loss Prevention (DLP) API is specifically designed to inspect, classify, and protect sensitive data by scanning content for predefined infoTypes (e.g., names, credit card numbers, national ID numbers) and custom patterns. It can analyze text, structured data, and even images via OCR, then classify findings and optionally apply de-identification transformations like redaction or tokenization. This makes it the correct service for identifying and classifying sensitive data.

Why this answer

Sensitive Data Protection (DLP API) scans content to discover and classify sensitive data.

Ready to test yourself?

Try a timed practice session using only Cdl Google Cloud Security questions.