Secure and Backup MongoDB on Google Cloud Platform

Secure and Backup MongoDB on Google Cloud Platform

Data — a very vital aspect of your application/software and everyday data are increasing as we are shifting more towards digital devices. In 2020, there will be around 40 trillion Gigabytes of data (40 Zettabytes). Woah!!! that’s a lot. Crucial, sensitive and private data are also a part of this 40 trillion Gigs and in September Month blog I’m going to share how to secure your MongoDB database on Google Cloud Platform from getting a compromised.

Data — a very vital aspect of your application/software and everyday data are increasing as we are shifting more towards digital devices. In 2020, there will be around 40 trillion Gigabytes of data (40 Zettabytes). Woah!!! that’s a lot. Crucial, sensitive and private data are also a part of this 40 trillion Gigs and in September Month blog I’m going to share how to secure your MongoDB database on Google Cloud Platform from getting a compromised.

I’ve seen many companies prefer to install MongoDB on instance/virtual machine (for dev, uat or staging environment) instead of using Managed Service provided by MongoDB for cost optimization and generally prefer to use Managed Service for pre-production or production.

Image for post

Credit: Me

Google Compute Engine

Google Compute Engine offers you to create and launch thousands of virtual machines easily without any upfront investment and installation. With Compute Engine, you have complete control over your infrastructure. You have the option to choose VM Family from varieties of VM configuration family. You can customize operating systems, and even run applications that rely on a mix of operating systems. You can choose preemptible compute instances if your workloads are allowed to stopped or abrupt. Preemptible machines are 80% cheaper as compared to regular machines and the rest are same.

Now you can opt confidential computing service while creating GCE VM which ensures your data to be encrypted while being processed.

Read more about Google Compute Engine

We need one Compute Engine instance where our MongoDB database would be running.

Create one Compute Engine VM via console or gcloud command or terraform script. You can choose VM family, disk size, OS, etc according to your choice.

Run gcloud command to launch VM:

gcloud beta compute --project=cloudorbit instances create mongodb-virtual-machine --zone=us-central1-a --machine-type=e2-medium --image=ubuntu-minimal-1804-bionic-v20200806 --boot-disk-size=50GB --boot-disk-type=pd-standard --boot-disk-device-name=mongodb-virtual-machine

SSH into it and let’s install MongoDB in the VM

authentication google-cloud-platform mongodb security database cloud

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How To Set Up Two-Factor Authentication in cPanel

What is 2FA Two-Factor Authentication (or 2FA as it often referred to) is an extra layer of security that is used to provide users an additional level of protection when securing access to an account.

Google Cloud Training | Google Cloud Platform Course | Google Cloud for Beginners

**Link: https://www.youtube.com/watch?v=gud65lqebrc** In this [**Google Cloud Training**](https://www.youtube.com/watch?v=gud65lqebrc "Google Cloud Training") live session, you will know everything about google cloud from basic to advance level...

Overview of Google Cloud Essentials Quest

If you looking to learn about Google Cloud in depth or in general with or without any prior knowledge in cloud computing, then you should definitely check this quest out.

Multi-cloud Spending: 8 Tips To Lower Cost

Mismanagement of multi-cloud expense costs an arm and leg to business and its management has become a major pain point. Here we break down some crucial tips to take some of the management challenges off your plate and help you optimize your cloud spend.

Improve cloud security with the Google Cloud Security Showcase

Google Cloud Security Showcase is a video resource focused on solving security use cases and helping you create a safer cloud deployment.