part6 Flashcards
what is a multi branch pipeline in Jenkins ?
A multi-branch pipeline in Jenkins is a feature that automatically creates and manages a pipeline for each branch in your source code repository. It’s particularly useful for projects with multiple branches, like those using Gitflow.
ie testing environment, staging environment, production environment, one code for all environments.
what is a market place AMI ?
A Marketplace AMI (Amazon Machine Image) is a pre-configured virtual machine image available on the AWS Marketplace. These AMIs are provided by third-party vendors and include software, applications, or tools that you can use on Amazon EC2 instances
- so every time you spin up an EC2 instance, you pay for the AMI and also pay aws for the EC2 instance.
what is NoSQL database ? what is an example of a NoSql database in AWS ?
A NoSQL database is a type of database that doesn’t rely on the traditional relational database structure (tables with rows and columns). Instead, it uses more flexible data models to handle diverse and unstructured data types, making it well-suited for modern applications requiring scalability and performance.
example of when to use : Applications with massive data and high traffic (e.g., social media, IoT).
Need for real-time analytics or fast query responses.
- DYNAMO DB
How will you set up a basic monitoring script on an on premise server ?
- leverage python module such as psutil
- pip install psutil
-import psutil
print(psutil.cpu_times())
psutilprint(psutil.getloadavg())
#memory
psutilprint(psutil.virtual_memory())
#disk usage
psutilprint(psutil.disk_usage’/’())
what is logging in linux and why is it important ?
Logging in Linux is the process of recording system events, activities, and errors in log files.
- Logs help identify the root cause of issues, such as system crashes, application errors, or performance problems.
- Tracks login attempts, unauthorized access, and suspicious activity, enabling intrusion detection.
- Logs are often required for meeting regulatory standards (e.g., HIPAA, PCI DSS).
- Maintains a historical record of events for future analysis and accountability.
what is a sidecar container ?
A sidecar container collects and manages logs, then sends them to a centralized logging system, while the main application container focuses solely on business logic and data processing.
when running terraform apply, the process gets hung. If you cancel it might result to a corrupt state file. How do you handle this issue ?
- i will run a terraform state pull command, which will pull the statefile into my local system and now i have a complete backup of the statefile
- then i will cancel the terraform apply and rerun the command.
what is a lag in read replica of a DB ?
- A copy of the primary database that is typically used for read operations to offload traffic from the primary.
- A lag in a database read replica refers to the time delay between the primary (source) database and the read replica. It measures how far behind the replica is in applying the changes (updates, inserts, deletions) that have occurred in the primary database.
Are you aware of backtrack option in AWS Aurora? How does it help ?
- Yes, AWS Aurora offers a feature called Backtrack, which is a powerful tool for restoring a database cluster to a specific point in time without needing to restore data from a backup. It is designed to allow quick recovery from unintended actions, like accidental data deletions or updates.
- backtrack enables you to “rewind” the state of your Aurora database cluster to a time up to 72 hours. This is like undoing changes without the downtime associated with a full restore.
what is branch protection in GitHub ?
Branch Protection in GitHub is a feature that helps maintain the integrity of critical branches in a repository, such as the main branch, by restricting who can make changes and how those changes are made.
- It is not enabled by default, go to settings, branches and enable it from there