GIAC Public Cloud Security (GPCS) Exam-style mock test
GIAC Public Cloud Security (GPCS) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A B2B SaaS company runs its customer analytics tier on Amazon EC2 instances, its billing microservice on Azure App Service, and its data pipeline on Google Cloud Run. A security architect is mapping which patching duties the company retains versus which the cloud provider handles. For which of these three workloads does the company retain responsibility for patching the guest operating system?
・The Azure App Service billing microservice, because the platform runs application code while customers stay accountable for the underlying OS image
Incorrect. Azure App Service is a PaaS offering, so Microsoft patches the underlying operating system; the customer is responsible only for the application code and its dependencies.
✓The Amazon EC2 analytics tier, because IaaS instances leave the guest OS under customer control
Correct. EC2 is an IaaS service, so the customer controls and must patch the guest operating system running on the instance.
・The Google Cloud Run data pipeline, since serverless containers require the customer to maintain the host kernel and OS packages
Incorrect. Cloud Run is a managed serverless container platform; Google maintains the host OS and kernel, leaving the customer responsible only for the container image contents.
・All three workloads equally, since every public cloud compute model assigns guest OS patching to the customer by contract
Incorrect. The three services sit at different layers (IaaS, PaaS, serverless), so guest OS patching responsibility is not uniform across them.
Explanation
The shared responsibility boundary shifts with the service model. Guest OS patching stays with the customer only for IaaS compute such as EC2; PaaS (App Service) and serverless (Cloud Run) move OS patching to the provider.
Example2 · Identity & Access Across Clouds
A B2B SaaS company runs workloads in AWS, Azure, and GCP and wants engineers to sign in with their existing corporate directory credentials without creating separate local accounts in each cloud. Which approach best achieves centralized, consistent workforce sign-in across all three clouds?
・Create long-lived IAM users in each cloud and rotate their static passwords on a shared quarterly schedule using an internal script
Incorrect. Long-lived local IAM users with shared static passwords multiply credential sprawl and defeat the goal of central, consistent sign-in.
✓Configure each cloud provider to trust the corporate identity provider via SAML or OIDC federation so credentials stay in the central directory
Correct. Federating each cloud to the corporate IdP via SAML or OIDC lets engineers authenticate against one directory and assume cloud roles without local accounts.
・Export the corporate directory to CSV files and bulk-import matching local accounts into every cloud console once per week
Incorrect. Periodic CSV exports create duplicate local accounts that drift from the source directory and are not centrally governed.
・Enable the root or global administrator account in each cloud and share those credentials with the engineering team through a vault
Incorrect. Sharing highly privileged root or global admin credentials violates least privilege and provides no per-user identity or federation.
Explanation
Centralized workforce identity across multiple clouds is achieved by federating each provider to one corporate IdP using SAML or OIDC, keeping credentials in a single authoritative directory.
Example3 · Network & Workload Protection
A B2B SaaS company runs its tenant application tier and its PostgreSQL database tier in the same VPC. The security team wants the database to accept connections only from the application instances, and never from the public internet or from an engineer's workstation. Which approach best enforces this requirement?
✓Configure the database security group to allow inbound traffic on the database port only from the application tier's security group as the source
Correct. Referencing the application tier's security group as the source creates an identity-based rule that permits only those instances and excludes the internet and workstations.
・Place the database instances behind an internet-facing load balancer and restrict the listener rules to the application subnet address range
Incorrect. An internet-facing load balancer exposes the database tier to the public internet, which directly violates the stated requirement.
・Add a network ACL to the database subnet that denies all inbound traffic originating from the corporate office IP ranges and VPN pools
Incorrect. Denying corporate ranges does not restrict the database to the application tier and leaves other sources implicitly permitted depending on base rules.
・Enable database-native authentication and rely on strong credentials so that only the application service account is able to connect
Incorrect. Credential strength controls who authenticates but does not restrict network reachability, so the port remains open to other sources.
Explanation
Security group chaining (referencing a source security group rather than CIDR) is the idiomatic cloud pattern for tier-to-tier access, ensuring only application instances reach the database.
Example4 · Data Security & Encryption
A healthcare services firm stores patient imaging files in a cloud object storage bucket. Compliance requires that the firm retain the ability to revoke the cloud provider's access to the plaintext at any time, while still using the provider's native storage encryption. Which key management approach best satisfies this requirement?
・Rely entirely on provider-managed keys because the provider already rotates them automatically and audits all key usage on the firm's behalf
Incorrect. Provider-managed keys do not let the firm unilaterally revoke the provider's own access to the plaintext, so the revocation requirement is unmet.
✓Use customer-managed keys stored in the provider's key management service so the firm controls key policy and can disable the key
Correct. Customer-managed keys in the provider KMS give the firm authority over key policy and the power to disable the key, cutting off access to plaintext on demand.
・Generate keys on an on-premises appliance and email the exported key material to the provider's support team for manual import before each upload
Incorrect. Emailing exported key material is insecure handling and does not provide the firm with ongoing, enforceable revocation control over the stored data.
・Disable server-side encryption and instead store the imaging files unencrypted inside a private subnet protected by security groups
Incorrect. Disabling encryption and relying only on network controls leaves data unprotected at rest and ignores the encryption requirement entirely.
Explanation
Customer-managed keys (CMK) in the cloud KMS let the firm own key policy and disable the key, which revokes the provider's ability to decrypt, while still leveraging native server-side encryption.
Example5 · Monitoring, Compliance & Automation
A healthcare services firm runs patient-portal workloads across 40 AWS accounts in an organization. Security engineers complain that investigating an incident means logging into each account to read its CloudTrail trail, which delays response. Which approach best resolves this while preserving tamper resistance?
✓Create an organization trail that delivers every account's events to a dedicated, access-restricted logging account S3 bucket
Correct. An organization-level trail aggregates all member-account events into a central, hardened logging account, giving one place to investigate while protecting the archive.
・Enable a separate CloudTrail trail inside each member account and grant analysts read access to all 40 accounts
Incorrect. Per-account trails with cross-account read access leave logs scattered and still require touching every account during an investigation.
・Forward each account's trail into that same account's CloudWatch Logs and query the groups individually
Incorrect. Keeping logs in each account's own CloudWatch Logs does not centralize them and leaves the data exposed to compromise of that account.
・Turn on detailed S3 server access logging for every bucket and review the logs in place within each account
Incorrect. S3 access logging only records data-plane object requests for buckets and does not capture the control-plane API activity needed for incident analysis.
Explanation
Centralizing audit logs in a dedicated, locked-down logging account provides a single, tamper-resistant source of truth for multi-account investigations.
Example6 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A healthcare services firm runs patient-scheduling virtual machines on AWS EC2, Azure Virtual Machines, and GCP Compute Engine. During an audit, the security team must document which security tasks remain the firm's obligation under the shared responsibility model for these IaaS deployments. Which task is the customer's responsibility across all three providers?
✓Patching and hardening the guest operating system and applications running inside each virtual machine instance
Correct. For IaaS, the guest OS, installed applications, and their patching and hardening always fall to the customer across AWS, Azure, and GCP.
・Maintaining the physical security and environmental controls of the data centers that house the servers
Incorrect. Physical and environmental security of the data center is handled by the cloud provider in every service model.
・Operating the hypervisor layer that isolates tenant virtual machines from one another on shared hosts
Incorrect. The hypervisor and host virtualization layer is operated and secured by the cloud provider, not the customer.
・Managing the firmware and hardware lifecycle of the host servers that run the customer workloads
Incorrect. Host server firmware and hardware lifecycle management is the provider's responsibility in all three clouds.
Explanation
In IaaS, the provider secures the underlying infrastructure (facilities, hardware, hypervisor) while the customer owns everything from the guest OS upward, including patching and application hardening.
Example7 · Multicloud Security Fundamentals (AWS/Azure/GCP)
RuralThread, a clothing retailer, runs a managed object storage bucket on one cloud and a managed relational database on another to host product imagery and order records. During a multicloud security review, an auditor asks the team to clarify which security tasks remain the customer's duty under the shared responsibility model for these managed services. Which statement best describes the customer's remaining obligation across both providers?
・The provider assumes responsibility for configuring access controls, encryption settings, and data classification once a service is marked as fully managed in the console.
Incorrect. Marking a service as managed never transfers access control and data classification duties to the provider; those stay with the customer.
✓The customer is responsible for configuring access policies, managing encryption key choices, and classifying the data they place into the service.
Correct. For managed storage and database services, the customer still owns access policy configuration, encryption key decisions, and classifying the data they store.
・The customer only needs to patch the operating system and hypervisor underneath each managed service to meet their portion of the model.
Incorrect. With managed PaaS-style services the provider patches the underlying OS and hypervisor, so this is not the customer's remaining duty.
・Responsibility for the data layer shifts entirely to the provider whenever a service is categorized as platform-as-a-service rather than infrastructure.
Incorrect. Even for platform services the data and its access controls remain a customer responsibility; the data layer does not shift to the provider.
・Neither party is responsible for data classification because managed services automatically tag and protect records.
Incorrect. Data classification is a customer obligation and is not performed automatically by the service.
Explanation
Across AWS, Azure, and GCP the shared responsibility model consistently leaves data, access configuration, and classification with the customer, while the provider handles the underlying infrastructure and patching for managed services.
Example8 · Multicloud Security Fundamentals (AWS/Azure/GCP)
RuralThread's platform team maintains workloads on all three major clouds and wants a shared mental model for granting a running compute instance permission to call other cloud APIs without embedding long-lived credentials. Which grouping correctly pairs the equivalent identity constructs used for this purpose on AWS, Azure, and GCP?
✓AWS IAM roles, Azure managed identities, and GCP service accounts each let a workload assume an identity and obtain short-lived credentials automatically.
Correct. IAM roles (AWS), managed identities (Azure), and service accounts (GCP) are the equivalent constructs that give a workload an identity and auto-rotated short-lived credentials.
・AWS access keys, Azure service principals created manually, and GCP API keys are the standard way to grant a running instance permissions.
Incorrect. Access keys and API keys are static long-lived secrets, the opposite of the credential-less pattern the team wants.
・AWS IAM users, Azure user accounts, and GCP member accounts are attached directly to each compute instance to authorize calls.
Incorrect. IAM users and human user accounts represent people, not workload identities attached to instances.
・AWS security groups, Azure network security groups, and GCP firewall rules provide the workload identity needed for API authorization.
Incorrect. Security groups and firewall rules control network traffic, not identity or API authorization.
・AWS resource policies, Azure role assignments scoped to subscriptions, and GCP organization policies are attached to instances for credentials.
Incorrect. Resource and organization policies constrain permissions but are not the workload identity attached to an instance for credentials.
Explanation
The workload-identity pattern maps cleanly: AWS IAM roles, Azure managed identities, and GCP service accounts all deliver short-lived, automatically rotated credentials to running compute.
Example9 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A RuralThread analytics project needs read-only access to a single order-export bucket owned by a separate production account. A junior engineer proposes granting the analytics identity broad administrative rights so the integration never breaks. As the cloud security lead applying least privilege, which approach should you direct the team to implement?
✓Grant the analytics identity a role limited to read actions on the specific order-export bucket and nothing else in the production account.
Correct. Least privilege means scoping the cross-account grant to read-only on exactly the one bucket the analytics project needs.
・Grant administrative access now and schedule a future review to tighten the permissions once the integration has been validated in production.
Incorrect. Granting admin first and tightening later leaves excessive standing privilege and routinely never gets narrowed.
・Add the analytics identity to the production account's administrators group so access issues are avoided entirely.
Incorrect. Adding the identity to administrators grants far more than the single read-only bucket requirement.
・Share the production account's root credentials with the analytics project so it can read the bucket directly.
Incorrect. Sharing root credentials is a severe violation and grants unlimited privilege.
・Grant full read and write access to all buckets in the production account so future data pipelines will also work without changes.
Incorrect. Full read and write to all buckets vastly exceeds the stated read-only, single-bucket need.
Explanation
Least privilege requires granting only the specific read action on the specific resource required, not broad or anticipatory permissions.
Example10 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A financial services firm runs transaction-processing VMs on AWS EC2, Azure Virtual Machines, and GCP Compute Engine. During an audit, the examiner asks who is accountable for patching the guest operating system on these IaaS instances. Which statement correctly describes the responsibility boundary for this scenario?
✓The cloud provider patches the hypervisor and physical hosts, but the firm remains responsible for guest OS patching on all three platforms.
Correct. For IaaS across AWS, Azure, and GCP the provider secures the underlying hypervisor and physical infrastructure, while the customer retains responsibility for guest OS patching and configuration.
・Each provider automatically patches the guest operating system by default, so the firm only needs to verify that automatic updates were applied.
Incorrect. Guest OS patching is not performed automatically by the provider for standard IaaS compute; the customer must manage OS updates themselves.
・The firm must negotiate a custom support contract with each provider before any guest OS patching responsibility is assigned to either party.
Incorrect. The responsibility split is defined by the standard shared responsibility model, not by individually negotiated per-customer support contracts.
・Responsibility for guest OS patching shifts to the provider once the instances are enrolled in the provider's premium security tier program.
Incorrect. Enrolling in a premium or enhanced security tier does not transfer guest OS patching accountability from the customer to the provider.
Explanation
In the IaaS shared responsibility model, all three major clouds secure the infrastructure up to the hypervisor, while the customer owns everything in the guest OS and above, including patching.
Example11 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A bank migrates its loan-origination database from a self-managed VM to a managed PaaS database offering (Azure SQL Database). The security team wants to understand how the responsibility boundary changes compared to the prior IaaS deployment. Which change most accurately reflects the move to the managed PaaS service?
✓The provider now handles OS and database engine patching, while the bank still controls data classification, access, and application-level security.
Correct. With managed PaaS, the provider takes over OS and database engine maintenance, but the customer still owns data, access management, and application security.
・The bank becomes responsible for patching the underlying operating system but no longer manages any of the database access controls or user permissions.
Incorrect. The reverse is true: PaaS removes OS patching from the customer, and the bank absolutely retains control of database access and permissions.
・The provider assumes full responsibility for the bank's data, including classification and access decisions, once the managed database service is adopted.
Incorrect. Data ownership, classification, and access decisions always remain the customer's responsibility regardless of the service model.
・The bank must continue patching the database engine itself because managed PaaS databases do not include automated engine maintenance.
Incorrect. Managed PaaS databases include automated engine patching and maintenance performed by the provider.
Explanation
Moving from IaaS to managed PaaS shifts OS and engine patching to the provider, but data, access, and application-layer responsibilities stay with the customer.
Example12 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A manufacturing distributor runs its order-fulfillment application on self-managed Linux virtual machines across AWS EC2 and Azure VMs. During a post-incident review of an exploited unpatched kernel, the security lead asks which party was responsible for the missing patch. Under the IaaS shared responsibility model, which statement correctly assigns this responsibility?
・The cloud providers are responsible, because both AWS and Azure manage the health and patch level of the hypervisor and all guest operating systems that run on top of their physical infrastructure
Incorrect. Providers manage the hypervisor and physical layer, but guest OS patching on IaaS compute is never the provider's responsibility.
✓The distributor is responsible, because guest operating system patching on self-managed compute instances remains the customer's duty in the IaaS model
Correct. In IaaS, the customer owns the guest operating system, including kernel and package patching on self-managed VMs.
・Responsibility is shared equally, so the provider applies kernel patches during maintenance windows while the customer approves and schedules each reboot afterward
Incorrect. The IaaS model does not split OS patching this way; the provider does not apply guest kernel patches on self-managed instances.
・The responsibility depends on the support tier, since premium support plans transfer guest operating system patching obligations entirely to the cloud provider for enrolled subscriptions
Incorrect. Support tiers provide assistance but do not transfer guest OS patching responsibility away from the customer.
Explanation
Under IaaS, the cloud provider secures the underlying infrastructure and hypervisor while the customer remains responsible for the guest OS, including patching. The unpatched kernel was the distributor's responsibility.
Example13 · Multicloud Security Fundamentals (AWS/Azure/GCP)
The distributor's platform team is documenting how human users authenticate to each cloud so a unified onboarding guide can be written. They need to map the primary native identity provider that governs user sign-in and directory objects in each environment. Which pairing of cloud platform to native identity service is accurate?
✓AWS uses IAM Identity Center (successor to AWS SSO), Azure uses Microsoft Entra ID, and GCP uses Cloud Identity integrated with Google Workspace directories
Correct. These are the correct native workforce identity services for AWS, Azure, and GCP respectively.
・AWS uses Microsoft Entra ID, Azure uses Cloud Identity, and GCP uses IAM Identity Center for its primary directory and sign-in management
Incorrect. The services are scrambled across the wrong providers in this mapping.
・AWS, Azure, and GCP all rely on a single shared directory called Cloud Directory for centrally provisioning and authenticating their human user identities
Incorrect. There is no single shared cross-cloud directory; each provider has its own identity service.
・AWS uses Cognito user pools, Azure uses Active Directory Domain Services, and GCP uses Firebase Authentication as the primary workforce directory service
Incorrect. Cognito and Firebase are customer-facing (CIAM) services, and ADDS is a managed domain service, not the primary workforce directory.
Explanation
Each cloud has a distinct native workforce identity service: AWS IAM Identity Center, Microsoft Entra ID for Azure, and Cloud Identity for GCP. Customer-facing services like Cognito and Firebase serve a different purpose.
Example14 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A telecom operator runs billing workloads in AWS and a customer portal in Azure. The security team wants engineers to sign in once with the corporate directory and receive least-privilege access in both clouds. Which approach best matches the native identity models of the two providers?
✓Federate the corporate IdP to AWS IAM Identity Center for permission sets and to Entra ID for Azure RBAC role assignments
Correct. Federating the IdP to AWS IAM Identity Center (permission sets) and to Entra ID (Azure RBAC) gives single sign-on with least-privilege in each cloud using each provider's native model.
・Create separate local IAM users in AWS and local administrator accounts in Azure, then share long-lived passwords across both engineering teams
Incorrect. Local IAM users and shared long-lived passwords break single sign-on, defeat least privilege, and create unmanaged standing credentials.
・Rely only on AWS IAM roles for both clouds because Azure can consume AWS Security Token Service tokens natively without any additional directory integration
Incorrect. Azure RBAC does not consume AWS STS tokens; each cloud enforces its own identity plane and requires its own federation.
・Issue one static access key per engineer in AWS and reuse that same key value as the Azure service principal secret for portal access
Incorrect. Static keys are long-lived secrets and an AWS access key is not valid as an Azure service principal credential, so this neither federates nor secures access.
Explanation
Multicloud SSO with least privilege is achieved by federating the corporate IdP into each cloud's native identity service (IAM Identity Center for AWS, Entra ID/Azure RBAC for Azure), not by sharing static credentials.
Example15 · Multicloud Security Fundamentals (AWS/Azure/GCP)
A telecom operator migrates its subscriber database from self-managed VMs onto a managed database PaaS offering. In the shared responsibility model, how does the operator's obligation change for this workload?
・The operator now owns the hypervisor and the physical data center security while the provider only handles backups and failover between regions
Incorrect. Tenants never own the hypervisor or physical data center; that is always the provider's responsibility.
✓The operator remains responsible for data classification, access configuration, and in-database permissions while the provider manages the OS and database engine patching
Correct. Moving to a managed database PaaS shifts OS and engine patching to the provider, but data, access configuration, and in-database permissions stay with the tenant.
・The operator transfers all responsibility to the provider, including user access policies, so no further configuration or monitoring is required on the operator side
Incorrect. Access policies and data governance always remain tenant responsibilities; PaaS never removes them.
・The operator keeps only network cabling duties because the managed service removes every data-level and access-level responsibility from the tenant
Incorrect. Tenants do not manage physical cabling, and data/access responsibilities are retained, not eliminated.
Explanation
Managed PaaS shifts infrastructure and engine maintenance to the provider, but the tenant always retains responsibility for data, identity, and access configuration.
▶ Try 10 free questions (graded)