Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Security
Labs

Blocking SQL Injection (SQLi) Using GCP Cloud Armor

A critical step in securing a web app is to block injection attacks, like SQL injection (SQLi), from modifying or accessing the app's SQL database. In this hands-on lab, you'll use the Cloud Armor and Cloud Load Balancing services to block SQLi attacks against a vulnerable web app.

Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 13, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Configure Cloud Load Balancing HTTP(S) Settings
    1. Use the Cloud Load Balancing service to create an internet-facing and global (non-classic) HTTP(S) load balancer.
    2. Name the load balancer lb.
    3. Create a frontend service named frontend.
    4. Create a backend service named backend.
    5. Configure the backends of the new backend service to use the recently created instance group.
    6. Create a health check named hc, and set the check interval to 25 seconds and the timeout to 20 seconds.
  2. Challenge

    Create a Cloud Armor Policy to Block SQLi
    1. Create a Cloud Armor security policy named cap with a default rule action of Allow.
    2. Create a rule named SQLi that uses the preconfigured expression for sqli-v33-stable, and set its priority to 1.
    3. Set the target to the recently created backend load balancer.
  3. Challenge

    Enable Container Registry

    Enable the Container Registry service using the GCP console.

  4. Challenge

    Docker Pull, Tag, and Push the Container Image Using Cloud Shell

    Use the Cloud Shell to perform the following actions:

    1. Pull the DVWA Docker image.
    2. Tag the DVWA Docker image.
    3. Push the DVWA Docker image.
  5. Challenge

    Create an Instance Group
    1. Create an instance group using the GCP console.
    2. Create a new instance template based on the container pushed to the Container Registry.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight