A large e-retailer is moving to Google Cloud Platform with its ecommerce website. The company wants to ensure payment information is encrypted between the customer's browser and GCP when the customers checkout online. What should they do?
Correct Answer: A
To ensure that payment information is encrypted between the customer's browser and Google Cloud Platform during checkout, the company should configure an SSL certificate on an L7 (Layer 7) Load Balancer. Here's why this is the best solution: * SSL/TLS Termination: An L7 Load Balancer can handle SSL/TLS termination, which means it can decrypt HTTPS traffic, offloading the work from the backend servers. This is essential for handling encrypted connections securely. * HTTPS Configuration: By configuring an SSL certificate, the load balancer ensures that all traffic between the customer's browser and the application is encrypted using HTTPS. * Security Best Practices: Using an L7 Load Balancer with an SSL certificate aligns with best practices for securing web applications, particularly for e-commerce sites handling sensitive payment information. * Managed Certificates: Google Cloud offers managed SSL certificates, which simplifies the process of obtaining, deploying, and renewing SSL certificates. Implementation Steps: * Obtain an SSL certificate. * Configure the L7 Load Balancer in the GCP Console. * Associate the SSL certificate with the load balancer. * Ensure that the backend services are configured to handle HTTPS traffic. Google Cloud Load Balancing Documentation Setting up HTTPS Load Balancing
Your company's detection and response team requires break-glass access to the Google Cloud organization in the event of a security investigation. At the end of each day, all security group membership is removed. You need to automate user provisioning to a Cloud Identity security group. You have created a service account to provision group memberships. Your solution must follow Google-recommended practices and comply with the principle of least privilege. What should you do?
Correct Answer: B
The problem requires automating user provisioning to a Cloud Identity security group using a service account, adhering to Google-recommended practices and the principle of least privilege. Cloud Identity Groups and Google Workspace: Cloud Identity groups are managed as part of Google Workspace. To programmatically manage Google Workspace resources (like groups), you typically use the Admin SDK APIs. Domain-Wide Delegation: Service accounts cannot directly authenticate to Google Workspace APIs using IAM roles. Instead, they require "domain-wide delegation" to impersonate a user with the necessary administrative privileges within Google Workspace. This allows a service account to access user data or perform administrative tasks across the domain. The correct scope for managing groups is https://www. googleapis.com/auth/admin.directory.group.Extract Reference: "To allow a service account to access user data on behalf of users in a Google Workspace domain, you must delegate domain-wide authority to your service account." (Google Cloud documentation: https://developers.google.com/identity/protocols/oauth2 /service-account#delegating) Extract Reference (Admin SDK Scopes): The https://www.googleapis.com/auth/admin.directory.group scope is explicitly listed for "View and manage all groups on the domain." (Google Workspace Admin SDK documentation: https://developers.google.com/admin-sdk/directory/v1/scopes) Application Default Credentials (ADC) with Resource-Attached Service Account: Google-recommended practices strongly advise against using service account keys directly for authentication when running on Google Cloud infrastructure. Instead, it's recommended to use Application Default Credentials (ADC) with a service account attached to the resource (e.g., a Compute Engine VM, Cloud Run service, or Cloud Functions). This method manages credentials automatically and securely, reducing the risk associated with managing and rotating keys.Extract Reference: "For most Google Cloud services, Application Default Credentials (ADC) is the recommended way to authenticate." and "When running code in a Google Cloud environment, such as Compute Engine, Cloud Run, or Cloud Functions, use the built-in service account to authenticate automatically with ADC. This is the most secure approach, as you don't need to manually create or manage service account keys." (Google Cloud documentation: https://cloud.google.com/docs/authentication /production) Options C and D are incorrect because granting an IAM role like "Groups Editor" in Google Cloud does not enable a service account to manage Google Workspace (Cloud Identity) group memberships; domain-wide delegation is required for that. Option A uses a service account key, which is less secure than ADC with a resource-attached service account according to Google's recommendations. Therefore, option B is the most aligned with Google's recommended practices for securely automating group provisioning using a service account and domain-wide delegation.
Your team needs to obtain a unified log view of all development cloud projects in your SIEM. The development projects are under the NONPROD organization folder with the test and pre-production projects. The development projects share the ABC-BILLING billing account with the rest of the organization. Which logging export strategy should you use to meet the requirements?
Correct Answer: C
"Your team needs to obtain a unified log view of all development cloud projects in your SIEM" - This means we are ONLY interested in development projects. "The development projects are under the NONPROD organization folder with the test and pre-production projects" - We will need to filter out development from others i.e test and pre-prod. "The development projects share the ABC-BILLING billing account with the rest of the organization." - This is unnecessary information.
You have created an OS image that is hardened per your organization's security standards and is being stored in a project managed by the security team. As a Google Cloud administrator, you need to make sure all VMs in your Google Cloud organization can only use that specific OS image while minimizing operational overhead. What should you do? (Choose two.)
Correct Answer: B,D
https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints - constraints /compute.trustedImageProjects This list constraint defines the set of projects that can be used for image storage and disk instantiation for Compute Engine. If this constraint is active, only images from trusted projects will be allowed as the source for boot disks for new instances.
You want to make sure that your organization's Cloud Storage buckets cannot have data publicly available to the internet. You want to enforce this across all Cloud Storage buckets. What should you do?
Correct Answer: C
* Uniform Bucket-Level Access: Enable uniform bucket-level access for all your Cloud Storage buckets. This feature ensures that access control is applied consistently at the bucket level, simplifying management and improving security. * Domain Restricted Sharing: Enforce domain-restricted sharing through an organization policy. This policy ensures that only users within your organization's domain can access the data in the buckets, preventing public exposure. * Policy Enforcement: Apply the necessary IAM policies and ensure that no buckets are configured to allow public access. This combination of settings ensures that data in Cloud Storage buckets remains private and accessible only to authorized users within your organization. References: * Google Cloud - Uniform Bucket-Level Access * Google Cloud - Organization Policy Service